blob: 05603c8e5338929c81695c02e9678c5d33db4f44 (
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
26
27
28
29
|
#pragma once
// IWYU pragma: private, include "nvim/os/pty_process.h"
#include <stdint.h>
#include <sys/ioctl.h>
#include "nvim/event/process.h"
#include "nvim/types_defs.h"
typedef struct {
Process process;
uint16_t width, height;
struct winsize winsize;
int tty_fd;
} PtyProcess;
static inline PtyProcess pty_process_init(Loop *loop, void *data)
{
PtyProcess rv;
rv.process = process_init(loop, kProcessTypePty, data);
rv.width = 80;
rv.height = 24;
rv.tty_fd = -1;
return rv;
}
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "os/pty_process_unix.h.generated.h"
#endif
|