Neovim Home
src
nvim
os
pty_process_unix.h
Go to the documentation of this file.
1
#ifndef NVIM_OS_PTY_PROCESS_UNIX_H
2
#define NVIM_OS_PTY_PROCESS_UNIX_H
3
4
#include <sys/ioctl.h>
5
6
#include "
nvim/event/process.h
"
7
8
typedef
struct
pty_process
{
9
Process
process
;
10
uint16_t
width
,
height
;
11
struct
winsize
winsize
;
12
int
tty_fd
;
13
}
PtyProcess
;
14
15
static
inline
PtyProcess
pty_process_init(
Loop
*
loop
,
void
*data)
16
{
17
PtyProcess
rv
;
18
rv
.process = process_init(
loop
,
kProcessTypePty
, data);
19
rv
.width = 80;
20
rv
.height = 24;
21
rv
.tty_fd = -1;
22
return
rv
;
23
}
24
25
#ifdef INCLUDE_GENERATED_DECLARATIONS
26
# include "os/pty_process_unix.h.generated.h"
27
#endif
28
29
#endif // NVIM_OS_PTY_PROCESS_UNIX_H
pty_process::process
Process process
Definition:
pty_process_unix.h:9
process.h
rv
int rv
Definition:
log.c:314
PtyProcess
struct pty_process PtyProcess
pty_process
Definition:
pty_process_unix.h:8
pty_process::height
uint16_t height
Definition:
pty_process_unix.h:10
pty_process::winsize
struct winsize winsize
Definition:
pty_process_unix.h:11
pty_process::tty_fd
int tty_fd
Definition:
pty_process_unix.h:12
process
Definition:
process.h:18
kProcessTypePty
@ kProcessTypePty
Definition:
process.h:11
pty_process::width
uint16_t width
Definition:
pty_process_unix.h:10
loop
Definition:
loop.h:16