Page 1 of 1

Redirect output from curses application

Posted: 22 Jul 2008 08:26
by TheCheat
I'm running MS DOS 6.22, and am using a curses based application. I need to redirect the information to a text file. So I tried using output stream character:

Code: Select all

C:\> myCursesProgram > 1.txt
However, that didn't work, which I expected it not to. Is there some way to get the information it's displaying to a text file?

I think there's an option to have the information output to a floppy as well. So if there's a way to redirect the stream going to the floppy to a text file instead, that would also be great.

Posted: 23 Jul 2008 11:04
by Odder93
First of all, I'm not sure I did understand the half of it xD but I will give it a try ;)

This will type the program code to somewhere.ext

Code: Select all

type myCursesProgram >> somewhere.ext


This will type the progams outputs in somewhere.ext

Code: Select all

start myCursesProgram >> somewhere.ext


That's the best I can do (right now) :P