summaryrefslogtreecommitdiff
path: root/src/tty.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-04-10 00:11:50 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-04-10 00:35:09 -0400
commit5d1c0c58ad137eaa1ec31440afe0b757f3f9ab8b (patch)
tree359b480e14447fdfd4364a0258d8873f33dd179e /src/tty.c
parenta00d60f6ac23ea1418025fb474e56c86af6f003e (diff)
drm: Add vt switch keybindings
Diffstat (limited to 'src/tty.c')
-rw-r--r--src/tty.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tty.c b/src/tty.c
index 651c5cd..e029d55 100644
--- a/src/tty.c
+++ b/src/tty.c
@@ -104,6 +104,12 @@ try_open_vt(struct tty *tty)
return fd;
}
+int
+tty_activate_vt(struct tty *tty, int vt)
+{
+ return ioctl(tty->fd, VT_ACTIVATE, vt);
+}
+
struct tty *
tty_create(struct weston_compositor *compositor, tty_vt_func_t vt_func,
int tty_nr)