blob: da42ca01062a2125f8a11b8c97cb2b484171db91 (
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;
};
RunesPty *runes_pty_new();
void runes_pty_spawn_subprocess(RunesTerm *t);
void runes_pty_init_loop(RunesTerm *t, RunesLoop *loop);
void runes_pty_set_window_size(
RunesTerm *t, int row, int col, int xpixel, int ypixel);
void runes_pty_write(RunesTerm *t, char *buf, size_t len);
void runes_pty_request_close(RunesTerm *t);
void runes_pty_delete(RunesPty *pty);
#endif
|