Category : Pascal Source Code
Archive   : PROD30S1.ZIP
Filename : PROAUTO.INC

 
Output of file : PROAUTO.INC contained in archive : PROD30S1.ZIP

(*
* Copyright 1987, 1989 Samuel H. Smith; All rights reserved
*
* This is a component of the ProDoor System.
* Do not distribute modified versions without my permission.
* Do not remove or alter this notice or any other copyright notice.
* If you use this in your own program you must distribute source code.
* Do not use any of this in a commercial product.
*
*)

(*
* PCB ProDOOR module for automatic log off after transfer (3-1-89)
*
*)

procedure automatic_logoff;
(* process the automatic logoff request; give the user a chance
to change his mind *)
var
c: char;
secs: integer;

begin
{newline;}
beep;
flush_com;

{dispose keyahead}
while key_ready and not dump_user do
c := get_key;

secs := 11;
c := #255;
repeat
dec(secs);
prompt_def(^M'Last chance! Automatic logoff in '+itoa(secs)+
' seconds. Abort:',enter_eq_yes);
c := upcase(time_key(1000));
until (secs <= 0) or dump_user or (c <> #255);

default_color;

if (c = 'N') or (c = #255) then
begin
displn('no');
protocol := logging_off;
create_door;
good_bye;
{delete_status_display;}
end
else
displn('yes');
end;



  3 Responses to “Category : Pascal Source Code
Archive   : PROD30S1.ZIP
Filename : PROAUTO.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/