Changes between Version 4 and Version 5 of ControlSequencesInPrompt

Show
Ignore:
Timestamp:
09/14/10 23:14:22 (4 years ago)
Author:
judah (IP: 128.97.19.148)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSequencesInPrompt

    v4 v5  
    33As 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. 
    44 
    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. 
     5The 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.) 
    66 
    77On Windows, escape sequences of the form "\ESC...\STX" will be ignored.