Guest_imported
New member
- Jan 1, 1970
- 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
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