www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/09/15:17:00

Date: Fri, 9 May 1997 15:15:10 -0400
From: Bryan Murphy <bryan AT hcst DOT com>
Subject: Re: terminal emulation
To: Marcin Citowicki <miki AT ernie DOT icslab DOT agh DOT edu DOT pl>
cc: djgpp AT delorie DOT com
In-Reply-To: <199705091724.TAA22053@ernie.icslab.agh.edu.pl>
Message-ID: <Pine.3.89.9705091541.A4142-0100000@alpha.hcst.com>
MIME-Version: 1.0

> I have a question : I need to change control characters of terminal ( using 
> DJGPP ) in order to match Linux ( or Unix ) ones .
> For example :
> 
> I connect to remote computer , which runs Linux system , using a remote login
> programme written in DJGPP . Now , when I invoke , lets say , "ls" command ,
> I receive things like these :
> 
> [32mcdrom/[0 [32metc/[0 [32musr/[0 
> 
> instead of :
> 
> cdrom/ etc/ usr/
> 
> How can I change stdout settings to make my computer understand those
> characters ? ( [32m , [0 , etc. )
> 
> I have never done anything similiar , so , please , help me , if you can .

Sounds like you need to load ANSI.SYS.  If you are using DJGPP, DJGPP 
outputs everything through STDOUT, which is basically the DOS BIOS I 
believe.  If you load your ANSI.SYS driver (or a similar program) you 
shouldn't have any problems.

CONFIG.SYS
DEVICE=C:\DOS\ANSI.SYS
or
DEVICE=C:\WINDOWS\COMMAND\ANSI.SYS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019