Created Terminal and Terminal Font detection (markdown)
parent
6c0a0aeaad
commit
f565554e8e
|
@ -0,0 +1,39 @@
|
|||
**[#252](https://github.com/dylanaraps/neofetch/pull/252)** added support for displaying the terminal emulator in use as well as the font<br \>
|
||||
the terminal emulator is currently using.
|
||||
|
||||
# Terminal Detection
|
||||
|
||||
#### Mac OS X
|
||||
|
||||
Terminal detection works by checking the value of `$TERM_PROGRAM`.
|
||||
|
||||
#### All other OS
|
||||
|
||||
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
|
||||
|
||||
Font detection works by parsing the terminal emulator's config file.
|
||||
|
||||
#### Funtion Support
|
||||
|
||||
| Terminal Emulator | Config Type | Font Detection |
|
||||
| ----------------- | ----------- | -------------- |
|
||||
| Gnome-terminal | Profile | No |
|
||||
| iTerm2 | Profile | No |
|
||||
| Konsole | Profile | No |
|
||||
| Mintty | Global | Yes |
|
||||
| st | None | No |
|
||||
| Terminal.app | N/A | Yes |
|
||||
| Terminator | 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.
|
Loading…
Reference in New Issue