aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/pty_process_unix.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-01-09 12:28:10 +0100
committerGitHub <noreply@github.com>2023-01-09 12:28:10 +0100
commitdf60ac9767d8b6b4a9959d561d22f1e4f1ac3aa4 (patch)
treeefa860feff3753a227c8c381e4c0580eb01c6604 /src/nvim/os/pty_process_unix.c
parentd64549bc4e795cabca270f91b483ba9df7006b85 (diff)
parent1d16bba4d8b8b648d2dabd610924bcf3051a0f29 (diff)
downloadrneovim-df60ac9767d8b6b4a9959d561d22f1e4f1ac3aa4.tar.gz
rneovim-df60ac9767d8b6b4a9959d561d22f1e4f1ac3aa4.tar.bz2
rneovim-df60ac9767d8b6b4a9959d561d22f1e4f1ac3aa4.zip
Merge pull request #21675 from bfredl/nonstdio
fix(embed): handle stdio in server properly
Diffstat (limited to 'src/nvim/os/pty_process_unix.c')
-rw-r--r--src/nvim/os/pty_process_unix.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/os/pty_process_unix.c b/src/nvim/os/pty_process_unix.c
index 143f0b3900..cd2150a6a6 100644
--- a/src/nvim/os/pty_process_unix.c
+++ b/src/nvim/os/pty_process_unix.c
@@ -168,6 +168,14 @@ static struct termios termios_default;
/// @param tty_fd TTY file descriptor, or -1 if not in a terminal.
void pty_process_save_termios(int tty_fd)
{
+ if (embedded_mode) {
+ // TODO(bfredl): currently we cannot use the state of the host terminal in
+ // the server. when the TUI process launches the server, the state has already
+ // changed. we would need to serialize termios_default in the TUI process and
+ // transmit it. Altough, just always using the clean slate of init_termios() might
+ // be preferrable anyway.
+ return;
+ }
if (tty_fd == -1) {
return;
}