Changes between Version 2 and Version 3 of ControlSequencesInPrompt
- Timestamp:
- 09/11/10 00:25:29 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSequencesInPrompt
v2 v3 1 = ControlSequences in the Prompt String =1 = Escape Sequences in the Prompt String = 2 2 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 ending must be indicated in the prompt string, since there's no way for Haskeline to detect it automatically. 4 4 5 5 The ending 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. 6 7 On Windows, escape sequences of the form "\ESC...\STX" will be ignored. 6 8 7 9 == Some examples ==
