mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
pty_process: split into plat-specific files (#3976)
This commit is contained in:

committed by
Justin M. Keyes

parent
02e6914a93
commit
6ed9d47a6e
28
src/nvim/os/pty_process_win.h
Normal file
28
src/nvim/os/pty_process_win.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef NVIM_OS_PTY_PROCESS_WIN_H
|
||||
#define NVIM_OS_PTY_PROCESS_WIN_H
|
||||
|
||||
#include "nvim/event/libuv_process.h"
|
||||
|
||||
typedef struct pty_process {
|
||||
Process process;
|
||||
char *term_name;
|
||||
uint16_t width, height;
|
||||
} PtyProcess;
|
||||
|
||||
#define pty_process_spawn(job) libuv_process_spawn((LibuvProcess *)job)
|
||||
#define pty_process_close(job) libuv_process_close((LibuvProcess *)job)
|
||||
#define pty_process_close_master(job) libuv_process_close((LibuvProcess *)job)
|
||||
#define pty_process_resize(job, width, height)
|
||||
#define pty_process_teardown(loop)
|
||||
|
||||
static inline PtyProcess pty_process_init(Loop *loop, void *data)
|
||||
{
|
||||
PtyProcess rv;
|
||||
rv.process = process_init(loop, kProcessTypePty, data);
|
||||
rv.term_name = NULL;
|
||||
rv.width = 80;
|
||||
rv.height = 24;
|
||||
return rv;
|
||||
}
|
||||
|
||||
#endif // NVIM_OS_PTY_PROCESS_WIN_H
|
Reference in New Issue
Block a user