Modifying software to compile with the Free Pascal compiler and run on modern systems...
[supernova.git] / src / CLUERITE.PAS
index 52abeeff2276fa4cfabe48093fed313e25ef67cc..b379046a8a9357569af59ed5dde4f063f1a25fdc 100644 (file)
@@ -1,5 +1,27 @@
 {//-------------------------------------------------------------------------}\r
 {/*                                                                         }\r
+{Copyright (C) 2014 Jason Self <j@jxself.org>                               }\r
+{                                                                           }\r
+{This file is free software: you may copy, redistribute and/or modify it    }\r
+{under the terms of the GNU Affero General Public License as published by   }\r
+{the Free Software Foundation, either version 3 of the License, or (at your }\r
+{option) any later version.                                                 }\r
+{                                                                           }\r
+{This file is distributed in the hope that it will be useful, but WITHOUT   }\r
+{ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or      }\r
+{FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License}\r
+{for more details.                                                          }\r
+{                                                                           }\r
+{You should have received a copy of the GNU Affero General Public License   }\r
+{along with this program; if not, see https://gnu.org/licenses or write to: }\r
+{  Free Software Foundation, Inc.                                           }\r
+{  51 Franklin Street, Fifth Floor                                          }\r
+{  Boston, MA 02110-1301                                                    }\r
+{  USA                                                                      }\r
+{                                                                           }\r
+{This file incorporates work covered by the following copyright and         }\r
+{permission notice:                                                         }\r
+{                                                                           }\r
 {Copyright (C) 1990, 2009 - Apogee Software, Ltd.                           }\r
 {                                                                           }\r
 {This file is part of Supernova.  Supernova is free software; you can       }\r
@@ -25,6 +47,8 @@
 {*/                                                                         }\r
 {//-------------------------------------------------------------------------}\r
 {$c-}\r
+uses crt;\r
+\r
 const\r
   Max = 77;\r
 \r
@@ -62,7 +86,7 @@ text1   : MaxLength;
       begin\r
         highvideo;\r
         READ(C1,text1);\r
-        if list then writeln(lst,counter,':',text1)\r
+        if list then writeln(counter,':',text1)\r
         else\r
           begin\r
             writeln('Here is CLUE # ',counter);\r
@@ -89,7 +113,7 @@ repeat          {Main loop.}
 \r
 writeln;\r
 writeln('Do you want to R)ead, W)rite or Q)uit?');\r
-read(kbd,answer);\r
+answer:=readkey;\r
 if upcase(answer) = 'Q' then begin writeln('FINISHED');halt;end;\r
 if upcase(answer) <> 'R' then       {Write to 'Clues'.}\r
     begin\r
@@ -103,7 +127,7 @@ if upcase(answer) <> 'R' then       {Write to 'Clues'.}
       x:=wherey;if(x>21)then x:=22;for stop:=1 to 3 do writeln;gotoxy(1,x);\r
       textcolor(11);\r
         repeat\r
-          read(trm,letter);\r
+          letter:=readkey;\r
           if letter = ^h then\r
             begin\r
               write(^h,' ',^h);\r
@@ -129,7 +153,7 @@ else                      {Read from 'Clues'.}
   begin\r
     writeln;writeln;\r
     writeln('To the S)creen or the P)rinter');\r
-    read(kbd,answer);\r
+    answer:=readkey;\r
     if(upcase(answer)='P')then List:=True else List:=False;\r
     assign(C1,'C1');\r
     reset(C1);\r