From: Matan Ziv-Av (matan@svgalib.org)
Date: Wed 19 Sep 2001 - 13:58:08 IDT
On Tue, 18 Sep 2001, Jason wrote: > howdy > > I have an svgalib app and I'd like, based on user input, to switch back > to text mode do some printf's and fgets's with input from the user. spectemu does that, so you might want to see how it's done there. > so I'm doing, basically: > > /* working in a vga mode to this point */ > char tmp[256]; > keyboard_close(); > vga_setmode(TEXT); > > printf("foo: "); > scanf("%s", tmp); > > vga_setmode(MYVGAMODE); > keyboard_init(); > /* back to vga mode */ > but I don't see the printf stuff until I quit the app alltogether, and > the scanf does into the ether. If you put \n in the printf string, do you see the output? The stdout string is line-buffered. > If this soundsstupid, it's a simplification.What I really need is for > my svgalib app to run another svgalib app, wait for it to exit, and then > resume operations.the second app may need user input. Trying this has the > same result as the above. > > btw, how does one join this list? by sending a message with content subscribe linux-svgalib to listbot@svgalib.org. -- Matan Ziv-Av. matan@svgalib.org ------------------------------------------------------------------ Unsubscribe: To: listbot@svgalib.org Body: unsubscribe linux-svgalib
This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:24 IST