1TICKIT_TERM_ERASECH(3) Library Functions Manual TICKIT_TERM_ERASECH(3)
2
3
4
6 tickit_term_erasech - erase characters from the terminal
7
9 #include <tickit.h>
10
11 void tickit_term_erasech(TickitTerm *tt, int count, TickitMaybeBool moveend);
12
13 Link with -ltickit.
14
16 tickit_term_erasech() erases count character cells forward from the
17 current cursor location, using the current pen background colour.
18
19 Some terminals cannot erase using the background colour, so this opera‐
20 tion may be implemented by printing spaces on such terminals. This will
21 move the cursor to the end of the erased region. Other terminals that
22 do erase with background colour can be erased without moving the cur‐
23 sor. The moveend parameter controls the behaviour of the cursor loca‐
24 tion when this function returns. If set to TICKIT_YES, the cursor will
25 be moved to the end of the erased region if required. If set to
26 TICKIT_NO, the cursor will be moved back to its original location if
27 required. If set to TICKIT_MAYBE, this function will take whichever be‐
28 haviour is more optimal on the given terminal.
29
31 tickit_term_erasech() returns no value.
32
34 tickit_term_new(3), tickit_term_set_output_fd(3), tickit_term_set_out‐
35 put_func(3), tickit_term_goto(3), tickit_term_print(3),
36 tickit_term_setpen(3), tickit_term_chpen(3), tickit_term(7), tickit(7)
37
38
39
40 TICKIT_TERM_ERASECH(3)