mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Add an option to disable the smcup/rmcup alternate screen behaviour inside
tmux. From clemens fischer.
This commit is contained in:
6
input.c
6
input.c
@ -1148,6 +1148,7 @@ void
|
||||
input_handle_sequence_sm(struct input_ctx *ictx)
|
||||
{
|
||||
struct window_pane *wp = ictx->wp;
|
||||
struct options *oo = &wp->window->options;
|
||||
struct screen *s = &wp->base;
|
||||
u_int sx, sy;
|
||||
uint16_t n;
|
||||
@ -1178,6 +1179,8 @@ input_handle_sequence_sm(struct input_ctx *ictx)
|
||||
case 1049:
|
||||
if (wp->saved_grid != NULL)
|
||||
break;
|
||||
if (!options_get_number(oo, "alternate-screen"))
|
||||
break;
|
||||
sx = screen_size_x(s);
|
||||
sy = screen_size_y(s);
|
||||
|
||||
@ -1224,6 +1227,7 @@ void
|
||||
input_handle_sequence_rm(struct input_ctx *ictx)
|
||||
{
|
||||
struct window_pane *wp = ictx->wp;
|
||||
struct options *oo = &wp->window->options;
|
||||
struct screen *s = &wp->base;
|
||||
u_int sx, sy;
|
||||
uint16_t n;
|
||||
@ -1254,6 +1258,8 @@ input_handle_sequence_rm(struct input_ctx *ictx)
|
||||
case 1049:
|
||||
if (wp->saved_grid == NULL)
|
||||
break;
|
||||
if (!options_get_number(oo, "alternate-screen"))
|
||||
break;
|
||||
sx = screen_size_x(s);
|
||||
sy = screen_size_y(s);
|
||||
|
||||
|
Reference in New Issue
Block a user