eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'FilteringLineStream::AnsiControlSequenceInterpretingStream':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: AnsiControlSequenceInterpretingStream (private in FilteringLineStream

This class is only visible from within FilteringLineStream.

Inheritance:

   Object
   |
   +--Stream
      |
      +--PeekableStream
         |
         +--FilteringStream
            |
            +--FilteringLineStream
               |
               +--FilteringLineStream::AnsiControlSequenceInterpretingStream

Package:
stx:libbasic2
Category:
Streams-Misc
Owner:
FilteringLineStream

Description:


a Q&D hack of a stream which interprets ANSI color rendition sequences
(to forward a program's output to the Transcript(


Class protocol:

instance creation
o  new
(comment from inherited method)
create and return a new filteringStream.
The resulting stream must be connected to some other stream,
before being used


Instance protocol:

initialization
o  initialize
(comment from inherited method)
just to ignore initialize to objects which do not need it

processing
o  applyColorTo: outStream
outStream emphasis:{#color->Color yellow darkened }.

o  interpretAnsiSequencesInline: line
|s|
s := AnsiControlSequenceInterpretingStream new.
s outputStream:Transcript.
s nextPutLine:c'\e[90maaa\e[90mbbbb'.
s nextPutLine:c'\e[90maaa\e[90mbbbb'.



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 13:55:21 GMT