aboutsummaryrefslogtreecommitdiffstats
path: root/src/pty-unix.h
blob: cf9fdf604cc12c361211df45819f17e06e4d78e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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_start_loop(RunesTerm *t);
void runes_pty_backend_set_window_size(RunesTerm *t);
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