[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev Minor DOS bug fixes
From: |
Doug Kaufman |
Subject: |
lynx-dev Minor DOS bug fixes |
Date: |
Tue, 20 Apr 1999 07:23:16 -0700 (PDT) |
I found two bugs in the DOS ports. When exiting with interrupt, the
message was printed in binary mode, leaving the cursor in the middle
of the screen. In the PDCurses build, the keypad enter key only worked
when LYK_ACTIVATE was utilized, but not in GOTOLINK or GOTOPAGE.
This maps the keypad enter to '\n', so it works in all situations,
but keypad enter will no longer be able to be mapped separately.
CTRL-PADENTER and ALT-PADENTER can still be separately mapped.
These are against dev.21. I hope there haven't been any changes since
then to affect the patches.
Doug
--- lynx2-8-2/src/LYClean.c Tue Mar 30 09:10:38 1999
+++ lynx2-8-2/src/LYClean.c.new Mon Apr 19 23:07:44 1999
@@ -103,6 +103,7 @@
cleanup();
}
if (sig != 0) {
+ SetOutputMode(O_TEXT);
printf("\n\n%s %d\n\n",
gettext("Exiting via interrupt:"),
sig);
--- lynx2-8-2/src/LYKeymap.c Thu Mar 4 02:39:46 1999
+++ lynx2-8-2/src/LYKeymap.c.new Mon Apr 19 22:54:26 1999
@@ -297,8 +297,8 @@
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
- 0, 0, LYK_WHEREIS, LYK_ACTIVATE,
- /* KP_SLASH KP_ENTER */
+ 0, 0, LYK_WHEREIS, 0,
+ /* KP_SLASH */
0, 0, 0, LYK_IMAGE_TOGGLE,
/* KP_* */
LYK_PREV_PAGE, LYK_NEXT_PAGE, 0, 0,
--- lynx2-8-2/src/LYStrings.c Sun Apr 4 11:23:38 1999
+++ lynx2-8-2/src/LYStrings.c.new Mon Apr 19 22:17:48 1999
@@ -1364,7 +1364,12 @@
case KEY_ENTER: /* enter/return */
c = '\n';
break;
-#endif /* KEY_END */
+#endif /* KEY_ENTER */
+#ifdef PADENTER /* PDCURSES */
+ case PADENTER:
+ c = '\n';
+ break;
+#endif /* PADENTER */
#ifdef KEY_END
case KEY_END: /* end key 001 */
c = END_KEY;
--- lynx2-8-2/docs/pdcurses.key Wed Feb 17 06:29:34 1999
+++ lynx2-8-2/docs/pdcurses.key.new Mon Apr 19 22:49:08 1999
@@ -51,7 +51,6 @@
CTL_END 0x1c0 /* Control-End */
KEY_B2 0x1c5 /* center on Virt. keypad */
PADSLASH 0x1ca /* slash on keypad */
-PADENTER 0x1cb /* enter on keypad */
CTL_PADENTER 0x1cc /* ctl-enter on keypad */
ALT_PADENTER 0x1cd /* alt-enter on keypad */
PADSTOP 0x1ce /* stop on keypad */
__
Doug Kaufman
Internet: address@hidden (preferred)
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lynx-dev Minor DOS bug fixes,
Doug Kaufman <=