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.
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);
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
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?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
- Grady (:
Rather Windows-specific, altough it might exist in unix too.Originally posted by Gnoober
Is that linux\unix specific?
Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling
I didn't know you could pipe in windows. Thought it was a Unix feature...
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
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