summaryrefslogtreecommitdiffstats
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-11-22 14:41:11 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-11-22 14:41:11 +0000
commit260419f48efccd1ca80cd00168ef2471e765e8b6 (patch)
tree37c3e6771beaeeebce46dfaaf2d39615d96061ac /tty.c
parent0679eb6a6d6bab129264784009e70333b34ca6a8 (diff)
Put helper function back, will be needed in a bit.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/tty.c b/tty.c
index b221031d..6bc7139c 100644
--- a/tty.c
+++ b/tty.c
@@ -224,7 +224,7 @@ tty_start_tty(struct tty *tty)
tty_puts(tty, "\033[?1000l");
if (tty_term_has(tty->term, TTYC_XT))
- tty_puts(tty, "\033[>c");
+ tty_puts(tty, "\033[c");
tty->cx = UINT_MAX;
tty->cy = UINT_MAX;
@@ -240,11 +240,11 @@ tty_start_tty(struct tty *tty)
}
void
-tty_set_version(struct tty *tty, u_int version)
+tty_set_class(struct tty *tty, u_int class)
{
- if (tty->xterm_version != 0)
+ if (tty->class != 0)
return;
- tty->xterm_version = version;
+ tty->class = class;
}
void
@@ -289,9 +289,6 @@ tty_stop_tty(struct tty *tty)
tty_raw(tty, "\033[?1000l");
tty_raw(tty, tty_term_string(tty->term, TTYC_RMCUP));
-
- if (tty->xterm_version > 270)
- tty_raw(tty, "\033[61;1\"p");
}
void