Skip to content

Instantly share code, notes, and snippets.

@truelecter
Created June 17, 2014 10:19
Show Gist options
  • Save truelecter/ca9177010a7d1e1bc176 to your computer and use it in GitHub Desktop.
Save truelecter/ca9177010a7d1e1bc176 to your computer and use it in GitHub Desktop.
Matrix in Pascal
program SLM;
uses crt;
var a:byte;
function exkey:boolean;
begin
if keypressed then
if (ord(readkey)=13) then exkey:=true
else exkey:=false
else exkey:=false;
end;
begin
textbackground(black);
textcolor(lightgreen);
clrscr;
randomize;
repeat
a:=random(255);
if (a=13) or (a=10) then a:=5;
write(chr(a));
until exkey;
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment