summaryrefslogtreecommitdiff
path: root/src/bin/termptyops.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/termptyops.c')
-rw-r--r--src/bin/termptyops.c28
1 files changed, 3 insertions, 25 deletions
diff --git a/src/bin/termptyops.c b/src/bin/termptyops.c
index dfc7558..5a95408 100644
--- a/src/bin/termptyops.c
+++ b/src/bin/termptyops.c
@@ -5,7 +5,7 @@
5#include "termptydbl.h" 5#include "termptydbl.h"
6#include "termptyops.h" 6#include "termptyops.h"
7#include "termptygfx.h" 7#include "termptygfx.h"
8#include "termptysave.h" 8#include "backlog.h"
9#include "miniview.h" 9#include "miniview.h"
10#include <assert.h> 10#include <assert.h>
11 11
@@ -317,30 +317,6 @@ termpty_clear_tabs_on_screen(Termpty *ty)
317} 317}
318 318
319void 319void
320termpty_clear_backlog(Termpty *ty)
321{
322 int backsize;
323
324 ty->backlog_beacon.screen_y = 0;
325 ty->backlog_beacon.backlog_y = 0;
326
327 termpty_backlog_lock();
328 if (ty->back)
329 {
330 size_t i;
331 for (i = 0; i < ty->backsize; i++)
332 termpty_save_free(ty, &ty->back[i]);
333 free(ty->back);
334 ty->back = NULL;
335 }
336 ty->backpos = 0;
337 backsize = ty->backsize;
338 ty->backsize = 0;
339 termpty_backlog_size_set(ty, backsize);
340 termpty_backlog_unlock();
341}
342
343void
344termpty_clear_screen(Termpty *ty, Termpty_Clear mode) 320termpty_clear_screen(Termpty *ty, Termpty_Clear mode)
345{ 321{
346 Termcell *cells; 322 Termcell *cells;
@@ -427,6 +403,8 @@ termpty_reset_att(Termatt *att)
427 att->framed = 0; 403 att->framed = 0;
428 att->encircled = 0; 404 att->encircled = 0;
429 att->overlined = 0; 405 att->overlined = 0;
406 att->tab_inserted = 0;
407 att->tab_last = 0;
430} 408}
431 409
432void 410void