hey, VTE supports ucurl, sweet

This commit is contained in:
nick black 2021-06-24 19:35:36 -04:00 committed by Nick Black
parent b1fd24a970
commit 8b0c138b72
2 changed files with 5 additions and 2 deletions

View File

@ -1113,7 +1113,7 @@ notcurses* notcurses_core_init(const notcurses_options* opts, FILE* outfp){
}
const char* shortname_term = termname();
// const char* longname_term = longname();
int cursor_y, cursor_x;
int cursor_y = -1, cursor_x = -1;
if(interrogate_terminfo(&ret->tcache, ret->ttyfd, shortname_term, utf8,
opts->flags & NCOPTION_NO_ALTERNATE_SCREEN, 0,
detected_term,
@ -1508,7 +1508,7 @@ nccell_obliterate(ncplane* n, nccell* c){
// increment y by 1 and rotate the framebuffer up one line. x moves to 0.
void scroll_down(ncplane* n){
//fprintf(stderr, "pre-scroll: %d/%d %d/%d log: %d\n", n->y, n->x, n->leny, n->lenx, n->logrow);
//fprintf(stderr, "pre-scroll: %d/%d %d/%d log: %d scrolling: %u\n", n->y, n->x, n->leny, n->lenx, n->logrow, n->scrolling);
n->x = 0;
if(n->y == n->leny - 1){
if(n == notcurses_stdplane(ncplane_notcurses(n))){

View File

@ -271,6 +271,9 @@ apply_term_heuristics(tinfo* ti, const char* termname, int fd,
termname = "VTE";
ti->caps.quadrants = true;
ti->caps.sextants = true; // VTE has long enjoyed good sextant support
if(add_smulx_escapes(ti, tablelen, tableused)){
return -1;
}
}else if(qterm == TERMINAL_FOOT){
termname = "foot";
ti->caps.sextants = true;