summaryrefslogtreecommitdiffstats
path: root/cmd-string.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-08-03 14:10:54 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-08-03 14:10:54 +0000
commit1673735f0271c6f87e6ba0d85d8b4a1d0f2f3d35 (patch)
tree27a8faaf2b54de7cf47d822da839c6d62368a44a /cmd-string.c
parente4bb08e1f5ebf47620758795efcbdd61849b73e8 (diff)
Add a terminal-overrides session option allowing individual terminfo(5) entries
to be overridden. The 88col/256col checks are now moved into the default setting and out of the code. Also remove a couple of old workarounds for xterm and rxvt which are no longer necessary (tmux can emulate them if missing).
Diffstat (limited to 'cmd-string.c')
-rw-r--r--cmd-string.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd-string.c b/cmd-string.c
index 9ba399b2..c12ac1d7 100644
--- a/cmd-string.c
+++ b/cmd-string.c
@@ -215,6 +215,9 @@ cmd_string_string(const char *s, size_t *p, char endch, int esc)
switch (ch = cmd_string_getc(s, p)) {
case EOF:
goto error;
+ case 'e':
+ ch = '\033';
+ break;
case 'r':
ch = '\r';
break;