Mail Archives: djgpp/2003/11/25/10:46:12
Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> wrote:
> > When using the command line under win98 I really miss a scrollable
> > window like under Linux.
>
> You, and lots of others. Unfortunately it doesn't exist, and quite
> probably that's because it is fundamentally impossible.
>
> DOS itself does not expect a terminal window to be back-scrollable,
> and will cause all kinds of strange things to happen if you try to
> convince it otherwise.
>
> You may have noticed that the NT console window, which usually does
> have scrolling capabilities, immediately loses those when you run any
> MS-DOS program that outputs to the screen. That's the same problem in
> a different dress.
I'm confused. What do you mean by "back-scrollable" and "MS-DOS
program that outputs to the screen"? On my Windows XP system, using
cmd.exe as my shell, I have the ability to scroll back to the
beginning of the session using the scroll bar, and that includes when
I run my DJGPP-compiled programs (which output to the screen using
std::cout and printf). I have to run cmd.exe as a window to get that
capability - while I'm running it full-screen, I don't seem to have
the ability to scroll - but if I switch back (using alt-enter) to a
window, the parts that have scrolled off the screen are still there if
I want to scroll back, and that continues to be the case while my
DJGPP-compiled DOS program remains active.
Did I misunderstand what you meant, or is XP just different than Win98
and NT in this area? I'm guessing the former, so could you explain in
more detail what it is that can't be done?
Best regards,
Tom
- Raw text -