diff options
author | 2007-08-22 17:52:39 +1000 | |
---|---|---|
committer | 2007-08-22 17:52:39 +1000 | |
commit | 2994378e1a56ccba59bb60c9cd448707eb0be077 (patch) | |
tree | 9d25b47393a60c9db1c366292c80ee0d3816c622 /screen.c | |
parent | baeca81305a5bd1573d32e3f59372e986489df23 (diff) |
Fix compilation with Sun Studio compiler changing \e to \x1b as it does not support \e as an escape character.
darcs-hash:20070822075239-cac88-1a9768bf35295615d553192d9a494f00db26f742.gz
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -104,7 +104,7 @@ static int calc_prompt_width( wchar_t *prompt ) for( j=0; prompt[j]; j++ ) { - if( prompt[j] == L'\e' ) + if( prompt[j] == L'\x1b' ) { /* This is the start of an escape code. Try to guess it's width. @@ -201,7 +201,7 @@ static int calc_prompt_width( wchar_t *prompt ) wchar_t *end; j+=2; found = 1; - end = wcsstr( &prompt[j], L"\e\\" ); + end = wcsstr( &prompt[j], L"\x1b\\" ); if( end ) { /* |