All projects

PreTTY

A pretty terminal emulator for Linuxhttps://github.com/gblach/PreTTY

PreTTY is a pretty terminal emulator for Linux, clean, GPU-rendered and easy on the eyes, that always shows where your shell is: over SSH, as root or inside a container.

PreTTY with zebra stripes

Features

  • Where am I - the background color shows where the shell’s foreground command runs: blue for an SSH session, red for root (e.g. through sudo or su), and green for a container (e.g. podman exec, docker run, distrobox enter, toolbox enter, kubectl exec, incus shell or systemd-nspawn). A container wins over SSH and SSH over root, so sudo podman exec shows green.
  • Tabs - open, close, reorder by dragging, switch with Ctrl+Tab or Alt+1 to Alt+0. A new tab starts in the working directory of the active one.
  • Titles - tabs show the title the running program sets; the window title is <tab title> - PreTTY [<tab>/<tabs>].
  • Zebra stripes - optionally shade every other row, and set the background opacity.
  • Clickable links - http:// and https:// links open in the default browser.
  • Mouse selection - drag, double click for a word, triple click for a line. Dragging past the top or bottom edge scrolls, faster the further away the pointer is.
  • Clipboard - right click copies the selection and clears it. A finished selection also becomes the primary selection, which middle click and Shift+Insert paste.
  • Scrollback - with the mouse wheel and keyboard. In full-screen programs like less or vim the wheel sends arrow keys instead.
  • Visual bell - the terminal flashes, and a background tab that rang is marked.
  • Optional title bar - without it, dragging the tab bar moves the window and right clicking it opens the window menu. When the desktop does not draw a title bar, PreTTY draws its own.

Without zebra stripes:

PreTTY without zebra stripes

During an SSH session the background turns blue:

PreTTY in an SSH session

Inside a container the background turns green:

PreTTY inside a container

As root the background turns red:

PreTTY in a root session

With a semi-transparent background the desktop shows through:

PreTTY with a semi-transparent background

Installation

On Fedora, install it from the gblachx/apps COPR repository, which also keeps it updated:

sudo dnf copr enable gblachx/apps
sudo dnf install pretty

On other distributions, download the package for your distribution from the GitHub Releases page and install it:

sudo dnf install ./pretty-<version>-1.x86_64.rpm           # Fedora
sudo apt install ./pretty_<version>-1_amd64.deb            # Debian / Ubuntu
sudo pacman -U ./pretty-<version>-1-x86_64.pkg.tar.zst     # Arch Linux

The packages are built for x86_64 and aarch64 and need glibc 2.41 or newer: Debian 13, Ubuntu 25.04, Fedora 42, a current Arch Linux or later. They install the desktop entry and icon too. PreTTY renders with Vulkan, so it also needs a Vulkan driver.

From source

On other distributions, or to build it yourself, you need:

  • Rust 1.95 or newer (install with rustup)
  • pkg-config and the fontconfig / XCB / xkbcommon development files
  • At runtime: a Vulkan driver and, for Wayland sessions, the Wayland client library
Distribution Install command
Fedora sudo dnf install pkgconf-pkg-config fontconfig-devel libxcb-devel libxkbcommon-devel libxkbcommon-x11-devel vulkan-loader wayland-devel
Debian / Ubuntu sudo apt install pkg-config libfontconfig-dev libxcb1-dev libxkbcommon-dev libxkbcommon-x11-dev libvulkan1 libwayland-client0
Arch / CachyOS sudo pacman -S pkgconf fontconfig libxcb libxkbcommon libxkbcommon-x11 vulkan-icd-loader wayland

PreTTY builds against patched copies of two dependencies, so install it from a clone of the repository:

cargo setup              # creates the patched crates in vendor/
cargo install --path .   # installs the pretty binary to ~/.cargo/bin

The desktop entry runs pretty by name, so it needs ~/.cargo/bin on your PATH. Install the desktop entry and icon for the current user:

install -Dm644 assets/pretty.desktop ~/.local/share/applications/pretty.desktop
install -Dm644 assets/pretty.png ~/.local/share/icons/hicolor/512x512/apps/pretty.png
install -Dm644 assets/pretty.svg ~/.local/share/icons/hicolor/scalable/apps/pretty.svg

Keyboard shortcuts

Shortcut Action
Ctrl+Shift+T New tab
Ctrl+Shift+W Close tab
Ctrl+Tab / Ctrl+Shift+Tab Next / previous tab
Alt+1 to Alt+0 Go to tab 1 to 10
Ctrl+Shift+Left / Ctrl+Shift+Right Move tab left / right
Ctrl+Shift+C Copy the selection
Ctrl+Shift+V Paste from the clipboard
Shift+Insert Paste the primary selection
Shift+PageUp / Shift+PageDown Scroll one page up / down
Ctrl+Shift+Up / Ctrl+Shift+Down Scroll one line up / down
Ctrl+Shift+Home / Ctrl+Shift+End Scroll to the top / bottom
Ctrl+, Settings
Ctrl+Shift+H About window, lists these shortcuts

Configuration

Settings are edited in the app (the sliders button in the tab bar, or Ctrl+,) and saved to ~/.config/pretty.toml.

Setting Default Meaning
font.family empty Font name; empty means the theme’s monospace font
font.size 14 Font size in pixels
cursor.shape underline underline, beam or block
cursor.blink true Blink the cursor
window.columns 100 Initial width in columns
window.rows 30 Initial height in rows
window.maximized true Open maximized
window.titlebar false Show the window title bar
background.opacity 100 Background opacity in percent
background.zebra false Shade every other row
background.visual_bell true Flash on a bell and mark background tabs that rang

PreTTY is licensed under the GNU General Public License v3.0 or later.