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