diff options
author | nicm <nicm> | 2017-04-18 18:21:37 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-04-18 18:21:37 +0000 |
commit | 623e35f5946498d0e89127756fb49258f768a6d0 (patch) | |
tree | 0ed3f18a5f28719f2f9590379dca2f2863ff0688 /tty.c | |
parent | fb3c5efa503214b08cae72f89e73ed4eb1bf957c (diff) | |
download | rtmux-623e35f5946498d0e89127756fb49258f768a6d0.tar.gz rtmux-623e35f5946498d0e89127756fb49258f768a6d0.tar.bz2 rtmux-623e35f5946498d0e89127756fb49258f768a6d0.zip |
Detect iTerm2 and use DECSLRM for it as well.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |