What is a terminal emulator?
It's the app that gives you a window to type commands into. The name comes from the hardware it replaced.
A terminal emulator is a program that pretends to be an old hardware terminal, a screen and keyboard wired to a computer, so that command-line programs can run in a window on your desktop. macOS Terminal, iTerm2, GNOME Terminal, Konsole, Ghostty, kitty, Alacritty, WezTerm and Lumen are all terminal emulators. The terminal emulator doesn't run your commands. It shows text and sends your keystrokes to a shell such as bash, zsh or fish, which does.
Why it's called an emulator
In the 1970s and 80s you used a computer through a terminal: a separate device with a keyboard and a screen (earlier, a printer), connected by a serial cable to a machine in another room. The DEC VT100, released in 1978, was one of the most popular. It understood special byte sequences, starting with the Escape character, that told it to move the cursor, clear the screen or change text style.
Unix programs were written to talk to terminals like that. When graphical desktops arrived, nobody rewrote those programs. Instead, a program on the desktop imitated the hardware terminal closely enough that the programs couldn't tell the difference. That program is the terminal emulator. Modern ones still understand VT100-style escape codes, plus decades of extensions such as 24-bit colour, mouse reporting and hyperlinks.
How a terminal emulator works
When you open a terminal window, three pieces start talking:
- The terminal emulator creates a pseudo-terminal (PTY), a pair of connected endpoints the operating system provides to stand in for the old serial line.
- It starts your shell on one end of the PTY. The shell thinks it's attached to a real terminal.
- The emulator sits on the other end. Your keystrokes go in as bytes. Whatever the shell and its programs print comes back as bytes, and the emulator turns them into characters, colours and cursor moves on a grid of cells.
So when you type ls and press Enter, the terminal emulator sends those characters down the PTY, the shell runs ls, ls writes a listing (with escape codes for colour), and the emulator draws it. Full-screen programs like Vim, htop or Claude Code use the same channel to redraw the whole screen.
The TERM environment variable tells programs which terminal they're talking to, so they know which escape codes are safe to use. That's why you'll sometimes see xterm-256color or xterm-kitty in your environment.
Terminal emulator, shell and console
These get mixed up constantly. In short: the terminal emulator is the window; the shell is the program inside it that reads your commands; the console is the system's primary text terminal, such as the full-screen text mode you get on Linux with Ctrl+Alt+F3. Our terminal vs shell guide goes through each with examples.
What a modern terminal emulator does beyond the basics
The core job hasn't changed in decades, but today's terminals add a lot around it:
- Tabs and split panes, so you can run several shells in one window without a multiplexer like tmux.
- GPU rendering for smooth scrolling and large, high-resolution windows. See GPU-accelerated terminals.
- Fonts and colour: 24-bit colour, emoji, wide CJK characters, Nerd Font icons, and themes.
- Shell integration: the terminal learns where each prompt and command starts, so it can jump between commands, mark failures, or notify you when a long command finishes. Our shell integration guide explains how it works.
- Better keyboard handling, such as the kitty keyboard protocol, which lets editors like Neovim tell Ctrl+I from Tab.
- Images, hyperlinks and clipboard access through newer escape sequences.
- Scripting and plugins, so other programs can open tabs, send text or react to events.
Examples of terminal emulators
| Terminal | Platforms | Notes |
|---|---|---|
| macOS Terminal | macOS | Built in. Simple and reliable. |
| GNOME Terminal, Konsole | Linux | Default on GNOME and KDE desktops. |
| Windows Terminal | Windows | Microsoft's modern terminal, open source. |
| iTerm2 | macOS | Long-standing Mac favourite with deep features. |
| Ghostty | macOS, Linux | Native UI on each platform, quick to set up. |
| kitty | macOS, Linux | GPU-rendered, highly configurable, image protocol. |
| Alacritty | macOS, Linux, Windows | Minimal and GPU-rendered, no tabs or splits. |
| WezTerm | macOS, Linux, Windows | Lua config and a built-in multiplexer. |
| Lumen | macOS, Linux | Shell integration, splits and session restore built in. |
Do you need a different terminal emulator?
Not necessarily. The one that came with your system runs every command-line program. People switch when they spend hours a day in the terminal and want splits, better fonts, faster rendering, or features like command notifications. If that's you, our best terminal emulator guide compares the main options, and there are platform pages for Linux and macOS.
Lumen is one option: a free, open-source terminal emulator for Linux and macOS, written in Rust. It loads shell integration for bash, zsh and fish by itself, so you can jump between commands, copy the last command's output, and get notified when something slow finishes. It's new and has one main author, and it doesn't run on Windows. The install guide has the one-line installer and Homebrew instructions.
Questions
What is the difference between a terminal and a terminal emulator?
Originally a terminal was a hardware device: a screen and keyboard wired to a computer. A terminal emulator is software that imitates one in a window. Today people say "terminal" for both.
Is the command prompt a terminal emulator?
Not quite. Command Prompt (cmd.exe) is a shell. On Windows it used to run inside the console host window, and now usually runs inside Windows Terminal, which is the terminal emulator.
Is bash a terminal emulator?
No. Bash is a shell: it reads and runs your commands. It runs inside a terminal emulator such as GNOME Terminal, macOS Terminal or Lumen.
What is the best terminal emulator?
Ghostty is a strong all-rounder on macOS and Linux; kitty and WezTerm suit people who like to configure everything. See our best terminal emulator guide for the full list.
Try Lumen
Free and open source, for Linux and macOS. Copy the command for your system and paste it into a terminal.