diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-05-23 20:34:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-23 20:34:27 +0200 |
commit | 418abfc9d06923e96f1317419fe83ed4e6d67c1d (patch) | |
tree | 7a6e50a3e6ecff85882d91f0a503a212312ee334 /src/nvim/os/pty_process_unix.c | |
parent | f1bc152fa081f5d630ea1a027aa5bd00bdbb78f0 (diff) | |
parent | 6da4548f0e7ccaf2b3271c0b0d59b5c8869792a7 (diff) | |
download | rneovim-418abfc9d06923e96f1317419fe83ed4e6d67c1d.tar.gz rneovim-418abfc9d06923e96f1317419fe83ed4e6d67c1d.tar.bz2 rneovim-418abfc9d06923e96f1317419fe83ed4e6d67c1d.zip |
Merge pull request #6743 from bfredl/channel_info
Add methods to enumerate channels and clients to identify themselves
Diffstat (limited to 'src/nvim/os/pty_process_unix.c')
-rw-r--r-- | src/nvim/os/pty_process_unix.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/os/pty_process_unix.c b/src/nvim/os/pty_process_unix.c index dfe2cfbb8d..71bb2d8a5e 100644 --- a/src/nvim/os/pty_process_unix.c +++ b/src/nvim/os/pty_process_unix.c @@ -115,6 +115,11 @@ error: return status; } +const char *pty_process_tty_name(PtyProcess *ptyproc) +{ + return ptsname(ptyproc->tty_fd); +} + void pty_process_resize(PtyProcess *ptyproc, uint16_t width, uint16_t height) FUNC_ATTR_NONNULL_ALL { |