diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-19 17:36:19 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-19 17:36:19 +1300 |
commit | afce604605df4a91b4ebbf548812f147c1d235ed (patch) | |
tree | b1d44f171e5d582284e7eb607635e6897f9f2254 /README.markdown | |
parent | Allow .gz completion for text fns, but not .tar.gz (diff) | |
download | dotfiles-afce604605df4a91b4ebbf548812f147c1d235ed.tar.gz dotfiles-afce604605df4a91b4ebbf548812f147c1d235ed.zip |
Attempt at properly escaping non-printing chars
This is supposed to be the equivalent of \[ \] in Bash PS1...
>Note that since the command line editors try to figure out how long the
>prompt is (so they know how far it is to edge of the screen), escape
>codes in the prompt tend to mess things up. You can tell the shell not
>to count certain sequences (such as escape codes) by prefixing your
>prompt with a non-printing char- acter (such as control-A) followed by
>a carriage return and then delimiting the escape codes with this
>non-printing character. If you don't have any non-printing characters,
>you're out of luck... BTW, don't blame me for this hack; it's in the
>original ksh.
<http://blog.0xpebbles.org/ksh-prompt-coloring-example>
Diffstat (limited to 'README.markdown')
0 files changed, 0 insertions, 0 deletions