gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] STextIO


From: rob solomon
Subject: [Gm2] STextIO
Date: Thu, 10 Oct 2013 17:49:18 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0

Hi.  I am having an issue w/ STextIO.ReadString and STextIO.SkipLine.

Consider this:

PROCEDURE PressAnyKey;
VAR dummy: ARRAY [0..10] OF CHAR;

BEGIN
  STextIO.WriteString(' Press <enter> to continue.');
  STextIO.WriteLn;
  STextIO.ReadString(dummy);
  STextIO.SkipLine;
  STextIO.WriteLn;
END PressAnyKey;


When I use this routine, I have to use ctrl-d for the routine to exit and the program to continue. <enter> does not. When I hit <enter>, the character is echoed to the terminal but the program does not continue.

Using the StrIO routines works as intended, but not the ISO routines.

Am I missing anything here?

--rob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]