mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
lack of smcup is not a reason to abort #2085
This commit is contained in:
parent
e63be1c41f
commit
d022a56cb6
@ -1228,9 +1228,12 @@ notcurses* notcurses_core_init(const notcurses_options* opts, FILE* outfp){
|
|||||||
// the alternate screen; we're not even going to bother clearing the screen.
|
// the alternate screen; we're not even going to bother clearing the screen.
|
||||||
if(ret->tcache.ttyfd >= 0){
|
if(ret->tcache.ttyfd >= 0){
|
||||||
if(!(opts->flags & NCOPTION_NO_ALTERNATE_SCREEN)){
|
if(!(opts->flags & NCOPTION_NO_ALTERNATE_SCREEN)){
|
||||||
if(enter_alternate_screen(ret->ttyfp, &ret->tcache, false)){
|
const char* smcup = get_escape(&ret->tcache, ESCAPE_SMCUP);
|
||||||
free_plane(ret->stdplane);
|
if(smcup){
|
||||||
goto err;
|
if(enter_alternate_screen(ret->ttyfp, &ret->tcache, false)){
|
||||||
|
free_plane(ret->stdplane);
|
||||||
|
goto err;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// perform an explicit clear since the alternate screen was requested
|
// perform an explicit clear since the alternate screen was requested
|
||||||
// (smcup *might* clear, but who knows? and it might not have been
|
// (smcup *might* clear, but who knows? and it might not have been
|
||||||
|
Loading…
x
Reference in New Issue
Block a user