+ editor removes per-buffer fields. + switching from internal use of 'int' to 'size_t'. + deleting old code + double checking relevancy of comments. A lot has changed in 5 years, even more so in the past week. + fixing a few vestigal memory errors from the overhaul. + fixing search behavior
23 lines
563 B
C
23 lines
563 B
C
#ifndef KE_TERM_H
|
|
#define KE_TERM_H
|
|
|
|
#include "abuf.h"
|
|
|
|
/* Terminal control/setup API */
|
|
void enable_termraw(void);
|
|
void disable_termraw(void);
|
|
void setup_terminal(void);
|
|
void display_clear(abuf *ab);
|
|
|
|
/*
|
|
* get_winsz uses the TIOCGWINSZ to get the window size.
|
|
*
|
|
* there's a fallback way to do this, too, that involves moving the
|
|
* cursor down and to the left \x1b[999C\x1b[999B. I'm going to skip
|
|
* on this for now because it's bloaty and this works on OpenBSD and
|
|
* Linux, at least.
|
|
*/
|
|
int get_winsz(size_t *rows, size_t *cols);
|
|
|
|
#endif /* KE_TERM_H */
|