Mail Archives: djgpp/1997/05/09/15:17:00
> 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 -