aboutsummaryrefslogtreecommitdiffstats
path: root/LEGACY
diff options
context:
space:
mode:
authornoname <noname@inventati.org>2014-04-26 00:12:41 +0200
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2014-04-26 00:14:42 +0200
commit02d2df5790d186f16e0e22becd8107a85f328c2f (patch)
tree61c96de5be4d48e91364c7478a9199d6648a60b0 /LEGACY
parentc4b79b055df9ef0126f05dd6dbd2bbf935dcb980 (diff)
downloadst-02d2df5790d186f16e0e22becd8107a85f328c2f.tar.gz
Do not eat ESC character if control string is not properly terminated.
Currently tputc handles the case of too long control string waiting for the end of control string. Another case is when there is ESC character is encountered but is not followed by '\\'. In this case st stops processing control string, but ESC character is ignored. After this patch st processes ESC characters in control strings properly. Test case: printf '\e]0;abc\e[1mBOLD\e[0m' Also ^[\ is actually processed in the code that handles ST. According to ECMA-048 ST stands for STRING TERMINATOR and is used to close control strings.
Diffstat (limited to 'LEGACY')
0 files changed, 0 insertions, 0 deletions
remember that computers suck.