commandline: strip_escape: strip xterm OSC commands in $PS1mc-4.6
commit9041e6c81f4b2ae15e7bc3f733016ec9250ea5aa
authorMikhail S. Pobolovets <styx.mp@gmail.com>
Tue, 5 May 2009 13:46:10 +0000 (5 16:46 +0300)
committerSergei Trofimovich <st@anti-virus.by>
Tue, 12 May 2009 10:27:00 +0000 (12 13:27 +0300)
treefdb3133a31cf13738b70c2f61ead1488060ac026
parentf7781c16e029c30aff92b3abe9e0e88640813a5f
commandline: strip_escape: strip xterm OSC commands in $PS1

Correctly deal with prompts like (appear in debian/ubuntu):
  PS1='\[\e]0;\u@\h: \w\a\]\u@\h:\w\$'
  PS1='\[\e]0;\u@\h: \w\e\\\]\u@\h:\w\$'

Based on patch provided provided by Sergey Nizovtsev
    https://bugs.launchpad.net/ubuntu/+source/mc/+bug/330633

Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
src/util.c