Category : Pascal Source Code
Archive   : WXTERMSR.ZIP
Filename : WXTMMISC.INC

 
Output of file : WXTMMISC.INC contained in archive : WXTERMSR.ZIP
{$U-,C-,R-}
function scan(var extend : boolean; var code : byte) : boolean;
{
Uses BIOS service 16 to get a keystroke w/o echo. Sets 'extend' true
for extended codes from PC-Clone keyboards, and returns ASCII/Scan code
in 'code'. Returns true if a character exists, false if none is in the
buffer.
}
type
regs = record
ax,bx,cx,dx,bp,si,di,ds,es,flags : integer;
end;
var
r : regs;
c : integer;
begin
code := 0;
r.ax := 1 shl 8; {AH := 1}
Intr($16,r);
if r.flags and 64 <> 64 then
begin
r.ax := 0;
Intr($16,r); {Get character and clear from buffer}
code := lo(r.ax);
scan := true;
extend := false;
if code = 0 then
begin
extend := true;
code := hi(r.ax)
end;
end
else
scan := false;
end;

function exists(fname : bigstring) : boolean;
var
f : file;
begin
assign(f, fname);
{$I-}
reset(f);
{$I+}
if IOresult = 0 then
begin
exists := true;
close(f)
end
else
exists := false
end;

procedure supcase(var s);
var
ss : bigstring absolute s;
i : integer;
begin
for i := 1 to length(ss) do
ss[i] := upcase(ss[i])
end;


  3 Responses to “Category : Pascal Source Code
Archive   : WXTERMSR.ZIP
Filename : WXTMMISC.INC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/