banner: reset stderr after printing any warnings

This commit is contained in:
nick black 2020-05-28 23:30:43 -04:00
parent cce55f1d4e
commit 33c0e7fa2c
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -672,6 +672,9 @@ init_banner(const notcurses* nc){
if(!notcurses_canutf8(nc)){
fprintf(stderr, "\n Warning! Encoding is not UTF-8.\n");
}
if(nc->tcache.sgr0){
term_emit("sgr0", nc->tcache.sgr0, stderr, true);
}
}
}