public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* ANSI behaviour
@ 2003-02-21 20:08 K. Reid-Grey
  2003-02-21 20:14 ` Ged Haywood
  2003-02-22  3:06 ` Ryan Underwood
  0 siblings, 2 replies; 4+ messages in thread
From: K. Reid-Grey @ 2003-02-21 20:08 UTC (permalink / raw)
  To: dosemu

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ANSI behaviour
  2003-02-21 20:08 ANSI behaviour K. Reid-Grey
@ 2003-02-21 20:14 ` Ged Haywood
  2003-02-22  3:06 ` Ryan Underwood
  1 sibling, 0 replies; 4+ messages in thread
From: Ged Haywood @ 2003-02-21 20:14 UTC (permalink / raw)
  To: K. Reid-Grey; +Cc: dosemu

Hi there,

On Fri, 21 Feb 2003, K. Reid-Grey wrote:

> 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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ANSI behaviour
       [not found] <008901c2d9e7$19bdd820$0200a8c0@ufuria.org>
@ 2003-02-21 20:33 ` Ged Haywood
  0 siblings, 0 replies; 4+ messages in thread
From: Ged Haywood @ 2003-02-21 20:33 UTC (permalink / raw)
  To: K. Reid-Grey; +Cc: DOSEMU users mailing list

Hi there,

On Fri, 21 Feb 2003, K. Reid-Grey wrote:

> > Can't you just load it in your DOSEMU session?
> 
> It's loaded in there too, but it makes no difference either way.

Argh.  I found this in the doc's...

----------------------------------------------------------------------
8.1.2. ms_dos

   int0x21 call
   
   we trap this for two functions: simulating the EMMXXXX0 device and
   fudging the CONFIG.XXX and AUTOEXEC.XXX bootup files.
   
   note that the emulation herein may cause problems with programs that
   like to take control of certain int 21h functions, or that change
   functions that the true int 21h functions use. An example of the
   latter is ANSI.SYS, which changes int 10h, and int 21h uses int 10h.
   for the moment, ANSI.SYS won't work anyway, so it's no problem.
----------------------------------------------------------------------

There are other device drivers that do similar things, maybe there's
one that will work?

73,
Ged.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ANSI behaviour
  2003-02-21 20:08 ANSI behaviour K. Reid-Grey
  2003-02-21 20:14 ` Ged Haywood
@ 2003-02-22  3:06 ` Ryan Underwood
  1 sibling, 0 replies; 4+ messages in thread
From: Ryan Underwood @ 2003-02-22  3:06 UTC (permalink / raw)
  To: K. Reid-Grey; +Cc: linux-msdos


Hey,

> 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.  :)

-- 
Ryan Underwood, <nemesis at icequake.net>, icq=10317253

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-02-22  3:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-21 20:08 ANSI behaviour K. Reid-Grey
2003-02-21 20:14 ` Ged Haywood
2003-02-22  3:06 ` Ryan Underwood
     [not found] <008901c2d9e7$19bdd820$0200a8c0@ufuria.org>
2003-02-21 20:33 ` Ged Haywood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox