io.streams.ansi: use filter-writer.

flac
John Benediktsson 2020-02-15 08:57:09 -08:00 committed by Steve Ayerhart
parent a688aff7af
commit 68cd577bcf
No known key found for this signature in database
GPG Key ID: 5BFD39C5359E967D
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* ]