mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-09 05:54:47 +02:00
Zombie windows, requested by Will Maier.
This commit is contained in:
23
screen.c
23
screen.c
@ -1,4 +1,4 @@
|
||||
/* $Id: screen.c,v 1.62 2008-06-18 22:21:51 nicm Exp $ */
|
||||
/* $Id: screen.c,v 1.63 2008-06-29 07:04:30 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -156,6 +156,27 @@ screen_create(struct screen *s, u_int dx, u_int dy, u_int hlimit)
|
||||
screen_clear_selection(s);
|
||||
}
|
||||
|
||||
/* Reinitialise screen. */
|
||||
void
|
||||
screen_reset(struct screen *s)
|
||||
{
|
||||
s->cx = 0;
|
||||
s->cy = 0;
|
||||
|
||||
s->rupper = 0;
|
||||
s->rlower = s->dy - 1;
|
||||
|
||||
s->attr = SCREEN_DEFATTR;
|
||||
s->colr = SCREEN_DEFCOLR;
|
||||
|
||||
s->mode = MODE_CURSOR|MODE_KCURSOR|MODE_KKEYPAD;
|
||||
|
||||
screen_display_fill_area(s, 0, 0,
|
||||
screen_size_x(s), screen_size_y(s), ' ', 0, 0x88);
|
||||
|
||||
screen_clear_selection(s);
|
||||
}
|
||||
|
||||
/* Resize screen. */
|
||||
void
|
||||
screen_resize(struct screen *s, u_int sx, u_int sy)
|
||||
|
Reference in New Issue
Block a user