aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/os')
-rw-r--r--src/nvim/os/pty_process_unix.c5
-rw-r--r--src/nvim/os/pty_process_win.c5
2 files changed, 10 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
{
diff --git a/src/nvim/os/pty_process_win.c b/src/nvim/os/pty_process_win.c
index a6774a6275..c5f8efadff 100644
--- a/src/nvim/os/pty_process_win.c
+++ b/src/nvim/os/pty_process_win.c
@@ -183,6 +183,11 @@ cleanup:
return status;
}
+const char *pty_process_tty_name(PtyProcess *ptyproc)
+{
+ return "?";
+}
+
void pty_process_resize(PtyProcess *ptyproc, uint16_t width,
uint16_t height)
FUNC_ATTR_NONNULL_ALL