diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-04-10 00:11:50 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-04-10 00:35:09 -0400 |
commit | 5d1c0c58ad137eaa1ec31440afe0b757f3f9ab8b (patch) | |
tree | 359b480e14447fdfd4364a0258d8873f33dd179e /src/tty.c | |
parent | a00d60f6ac23ea1418025fb474e56c86af6f003e (diff) |
drm: Add vt switch keybindings
Diffstat (limited to 'src/tty.c')
-rw-r--r-- | src/tty.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |