Skip to content

Commit

Permalink
Enable altscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
akermu committed Dec 12, 2018
1 parent 42c7802 commit ec95898
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vterm-module.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,9 @@ static int term_settermprop(VTermProp prop, VTermValue *val, void *user_data) {
case VTERM_PROP_CURSORBLINK:
term->cursor.blinking = val->boolean;
break;
case VTERM_PROP_ALTSCREEN:
invalidate_terminal(term, 0, term->height);
break;
default:
return 0;
}
Expand Down Expand Up @@ -621,6 +624,7 @@ static emacs_value Fvterm_new(emacs_env *env, ptrdiff_t nargs,
vterm_screen_reset(term->vts, 1);
vterm_screen_set_callbacks(term->vts, &vterm_screen_callbacks, term);
vterm_screen_set_damage_merge(term->vts, VTERM_DAMAGE_SCROLL);
vterm_screen_enable_altscreen(term->vts, true);
term->sb_size = MIN(SB_MAX, sb_size);
term->sb_current = 0;
term->sb_pending = 0;
Expand Down

0 comments on commit ec95898

Please sign in to comment.