Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I reset the stdout stream?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Hello,
Is there a way to reset the stdout stream using only ansi C (i.e. stdio.h) functions. I've tried the fseek(), fgetpos()/fsetpos(), and rewind() functions on stdout, but they have no effect. What I'm trying to do is reset the cursor to the "home" postion on a screen to update variables on serveral lines while the text remains the same. I don't have access to conio.h. Is there a way to close stdout and reopen it without redirecting it, and would that reset the cursor? Any help is welcome. Thanks.

--Bryan Schwichtenberg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top