X-Git-Url: https://git.xinqibao.xyz/st.git/blobdiff_plain/ebb6e03201ce0e5a00be7cff2e365ad3d6cb7195..b8d6171cb00c28e4c90e58e101554097003b59d3:/st.c?ds=sidebyside diff --git a/st.c b/st.c index ced72ff..70caf82 100644 --- a/st.c +++ b/st.c @@ -1855,7 +1855,10 @@ tsetmode(bool priv, bool set, int *args, int narg) { MODBIT(term.mode, set, MODE_8BIT); break; case 1049: /* swap screen & set/restore cursor as xterm */ + if (!allowaltscreen) + break; tcursor((set) ? CURSOR_SAVE : CURSOR_LOAD); + /* FALLTHRU */ case 47: /* swap screen */ case 1047: if (!allowaltscreen)