This repository was archived by the owner on Apr 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Terminal and Terminal Font detection
Dylan Araps edited this page Jan 22, 2017
·
7 revisions
#252 added support for displaying the terminal emulator in use as well as the font<br > the terminal emulator is currently using.
Terminal detection works by checking the value of $TERM_PROGRAM.
Terminal detection works by recursively checking parent processes until the result<br >
isn't $SHELL, *sh, screen or tmux.
This method of detection doesn't work with tmux as the parent processes aren't<br >
the current shell or the terminal emulator.
Font detection works by parsing the terminal emulator's config file.
| Terminal Emulator | Config Type | Font Detection |
|---|---|---|
| Alacritty | Global | Yes |
| Deepin-terminal | Global | Yes |
| Gnome-terminal | Profile | No |
| iTerm2 | Profile | No |
| HyperTerm | Global | Yes |
| Konsole | Profile | Yes |
| Mintty | Global | Yes |
| Pantheon | Global | Yes |
| Sakura | Global | Yes |
| st | None | No |
| Terminal.app | N/A | Yes |
| Terminator | Profile | No |
| Terminology | Profile | No |
| Termite | Global | Yes |
| URxvt | N/A | Yes |
| Xfce4-terminal | Global | Yes |
| Xterm | N/A | Yes |
Profile: The font info is split based on profiles.<br >
N/A: A command is used (xrdb / osascript) to get the font.