2 ms·
Ostensibly it’s the same as the Bash example above but because it’s baked into the shell itself I’m able to add a very minimal wrapper around the shells PTY to
by laumars 8y ago
Ostensibly it’s the same as the Bash example above but because it’s baked into the shell itself I’m able to add a very minimal wrapper around the shells PTY to append some ANSI escape sequences.
As an aside, I also started work on a feature in the shell to strip all SGR escape sequences (colour and text formatting) for people who prefer their shell output text only. But that proved a little more problematic because it proved impossible to reliably differentiate between processes that expect a TTY (eg top, lynx, etc) and thus would need to bypass the SGR stripping wrapper, from the processes that don't.