aboutsummaryrefslogtreecommitdiffstats
path: root/src/pty-unix.h
blob: 1c96ec19f4f07549c2e7aefd92ca0ca1e7eef5b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _RUNES_PTY_H
#define _RUNES_PTY_H

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_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(RunesTerm *t);

#endif