lang:=upcase(GetEnvironmentVariable('LANG')); \r
UTF8Scr:= (Pos('.UTF-8', lang) > 0) or (Pos('.UTF8', lang) > 0);\r
{ Check min req col & rows}\r
+ if nCols(stdscr) < 80 then begin\r
+ writeln('You must have 80 character columns');\r
+ Halt;\r
+ end;\r
+ if nRows(stdscr) < 25 then begin\r
+ writeln('You must have 25 character rows');\r
+ Halt;\r
+ end;\r
{writeln(nCols(stdscr),nRows(stdscr));}\r
end;\r
\r
until keypressed;\r
CFlag:=ReadKey;\r
{$IFDEF UNIX}\r
- nSetActiveWin(stdscr);\r
+ nStop;\r
nDelWindow(win);\r
+ nSetActiveWin(stdscr);\r
+ clrscr;\r
+ nStart;\r
{$ENDIF}\r
if Color then textmode(C80)else textmode(BW80);\r
end; { Title }\r
if(CFlag<>^h)then Identity:=Identity+upcase(CFlag)\r
else delete(Identity,length(Identity),2);\r
gotoxy(1,11);Cn(' '+Identity+' ');\r
+{$IFDEF UNIX}\r
+ nRefresh(stdscr);\r
+{$ENDIF}\r
{sound(50);delay(50);nosound;}\r
for x:=1 to 50 do sounddelayed(50,1); nosound;\r
until CFlag=chr(13);\r
begin SF; writeln('The ',What1,' is already ',What2,'.') end;\r
\r
{******************* END OF PARSER AND MISC. PROCEDURES *********************}\r
-\1a\r