aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-08-24 10:26:09 +1000
committerGravatar axel <axel@liljencrantz.se>2006-08-24 10:26:09 +1000
commit4dbac8f941ff5aeb348de16d2f90f0d9fa0b9b62 (patch)
treec1aaedd37d3c31f1d10ac1d9d607376ce10f3cfb
parent303473f20cc4ff55318b02741f66405480e68426 (diff)
Add support for \a \f \v escape sequences, and make supåport for \e standards compliant
darcs-hash:20060824002609-ac50b-a1a9150d096647d9ab4c39d3245b528d7e75cd57.gz
-rw-r--r--common.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/common.c b/common.c
index b693cad3..060dbeb6 100644
--- a/common.c
+++ b/common.c
@@ -843,9 +843,27 @@ wchar_t *unescape( const wchar_t * orig, int unescape_special )
break;
}
+ case L'a':
+ {
+ in[out_pos]=L'\a';
+ break;
+ }
+
+ case L'f':
+ {
+ in[out_pos]=L'\f';
+ break;
+ }
+
+ case L'v':
+ {
+ in[out_pos]=L'\v';
+ break;
+ }
+
case L'e':
{
- in[out_pos]=L'\e';
+ in[out_pos]=L'\x1b';
break;
}