From f565554e8eda910678bc8b7582d217686950e497 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 3 Jun 2016 18:31:24 +1000 Subject: [PATCH] Created Terminal and Terminal Font detection (markdown) --- Terminal-and-Terminal-Font-detection.md | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Terminal-and-Terminal-Font-detection.md diff --git a/Terminal-and-Terminal-Font-detection.md b/Terminal-and-Terminal-Font-detection.md new file mode 100644 index 0000000..22d8dad --- /dev/null +++ b/Terminal-and-Terminal-Font-detection.md @@ -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
+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
+isn't `$SHELL`, `*sh`, `screen` or `tmux`. + +This method of detection doesn't work with `tmux` as the parent processes aren't
+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.
+**N/A**: A command is used (`xrdb` / `osascript`) to get the font.