Skip to content

Escape sequence to set window title shown in output

The escape sequence to set the window title is widely used, but Minicom doesn't know it and shows it on the screen. In particular, the NixOS bash prompt is using it. Minicom renders it as [0;root@nixos: ~root@nixos:~]# whereas the expected rendering (seen e.g. in GNU screen) is [root@nixos:~]#

The escape sequences are described at https://tldp.org/HOWTO/Xterm-Title-3.html

Note that BEL ('\a') is an xterm specific string terminator. It would be good to support ST (Escape-Backslash) as well.

I'm OK with just ignoring those sequences. The ideal solution would be to set the title in the terminal if the terminal supports it.