Functions
pty_process_unix.c File Reference
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <termios.h>
#include <pty.h>
#include <uv.h>
#include "nvim/event/loop.h"
#include "nvim/event/process.h"
#include "nvim/event/rstream.h"
#include "nvim/event/wstream.h"
#include "nvim/lib/klist.h"
#include "nvim/log.h"
#include "nvim/os/os.h"
#include "nvim/os/pty_process_unix.h"

Functions

void pty_process_save_termios (int tty_fd)
 
int pty_process_spawn (PtyProcess *ptyproc) FUNC_ATTR_NONNULL_ALL
 
const char * pty_process_tty_name (PtyProcess *ptyproc)
 
void pty_process_resize (PtyProcess *ptyproc, uint16_t width, uint16_t height) FUNC_ATTR_NONNULL_ALL
 
void pty_process_close (PtyProcess *ptyproc) FUNC_ATTR_NONNULL_ALL
 
void pty_process_close_master (PtyProcess *ptyproc) FUNC_ATTR_NONNULL_ALL
 
void pty_process_teardown (Loop *loop)
 

Function Documentation

◆ pty_process_close()

void pty_process_close ( PtyProcess ptyproc)

◆ pty_process_close_master()

void pty_process_close_master ( PtyProcess ptyproc)

◆ pty_process_resize()

void pty_process_resize ( PtyProcess ptyproc,
uint16_t  width,
uint16_t  height 
)

◆ pty_process_save_termios()

void pty_process_save_termios ( int  tty_fd)

Saves the termios properties associated with tty_fd.

Parameters
tty_fdTTY file descriptor, or -1 if not in a terminal.

◆ pty_process_spawn()

int pty_process_spawn ( PtyProcess ptyproc)
Returns
zero on success, or negative error code

◆ pty_process_teardown()

void pty_process_teardown ( Loop loop)

◆ pty_process_tty_name()

const char* pty_process_tty_name ( PtyProcess ptyproc)