aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-04-18 20:01:12 +0100
committerThomas Adam <thomas@xteddy.org>2017-04-18 20:01:12 +0100
commitde4f817bd61d60ac4310052d51ba437826016df0 (patch)
treedfa37d48dea949f9dd3d7321a77f3c850c77b8f5 /tty.c
parenta54309147dc4085a312d18d0c5421fbe14d85764 (diff)
parent623e35f5946498d0e89127756fb49258f768a6d0 (diff)
downloadrtmux-de4f817bd61d60ac4310052d51ba437826016df0.tar.gz
rtmux-de4f817bd61d60ac4310052d51ba437826016df0.tar.bz2
rtmux-de4f817bd61d60ac4310052d51ba437826016df0.zip
Merge branch 'obsd-master'
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tty.c b/tty.c
index 14906cc3..82fcbeba 100644
--- a/tty.c
+++ b/tty.c
@@ -74,9 +74,9 @@ static void tty_default_attributes(struct tty *, const struct window_pane *,
#define tty_use_acs(tty) \
(tty_term_has((tty)->term, TTYC_ACSC) && !((tty)->flags & TTY_UTF8))
#define tty_use_margin(tty) \
- ((tty)->term_type == TTY_VT420)
+ ((tty)->term_type == TTY_VT420 || (tty)->term_type == TTY_ITERM2)
-#define tty_pane_full_width(tty, ctx) \
+#define tty_pane_full_width(tty, ctx) \
((ctx)->xoff == 0 && screen_size_x((ctx)->wp->screen) >= (tty)->sx)
void
@@ -251,7 +251,7 @@ tty_start_tty(struct tty *tty)
tty->flags |= TTY_FOCUS;
tty_puts(tty, "\033[?1004h");
}
- tty_puts(tty, "\033[c");
+ tty_puts(tty, "\033[c\033[1337n");
}
tty->flags |= TTY_STARTED;