Skip to content

Commit

Permalink
Ajout de la commande CLEAR
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain Maltais committed Apr 20, 2022
1 parent 846585f commit f2e4df6
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions CLEAR.PAS
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{ @author: Sylvain Maltais ([email protected])
@created: 2022
@website(https://www.gladir.com/unix-0)
@abstract(Target: Turbo Pascal, Free Pascal)
}

Program CLEAR;

Uses Crt;

Var
FirstParam:String;

BEGIN
FirstParam:=ParamStr(1);
If(FirstParam='/?')or(FirstParam='--help')or(FirstParam='-h')or
(FirstParam='/h')or(FirstParam='/H')Then Begin
WriteLn('CLEAR Cette commande permet d''effacer l''ecran.');
WriteLn;
WriteLn('Syntaxe:');
WriteLn;
WriteLn('CLEAR [/?]');
WriteLn;
WriteLn(' /? Ce parametre permet d''afficher l''aide sur cette commande');
End
Else
Begin
ClrScr;
End;
END.

0 comments on commit f2e4df6

Please sign in to comment.