aboutsummaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-06-15 23:13:26 +0100
committergingerBill <bill@gingerbill.org>2018-06-15 23:13:26 +0100
commit6d1c32eb778fde9f65744a62678d876c7d5c3837 (patch)
tree57237b45df4f67415f1f57c195333d583a826a9d /src/string.cpp
parentba776a3c9fbaa8f64f1567112c71c93416776260 (diff)
Add escape code for ESC \e
Diffstat (limited to 'src/string.cpp')
-rw-r--r--src/string.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/string.cpp b/src/string.cpp
index 0db54d6df..8e770cd90 100644
--- a/src/string.cpp
+++ b/src/string.cpp
@@ -451,6 +451,7 @@ bool unquote_char(String s, u8 quote, Rune *rune, bool *multiple_bytes, String *
case 'a': *rune = '\a'; break;
case 'b': *rune = '\b'; break;
+ case 'e': *rune = 0x1b; break;
case 'f': *rune = '\f'; break;
case 'n': *rune = '\n'; break;
case 'r': *rune = '\r'; break;