Skip to contentSkip to conversation

ANSI behaviour

DISCUSSION K. Reid-Grey 3 participants 3 messages Feb 21, 2003 – Feb 22, 2003

lore
Share & tools
lore
#0 lore raw

I've been using DOSemu's "virtual" com ports to run a bunch of BBS doors under Linux and I've noticed the output appears a little different because of the way the terminal behaves to some ANSI sequences compared with real DOS.

In MS-DOS ESC[2J clears the screen /and/ homes the cursor while terminal clients only clear the screen. This means the next screen is drawn from from the bottom row of the previous one, scrolling the screen.

It's only a small cosmetic thing I know, but I was wondering if anyone knows of a way I can setup the terminal to correct the display, or perhaps filter the "virtual" com port data on the fly to append a 'home cursor' sequence.

---
K. Reid-Grey

#1 lore raw

Hi there,

Quoted 1 line · K. Reid-Grey

In MS-DOS ESC[2J clears the screen /and/ homes the cursor

Isn't that because you have the ANSI.SYS device driver loaded?

Can't you just load it in your DOSEMU session?

73,
Ged.

#2 lore raw
In reply to K. Reid-Grey

Hey,

Quoted 8 lines

I've been using DOSemu's "virtual" com ports to run a bunch of BBS doors under Linux and I've noticed the output appears a little different because of the way the terminal behaves to some ANSI sequences compared with real DOS.

In MS-DOS ESC[2J clears the screen /and/ homes the cursor while terminal clients only clear the screen. This means the next screen is drawn from from the bottom row of the previous one, scrolling the screen.

Yep, this is a quirk of the MS-DOS console driver. The only way around it really is to use a terminal emulator that supports it. I have hacked support for it (along with some other DOS quirks, like printing control characters < ASCII 32 from the video card ROM) into PuTTY so that the Unix pterm would support them, but the author wants a more cleaned up version of the patch first. :)

Signature · 1 line
Ryan Underwood, <nemesis at icequake.net>, icq=10317253