[comp.sys.ibm.pc] TurboC terminal-input problem

bobmon@iuvax.cs.indiana.edu (RAMontante) (09/03/88)

Hi, everybody, and Help!  I just ran into a crazy problem (or TurboC just
ran into a crazy user?)  Consider the following "subtle" code, in TC v1.5:

	#include <stdio.h>
	void main()
	{
		char a[81];
		puts("String Test: ");
		puts(gets(a));
	}

I expect this to print the message, wait for keyboard input, echo what it
gets, print the result (so I see the input twice), and stop.

Using MSDOSv3.21 (Zenith release), IFF I have nansi.sys or Fansi-console
loaded, this works as I expect.  But with no terminal driver loaded, i.e.
I boot up with a "minimal" "plain vanilla" o.s., the program never ever
sees any input.  It prints the message, then sits there until I give it
the three-fingered salute (at least I _can_ keyboard-reboot...).

Shouldn't the program run without an ansi-like terminal driver?  Or have I
missed a point in there somewhere?
-- 
--    bob,mon			(bobmon@iuvax.cs.indiana.edu)
--    "Aristotle was not Belgian..."	- Wanda