Mail Archives: djgpp/1998/04/27/07:04:05
On 26 Apr 1998 19:51:06 GMT, "Derek Jackson" <djackson AT dial DOT pipex DOT com>
wrote:
> The error does not appear to be code-dependant, but the problem arises when
> I enter the simple line:
>
> a=(a|b)
[...]
> As noted by Thomas Demmer, the problem appears to be one of recognising the
> correct character from the keyboard, which is why I tried the US setting.
Ah, yes, now I see. The octal character 0335 (Alt-221) looks like the
pipe character in a DOS window here, but of course it isn't the correct
character.
Do you perhaps have a non-standard keyboard driver instead of Win95's
keyb.com? Does `dir |more´ on the Win95 DOS command line work?
The Win95 help.com shows that you can use two different language IDs for
uk keyboards, maybe you want to try using the other one:
keyb uk,,c:\windows\command\keyboard.sys /id:166
or
keyb uk,,c:\windows\command\keyboard.sys /id:168
There's even more info in that Win95 help.com (look for it on your Win95
CD if it is not already installed on your computer).
I tried it with my (german, 105 character) keyboard here: both layouts
have two different key combinations that generate a "pipe-alike"
character - one of them emits Alt-124, one of them emits Alt-221. But
only Alt-124 is the real pipe character.
With /id:166:
ScanCode ASCII ExtScan/ASCII
` 41=29h 96=60h 41=29h 96=60h
rA ¦ 41=29h 221=DDh 41=29h 221=DDh
\ 86=56h 92=5Ch 86=56h 92=5Ch
lSh | 86=56h 124=7Ch 86=56h 124=7Ch
("rA" is the right Alt (AltGr) key, "lSh" is the left shift key)
With /id:168:
ScanCode ASCII ExtScan/ASCII
\ 41=29h 92=5Ch 41=29h 92=5Ch
lSh ¦ 41=29h 221=DDh 41=29h 221=DDh
| 86=56h 124=7Ch 86=56h 124=7Ch
lSh _ 86=56h 95=5Fh 86=56h 95=5Fh
Maybe you can find the other key combination on your keyboard or use the
other "/id" for keyb.
Regards...
Michael
- Raw text -