summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2012-11-22 14:41:11 +0000
committernicm <nicm@openbsd.org>2012-11-22 14:41:11 +0000
commit825609d46315b55ff3049beac091bfd223752277 (patch)
treec69f4d8383931b93fa5ec6b90f07130fd2ddc7df /usr.bin/tmux/tty.c
parentInstead of worrying about xterm version, send DA and read DEC service (diff)
downloadwireguard-openbsd-825609d46315b55ff3049beac091bfd223752277.tar.xz
wireguard-openbsd-825609d46315b55ff3049beac091bfd223752277.zip
Put helper function back, will be needed in a bit.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r--usr.bin/tmux/tty.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index 20c9b67a672..6f60de4ecdf 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.144 2012/11/22 14:26:04 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.145 2012/11/22 14:41:11 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -240,6 +240,14 @@ tty_start_tty(struct tty *tty)
}
void
+tty_set_class(struct tty *tty, u_int class)
+{
+ if (tty->class != 0)
+ return;
+ tty->class = class;
+}
+
+void
tty_stop_tty(struct tty *tty)
{
struct winsize ws;