Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Latest commit

 

History

History
41 lines (30 loc) · 1.34 KB

readme.md

File metadata and controls

41 lines (30 loc) · 1.34 KB

Removes all characters present in the buffer

(*
  Category: SWAG Title: KEYBOARD I/O ROUTINES
  Original name: 0116.PAS
  Description: Remove all chars in keyboard buffer
  Author: AVONTURE CHRISTOPHE
  Date: 03-04-97  13:18
*)

{

   Flush the keyboard: removes all characters present in the buffer


               ╔════════════════════════════════════════╗
               ║                                        ║░
               ║          AVONTURE CHRISTOPHE           ║░
               ║              AVC SOFTWARE              ║░
               ║     BOULEVARD EDMOND MACHTENS 157/53   ║░
               ║           B-1080 BRUXELLES             ║░
               ║              BELGIQUE                  ║░
               ║                                        ║░
               ╚════════════════════════════════════════╝░
               ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

}

Procedure FlushKeyboard;

Begin

   Inline ($Fa);
   MemW[$40:$1A] := MemW [$40:$1C];
   Inline ($Fb);

End;

{ Another solution is  While KeyPressed Do ReadKey; }