TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: KURT KUZBA
from: RUSS WUERTZ
date: 1998-04-10 06:36:00
subject: Re: Ansi.Sys

Hello Kurt,
On 09 Apr. 98   2:46 Kurt Kuzba wrote to Russ Wuertz...
 RW>   Was it you who mentioned something about the color
 RW>   attribute of an int being one of the bits?   If I intake
 RW>   from another computer through my serial port, and want to
 RW>   send a colored word how would I go about doing that?
 KK> Now you are getting into the realm of terminal emulation.
 KK> There are many schemes for reproducing color and cursor
 KK> control on a remote terminal: vt100, vt101, vt102, ANSI.
 KK> You need to encode the color and cursor changes into your
 KK> text as escape sequences, and then have the remote terminal
 KK> interpret those command sequences and perform the proper
 KK> color and cursor changes. There is a good deal of material
 KK> in SNIPPETS concerning ANSI emulation. Another option is to
 KK> send two characters for each video display character, but
 KK> this is twice the necessary data, usually, and an ANSI
 KK> terminal emulation will usually be more economical.
 KK> If the ANSI.SYS, or equivalent, is present on the remote
 KK> system, then the text received may simply be printed to
 KK> stdout, and the installed ISR will handle the emulation.
 KK> 
     Your opinion is that getStream(1) as defined in stdio.h cannot
     be used to capture those ANSI escape sequences so that I can
     print out with cprintf.   I have cprintf here in its C function
     form so that I could change it around (re-compile it and put it
     back into my lib).
         I realized I did not have enough understanding of how 
     #define stdout getStream(1)  worked to filter my input through
     that stream.
         The problem with using anyone elses ANSI program to decode
     excape sequences is portability.  Line feed charactors, screen
     width and other little things like that keep showing up.  "If there
     is a fuction already USE IT."  Isn't that what supervision always
     says?  I will have to look over Vidmgr.c again in Snippents.
 > "Hey lets railroad the Indians and Hispanics and say we didn't"
Regards,
-=Russ=-
--- 
---------------
* Origin: The Bear's Cave Titusville FL 407-383-9372 V34/VFC/H16 (1:374/73)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.