mintty / wsltty

Mintty as a terminal for Bash on Ubuntu on Windows / WSL
Other
3.12k stars 104 forks source link

Set/detect Terminal Name, Resolution, DE, WM #286

Closed rescenic closed 3 years ago

rescenic commented 3 years ago

Instead of "wslbridged2-back", can we get "wsltty (or mintty)" in Terminal Name. Also, can you please add feature to add Resolution, DE, WM, Terminal Font from wsltty/mintty Options in Windows (which is fine by me). wsltty-msys2 Compare with Windows Terminal: wsltty-wt

Biswa96 commented 3 years ago

What is that thing? What variables does it check to determine terminal emulator name?

rescenic commented 3 years ago

It's called neofetch. https://github.com/dylanaraps/neofetch

We can configure it from ~/.config/neofetch/config.conf 1

Examples: 2 3 4 5

Windows have that package too from scoop. scoop install neofetch

mintty commented 3 years ago

The tool seems to determine some information about its runtime environment but most of it is not terminal-related. About dimensions, there are escape seqences to retrieve terminal size and resolution but apparently the tool does not use them. Likewise there are sequences (device attribute reports) to retrieve terminal type information but the tool does not use them. Rather it seems to determine the program name of its parent process, which could as well be something like "ssh" in case you've logged in remotely from another terminal, so reporting wslbridge2-backend where the name of the terminal would be desired is a bug of the tool.

rescenic commented 3 years ago

Thank you very much for your explanation. I'll set them up manually, then. Hehe.

mintty commented 3 years ago

Well, you could submit them an issue and mention the terminal tool from the mintty utils repository for detection of the terminal type: https://github.com/mintty/utils/blob/master/terminal