[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev DOS patch for keymapping (lynx2.8.1dev.13)
From: |
Doug Kaufman |
Subject: |
lynx-dev DOS patch for keymapping (lynx2.8.1dev.13) |
Date: |
Mon, 25 May 1998 21:45:05 -0700 (PDT) |
The following patch allows mapping of ALT and Function keys with the
DOS port for both the PDCurses version and the SLANG version with the
DJGPP keyhandler. The extended keys to be mapped have to be specified
numerically according to the definitions in curses.h (for PDCurses) or
in keys.h (for SLANG with DJGPP keyhandler). I don't see where these
changes will break anything else, but I hope that someone who knows C
will check this before integrating it with the main code. DJGPP maps
keys up to 0x293, while PDCurses maps keys up to 0x1c0.
Doug
*** lynx2-8/src/LYKeymap.c Wed Mar 25 05:58:54 1998
--- lynx2-8/src/LYKeymap.c.new Mon May 25 10:17:28 1998
***************
*** 222,227 ****
--- 222,331 ----
LYK_DO_NOTHING,
/* DO_NOTHING*/
+ /* 110..18F */
+
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ /* 190..20F */
+
+ 0, 0, 0, 0,
+ 0, 0, 0, 0,
+ 0, 0, 0,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1998
--- lynx2-8/src/LYStrings.c.new Mon May 25 19:58:02 1998
***************
*** 466,472 ****
--- 466,476 ----
keymap_file = "lynx.keymaps";
home = "SYS$LOGIN:";
#else
+ #ifdef FNAMES_8_3
+ keymap_file = "/_lynxkey.map";
+ #else
keymap_file = "/.lynx-keymaps";
+ #endif /* FNAMES_8_3 */
home = getenv ("HOME");
if (home == NULL) home = "";
#endif
***************
*** 1001,1007 ****
}
#endif /* HAVE_KEYPAD */
! if (c > DO_NOTHING) {
/*
* Don't return raw values for KEYPAD symbols which we may have
* missed in the switch above if they are obviously invalid when
--- 1005,1016 ----
}
#endif /* HAVE_KEYPAD */
! #ifdef __DJGPP__
! if (c > 659)
! #else
! if (c > DO_NOTHING)
! #endif /* __DJGPP__ */
! {
/*
* Don't return raw values for KEYPAD symbols which we may have
* missed in the switch above if they are obviously invalid when
__
Doug Kaufman
Internet: address@hidden (preferred)
address@hidden
- lynx-dev DOS patch for keymapping (lynx2.8.1dev.13),
Doug Kaufman <=