Thread View: comp.sys.ibm.pc.programmer
3 messages
3 total messages
Started by Jim Bittman
Sun, 03 Jun 1990 03:25
Turbo C 2.0 "automatic" text mode
Author: Jim Bittman
Date: Sun, 03 Jun 1990 03:25
Date: Sun, 03 Jun 1990 03:25
25 lines
1082 bytes
1082 bytes
I've just recently discovered a problem (at least for me) with
Turbo C 2.0. It appears that just having a call to their
"window" routine, in a module that is linked but never called,
causes the program to automatically reset the
video mode. I have a module that looks like this:
FILE1.C
main()
{
}
FILE2.c
has a call to "window"
dos> tcc -ms file1.c file2.c
dos> file1 (resets video mode from graphics to text!)
dos> tcc -ms file1.c
dos> file1 (just returns graphics prompt.)
I'm curios if anyone else has experienced this, or maybe this is a
"feature" that I just can't use...
Thanks for all help!
Jim Bittman, jmbj@grebyn.com
I consider this an annoyance, is there a workaround?
Re: Turbo C 2.0 "automatic" text mode
Author: Jeff Siegel, Op from Atherton Ha...
Date: Sat, 09 Jun 1990 23:13
Date: Sat, 09 Jun 1990 23:13
32 lines
1446 bytes
1446 bytes
In article <20098@grebyn.com>, jmbj@grebyn.com (Jim Bittman) says:
>
>I've just recently discovered a problem (at least for me) with
>Turbo C 2.0. It appears that just having a call to their
>"window" routine, in a module that is linked but never called,
>causes the program to automatically reset the
>video mode. I have a module that looks like this:
>
>FILE1.C
>main()
>{
>}
>
>FILE2.c
>has a call to "window"
>
>dos> tcc -ms file1.c file2.c
>dos> file1 (resets video mode from graphics to text!)
>dos> tcc -ms file1.c
>dos> file1 (just returns graphics prompt.)
>
>I'm curios if anyone else has experienced this, or maybe this is a
>"feature" that I just can't use...
No, there is no work around. Why you would need one, I'm not sure. You
Can't write anything to the screen in graphics mode with out using initgraph
first, which clears the screen anyway. Having window() linked signals the
internal startup code to call _CRTINIT which switches you back to text mode.
Jeff
Re: Turbo C 2.0 "automatic" text mode
Author: Solitair
Date: Wed, 13 Jun 1990 14:32
Date: Wed, 13 Jun 1990 14:32
4 lines
537 bytes
537 bytes
--
Sincerely, | berg@cip-s01.informatik.rwth-aachen.de
Stephen R. van den Berg | ...!uunet!mcsun!unido!rwthinf!cip-s01!berg
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads