When my program opens in a DOS-prompt, how can I move the cursor vertically? If someone could help me out with this it would be great.
Printable View
When my program opens in a DOS-prompt, how can I move the cursor vertically? If someone could help me out with this it would be great.
gotoxy(int X, int Y);
go to www.dosprogramming.com and under code is the answer
This maybe off the point but I've seen something similar before.
Do just want to view output from a program that has scrolled off the screen? If so you could pipe it into more like this:
>ProgramName.exe | more
Sorry if this is totally of the point
Brif
Is that linux\unix specific?Quote:
Originally posted by brif
This maybe off the point but I've seen something similar before.
Do just want to view output from a program that has scrolled off the screen? If so you could pipe it into more like this:
>ProgramName.exe | more
Sorry if this is totally of the point
Brif
Rather Windows-specific, altough it might exist in unix too.Quote:
Originally posted by Gnoober
Is that linux\unix specific?
I didn't know you could pipe in windows. Thought it was a Unix feature...
I'm sure windows command prompt did allow for pipes, perhaps I'm just getting old, however..
I tested it under XP and it is fine but under Win98 it dosent work :-( Perhaps I have just got a badly configured win98 box?
Another way to allow you to scroll up in the command prompt on newer versions of windows ( XP and NT I think?) is to right click the command prompt window and change the scrollbar setting in one of the tabs.
Although this probably wasnt the problem in the first place!
Brif
P.S I'm going to ask for a walking stick from santa this year