summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDaniel Dickman <daniel@cvs.openbsd.org>2020-07-18 02:53:48 +0000
committerDaniel Dickman <daniel@cvs.openbsd.org>2020-07-18 02:53:48 +0000
commit46d16fedf11116c5fbba0c72cca88f124861d907 (patch)
treeff387a7abdcf9145528482dfbad3271ee7020420 /usr.bin
parent23a488a6d9e71c712ba3ef6b15adf9e5188624a9 (diff)
Properly escape a backslash.
Found by CompCert which notes that \E is not a valid escape sequence. ok nicm@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/tty-features.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/tty-features.c b/usr.bin/tmux/tty-features.c
index c7a2bf6b046..fb69aad9b93 100644
--- a/usr.bin/tmux/tty-features.c
+++ b/usr.bin/tmux/tty-features.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty-features.c,v 1.16 2020/06/04 10:36:28 nicm Exp $ */
+/* $OpenBSD: tty-features.c,v 1.17 2020/07/18 02:53:47 daniel Exp $ */
/*
* Copyright (c) 2020 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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 = {