blob: ea131cafb54314623e2c3637b1bc59cd976b246b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef _RUNES_PTY_H
#define _RUNES_PTY_H
#define RUNES_READ_BUFFER_LENGTH 4096
struct runes_pty {
int master;
int slave;
pid_t child_pid;
char readbuf[RUNES_READ_BUFFER_LENGTH];
int readlen;
int remaininglen;
};
void runes_pty_backend_init(RunesPtyBackend *pty);
void runes_pty_backend_spawn_subprocess(RunesTerm *t);
void runes_pty_backend_init_loop(RunesTerm *t, RunesLoop *loop);
void runes_pty_backend_set_window_size(RunesTerm *t, int row, int col,
int xpixel, int ypixel);
void runes_pty_backend_write(RunesTerm *t, char *buf, size_t len);
void runes_pty_backend_request_close(RunesTerm *t);
void runes_pty_backend_cleanup(RunesPtyBackend *pty);
#endif
|