Commit: 9f5f2d41c2e2b400dbeec6aaa8945a49d5643bb1
Parent: 6b2e4ae590ee9f54a200f91b2bb766600364ac27
Author: opask
Date: Tue, 27 Nov 2018 17:12:52 -0700
kbd.c, osdep.c: delete useless UWIN code
Diffstat:
2 files changed, 1 insertion(+), 16 deletions(-)
diff --git a/kbd.c b/kbd.c
@@ -761,15 +761,6 @@ struct os2_key os2xtd[256] = {
static int xterm_button = -1;
-static int is_uwin(void)
-{
-#ifdef _UWIN
- return 1;
-#else
- return 0;
-#endif
-}
-
static int is_ibm(void)
{
unsigned char *term = cast_uchar getenv("TERM");
@@ -830,10 +821,7 @@ static int process_queue(struct itrm *itrm)
case 'W': ev.x = KBD_F8; break;
case 'X': ev.x = KBD_F9; break;
case 'Y':
- if (is_uwin())
- ev.x = itrm->kqueue[1] == '[' ? KBD_END : KBD_F10;
- else
- ev.x = KBD_F11;
+ ev.x = KBD_F11;
break;
case 'q': switch (v) {
diff --git a/os_dep.c b/os_dep.c
@@ -155,9 +155,6 @@ int get_terminal_size(int fd, int *x, int *y)
#endif
) && !(*x = get_e("COLUMNS"))) {
*x = 80;
-#ifdef _UWIN
- *x = 79;
-#endif
}
if ((rs == -1
#ifdef TIOCGWINSZ