mirror of
https://github.com/tmux/tmux.git
synced 2025-01-13 03:48:51 +00:00
Sync OpenBSD patchset 579:
Reflect the keypad mode of the application so that numlock works.
This commit is contained in:
parent
4ba8fce7ea
commit
ddb5bb80fa
10
tty.c
10
tty.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: tty.c,v 1.179 2009-11-28 14:59:26 tcunha Exp $ */
|
/* $Id: tty.c,v 1.180 2009-12-04 22:05:52 tcunha Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -185,7 +185,7 @@ tty_start_tty(struct tty *tty)
|
|||||||
tty_putcode(tty, TTYC_SGR0);
|
tty_putcode(tty, TTYC_SGR0);
|
||||||
memcpy(&tty->cell, &grid_default_cell, sizeof tty->cell);
|
memcpy(&tty->cell, &grid_default_cell, sizeof tty->cell);
|
||||||
|
|
||||||
tty_putcode(tty, TTYC_SMKX);
|
tty_putcode(tty, TTYC_RMKX);
|
||||||
tty_putcode(tty, TTYC_ENACS);
|
tty_putcode(tty, TTYC_ENACS);
|
||||||
tty_putcode(tty, TTYC_CLEAR);
|
tty_putcode(tty, TTYC_CLEAR);
|
||||||
|
|
||||||
@ -415,6 +415,12 @@ tty_update_mode(struct tty *tty, int mode)
|
|||||||
else
|
else
|
||||||
tty_puts(tty, "\033[?1000l");
|
tty_puts(tty, "\033[?1000l");
|
||||||
}
|
}
|
||||||
|
if (changed & MODE_KKEYPAD) {
|
||||||
|
if (mode & MODE_KKEYPAD)
|
||||||
|
tty_putcode(tty, TTYC_SMKX);
|
||||||
|
else
|
||||||
|
tty_putcode(tty, TTYC_RMKX);
|
||||||
|
}
|
||||||
tty->mode = mode;
|
tty->mode = mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user