direct mode: write sprixel with posix i/o for strength

pull/1889/head
nick black 3 years ago
parent 00e28cc569
commit 3763739b9f
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -417,7 +417,12 @@ ncdirect_dump_plane(ncdirect* n, const ncplane* np, int xoff){
return -1;
}
}
if(ncfputs(np->sprite->glyph, n->ttyfp) == EOF){
// flush our FILE*, as we're about to use UNIX I/O (since we can't rely on
// stdio to transfer large amounts at once).
if(ncdirect_flush(n)){
return -1;
}
if(blocking_write(fileno(n->ttyfp), np->sprite->glyph, np->sprite->glyphlen) < 0){
return -1;
}
return 0;

Loading…
Cancel
Save