[fpc-pascal]Problem reading "Pos1" and "End" Keys with Linux
Stefan Becker
becker at lufa-sp.vdlufa.de
Tue May 8 13:52:59 CEST 2001
Hi again,
thanks for all your input. I'm sorry if my question seems to be
confusing. I am having dificulty in explaining just what is not
working correctly as well as pin pointing the problem.
take this programm for example:
-------------------------------------------------------
program keys;
uses
nCrt;
var
ch:char;
lc:char;
begin
WriteLn('Exit with 2 x ESC');
ch:=#0;
lc:=#0;
repeat
while not keypressed do;
lc:=ch;
ch:=ReadKey;
if ch=#0 then
begin
Write('#0 - ');
lc:=ch;
ch:=ReadKey;
Write(ord(ch));
end else
begin
Write(ord(ch),' = ');
if ch<#32 then Write(ord(ch)) else Write('",ch,"');
end;
WriteLn;
until ((ch=#27) and (lc=#27));
end.
----------------------------------------------------------
Whatever console I use to -
- putty with windows to the linux server
- ssh from a differant machine to the linux server
- windows NT telnet to the linux server
- KDE's console
The results are that some keys do not return any results.
or like I said the KDE-console and Putty-SSH returns:
<ESC>,'[','H' sequenz for the "Home" Key on the keyboard
<ESC>,'[','F' sequenz for the "End " Key on the keyboard
Only if I'm on the Servers console (directly on the linux machine)
does the function return the results for the <home> & <end> keys
just as Borland and DOS would.
Does this mean that the problem is within the termcap intepretation
of the consoles' dialog? If yes, where is "termcap" explained?
my regards and happy programming,
Stefan
More information about the fpc-pascal
mailing list