#pragma once // IWYU pragma: private, include "nvim/os/pty_process.h" #include #include #include "nvim/event/loop.h" #include "nvim/event/process.h" typedef struct pty_process { 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