Advertisement
Guest User

Untitled

a guest
May 6th, 2016
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 1.19 KB | None | 0 0
  1. program SomeTest;
  2. {$MODE OBJFPC}{$H+}
  3. uses Crt;
  4. var
  5.   Ch: Char;
  6. begin
  7.   TextColor(7);
  8.   TextBackground(0);
  9.   ClrScr;
  10.   TextBackground(4);
  11.   TextColor(14);
  12.   Write(' I am this controller program, version something');
  13.   ClrEol;
  14.   TextColor(15);
  15.   TextBackground(0);
  16.   GotoXY(8, 4);
  17.   Write('Select one option:');
  18.   GotoXY(10, 6); TextColor(4); Write('P. ');
  19.                  TextColor(7); Write('Toggle 12V SS Power ON/OFF');
  20.   GotoXY(10, 7); TextColor(4); Write('W. ');
  21.                  TextColor(7); Write('Toggle WiFi Power feed ON/OFF');
  22.   GotoXY(10, 8); TextColor(4); Write('L. ');
  23.                  TextColor(7); Write('Toggle Alarm Lamp ON/OFF');
  24.   GotoXY(10, 9); TextColor(4); Write('S. ');
  25.                  TextColor(7); Write('Start SS by sending 1s pulse');
  26.   GotoXY(10, 10);TextColor(4); Write('Q. ');
  27.                  TextColor(7); Write('Quit the program');
  28.   GotoXY(8, 12); TextColor(15);Write('Your choice: ');
  29.   repeat
  30.     Ch:=UpCase(ReadKey);
  31.     case Ch of
  32.       'P': begin end;
  33.       'W': begin end;
  34.       'L': begin end;
  35.       'S': begin end;
  36.       'Q': break;
  37.     end;
  38.   until False;
  39.   TextColor(7);
  40.   TextBackground(0);
  41.   ClrScr;
  42.   Writeln('Bye');
  43. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement