Changes between Version 4 and Version 5 of ControlSequencesInPrompt
- Timestamp:
- 09/14/10 23:14:22 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSequencesInPrompt
v4 v5 3 3 As of version 0.6.3 (#78), Haskeline will compute the correct width for input prompts that contain POSIX escape sequences such as color changes. However, the prompt string must indicate the end of each escape sequence, since there's no way for Haskeline to detect it automatically. 4 4 5 The end is denoted by the control character {{{'\STX'}}} (i.e., ASCII {{{'\002'}}}). Any substring in the prompt of the form {{{"\ESC...\STX"}}} will be treated as zero-width for the purposes of line-breaking. 5 The end is denoted by the control character {{{'\STX'}}} (i.e., ASCII {{{'\002'}}}). Any substring in the prompt of the form {{{"\ESC...\STX"}}} will be treated as zero-width for the purposes of line-breaking. (The trailing {{{'\STX'}}} is not printed to the terminal.) 6 6 7 7 On Windows, escape sequences of the form "\ESC...\STX" will be ignored.
