[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev keymap patches
From: |
John E. Davis |
Subject: |
Re: lynx-dev keymap patches |
Date: |
Fri, 24 Apr 1998 02:35:11 -0400 |
Earlier today I wrote:
># where KEYSYM is an integer. A keysym is essentually with the lynx.rc file
># calls a 'keystroke', but I think that keysym is a more appropriate name.
># The keysym integer and may be expressed in various ways:
>#
># as a decimal integer: 97
># hexadecimal: 0x61
># Octal: 0141
># as an ASCII character: 'a'
[...]
>#
># All other keys map to themselves, e.g,
>#
>setkey "a" 'a'
Unfortunately, the 'a' form does not work with slang 1.2.1 due to a
bug. It should work with 0.99-xx but I have not tried those versions
because I consider them to be obsolete. Once I realized the problem,
I released slang 1.2.2 with the bug fix. For what its worth, here is
the patch to slang/src/slcmd.c:
--- slcmd.c~ Sun Apr 12 23:53:16 1998
+++ slcmd.c Fri Apr 24 02:13:17 1998
@@ -222,7 +222,9 @@
len -= 2;
b[len] = 0;
guess_type = SLANG_INT_TYPE;
- (void) _SLexpand_escaped_char (b, &ch);
+ ch = *b;
+ if (ch == '\\')
+ (void) _SLexpand_escaped_char (b, &ch);
sprintf (buf, "%d", (unsigned char) ch);
len = strlen (buf);
}
--John