mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-03 07:15:29 -04:00
terminal: implement term_init() and term_destroy()
This commit is contained in:
parent
957fb25559
commit
0979a0e2e5
3 changed files with 375 additions and 328 deletions
10
terminal.h
10
terminal.h
|
|
@ -8,6 +8,8 @@
|
|||
#include <threads.h>
|
||||
#include <semaphore.h>
|
||||
|
||||
//#include "config.h"
|
||||
#include "fdm.h"
|
||||
#include "font.h"
|
||||
#include "tllist.h"
|
||||
#include "wayland.h"
|
||||
|
|
@ -142,6 +144,8 @@ enum mouse_reporting {
|
|||
enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BAR };
|
||||
|
||||
struct terminal {
|
||||
struct fdm *fdm;
|
||||
|
||||
pid_t slave;
|
||||
int ptmx;
|
||||
bool quit;
|
||||
|
|
@ -283,6 +287,12 @@ struct terminal {
|
|||
} delayed_render_timer;
|
||||
};
|
||||
|
||||
struct config;
|
||||
struct terminal *term_init(
|
||||
const struct config *conf, struct fdm *fdm, struct wayland *wayl,
|
||||
int argc, char *const *argv);
|
||||
int term_destroy(struct terminal *term);
|
||||
|
||||
void term_reset(struct terminal *term, bool hard);
|
||||
|
||||
void term_damage_rows(struct terminal *term, int start, int end);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue