io.streams.ansi: use filter-writer.
parent
a688aff7af
commit
68cd577bcf
|
@ -54,15 +54,10 @@ CONSTANT: colors H{
|
|||
{ bold-italic "\e[1m\e[3m" }
|
||||
} at "" or ;
|
||||
|
||||
TUPLE: ansi stream ;
|
||||
TUPLE: ansi < filter-writer ;
|
||||
|
||||
C: <ansi> ansi
|
||||
|
||||
M: ansi stream-write1 stream>> stream-write1 ;
|
||||
M: ansi stream-write stream>> stream-write ;
|
||||
M: ansi stream-flush stream>> stream-flush ;
|
||||
M: ansi stream-nl stream>> stream-nl ;
|
||||
|
||||
M: ansi stream-format
|
||||
[
|
||||
[ foreground of [ color>foreground ] [ "" ] if* ]
|
||||
|
|
Loading…
Reference in New Issue