aboutsummaryrefslogtreecommitdiffhomepage
path: root/screen.c
diff options
context:
space:
mode:
authorGravatar Claes Nästén <me@pekdon.net>2007-08-22 17:52:39 +1000
committerGravatar Claes Nästén <me@pekdon.net>2007-08-22 17:52:39 +1000
commit2994378e1a56ccba59bb60c9cd448707eb0be077 (patch)
tree9d25b47393a60c9db1c366292c80ee0d3816c622 /screen.c
parentbaeca81305a5bd1573d32e3f59372e986489df23 (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/screen.c b/screen.c
index e14d15b2..9cd6be6d 100644
--- a/screen.c
+++ b/screen.c
@@ -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 )
{
/*