io.streams.ansi: use filter-writer.

master
John Benediktsson 2020-02-15 08:57:09 -08:00
parent d0a44d665e
commit e822e78afd
1 changed files with 1 additions and 6 deletions

View File

@ -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* ]