31c31
< __FBSDID("$FreeBSD: head/sys/dev/syscons/scterm-teken.c 197539 2009-09-27 18:19:41Z ed $");
---
> __FBSDID("$FreeBSD: head/sys/dev/syscons/scterm-teken.c 199171 2009-11-11 08:20:19Z ed $");
40a41
> #include <sys/kbio.h>
55,62c56,64
< static sc_term_init_t scteken_init;
< static sc_term_term_t scteken_term;
< static sc_term_puts_t scteken_puts;
< static sc_term_ioctl_t scteken_ioctl;
< static sc_term_default_attr_t scteken_default_attr;
< static sc_term_clear_t scteken_clear;
< static sc_term_input_t scteken_input;
< static void scteken_nop(void);
---
> static sc_term_init_t scteken_init;
> static sc_term_term_t scteken_term;
> static sc_term_puts_t scteken_puts;
> static sc_term_ioctl_t scteken_ioctl;
> static sc_term_default_attr_t scteken_default_attr;
> static sc_term_clear_t scteken_clear;
> static sc_term_input_t scteken_input;
> static sc_term_fkeystr_t scteken_fkeystr;
> static void scteken_nop(void);
86a89
> scteken_fkeystr,
243a247,296
> static const char *
> scteken_fkeystr(scr_stat *scp, int c)
> {
> teken_stat *ts = scp->ts;
> unsigned int k;
>
> switch (c) {
> case FKEY | F(1): case FKEY | F(2): case FKEY | F(3):
> case FKEY | F(4): case FKEY | F(5): case FKEY | F(6):
> case FKEY | F(7): case FKEY | F(8): case FKEY | F(9):
> case FKEY | F(10): case FKEY | F(11): case FKEY | F(12):
> k = TKEY_F1 + c - (FKEY | F(1));
> break;
> case FKEY | F(49):
> k = TKEY_HOME;
> break;
> case FKEY | F(50):
> k = TKEY_UP;
> break;
> case FKEY | F(51):
> k = TKEY_PAGE_UP;
> break;
> case FKEY | F(53):
> k = TKEY_LEFT;
> break;
> case FKEY | F(55):
> k = TKEY_RIGHT;
> break;
> case FKEY | F(57):
> k = TKEY_END;
> break;
> case FKEY | F(58):
> k = TKEY_DOWN;
> break;
> case FKEY | F(59):
> k = TKEY_PAGE_DOWN;
> break;
> case FKEY | F(60):
> k = TKEY_INSERT;
> break;
> case FKEY | F(61):
> k = TKEY_DELETE;
> break;
> default:
> return (NULL);
> }
>
> return (teken_get_sequence(&ts->ts_teken, k));
> }
>
< __FBSDID("$FreeBSD: head/sys/dev/syscons/scterm-teken.c 197539 2009-09-27 18:19:41Z ed $");
---
> __FBSDID("$FreeBSD: head/sys/dev/syscons/scterm-teken.c 199171 2009-11-11 08:20:19Z ed $");
40a41
> #include <sys/kbio.h>
55,62c56,64
< static sc_term_init_t scteken_init;
< static sc_term_term_t scteken_term;
< static sc_term_puts_t scteken_puts;
< static sc_term_ioctl_t scteken_ioctl;
< static sc_term_default_attr_t scteken_default_attr;
< static sc_term_clear_t scteken_clear;
< static sc_term_input_t scteken_input;
< static void scteken_nop(void);
---
> static sc_term_init_t scteken_init;
> static sc_term_term_t scteken_term;
> static sc_term_puts_t scteken_puts;
> static sc_term_ioctl_t scteken_ioctl;
> static sc_term_default_attr_t scteken_default_attr;
> static sc_term_clear_t scteken_clear;
> static sc_term_input_t scteken_input;
> static sc_term_fkeystr_t scteken_fkeystr;
> static void scteken_nop(void);
86a89
> scteken_fkeystr,
243a247,296
> static const char *
> scteken_fkeystr(scr_stat *scp, int c)
> {
> teken_stat *ts = scp->ts;
> unsigned int k;
>
> switch (c) {
> case FKEY | F(1): case FKEY | F(2): case FKEY | F(3):
> case FKEY | F(4): case FKEY | F(5): case FKEY | F(6):
> case FKEY | F(7): case FKEY | F(8): case FKEY | F(9):
> case FKEY | F(10): case FKEY | F(11): case FKEY | F(12):
> k = TKEY_F1 + c - (FKEY | F(1));
> break;
> case FKEY | F(49):
> k = TKEY_HOME;
> break;
> case FKEY | F(50):
> k = TKEY_UP;
> break;
> case FKEY | F(51):
> k = TKEY_PAGE_UP;
> break;
> case FKEY | F(53):
> k = TKEY_LEFT;
> break;
> case FKEY | F(55):
> k = TKEY_RIGHT;
> break;
> case FKEY | F(57):
> k = TKEY_END;
> break;
> case FKEY | F(58):
> k = TKEY_DOWN;
> break;
> case FKEY | F(59):
> k = TKEY_PAGE_DOWN;
> break;
> case FKEY | F(60):
> k = TKEY_INSERT;
> break;
> case FKEY | F(61):
> k = TKEY_DELETE;
> break;
> default:
> return (NULL);
> }
>
> return (teken_get_sequence(&ts->ts_teken, k));
> }
>