summaryrefslogtreecommitdiffstats
path: root/tty-features.c
diff options
context:
space:
mode:
authordaniel <daniel>2020-07-18 02:53:47 +0000
committerdaniel <daniel>2020-07-18 02:53:47 +0000
commit3b089fc69f3b111797e36bd2a881fff6b8cb5213 (patch)
treef0efd75d710993565972247bb54e46a63cb9eecc /tty-features.c
parent5e008eefaa5a20f8aaed2f8cc9890b24efaffe28 (diff)
Properly escape a backslash.
Found by CompCert which notes that \E is not a valid escape sequence. ok nicm@
Diffstat (limited to 'tty-features.c')
-rw-r--r--tty-features.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tty-features.c b/tty-features.c
index ea662bb4..5891e2c3 100644
--- a/tty-features.c
+++ b/tty-features.c
@@ -110,8 +110,8 @@ static const struct tty_feature tty_feature_overline = {
/* Terminal supports underscore styles. */
static const char *tty_feature_usstyle_capabilities[] = {
- "Smulx=\E[4::%p1%dm",
- "Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m",
+ "Smulx=\\E[4::%p1%dm",
+ "Setulc=\\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m",
NULL
};
static const struct tty_feature tty_feature_usstyle = {