Category : Files from Magazines
Archive   : PJ81.ZIP
Filename : UCMDS.PAS
unit ucmds;
interface
uses crt, ustritem, ulist;
type
commandPtr = ^command;
command = object( strItem )
cmdCh : char;
constructor init( theMenu: listPtr; ch : char; description : string );
function getcmdCh : char; virtual;
end;
implementation
{ ----- Initialize a new command and insert into theMenu. }
constructor command.init(
theMenu: listPtr; ch : char; description : string );
begin
cmdCh := ch;
strItem.init( description );
theMenu^.insertItem( @self );
end;
{ ----- Return a command's character. }
function command.getcmdCh : char;
begin
getcmdCh := cmdCh;
end;
end.
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
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/