aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/pty_process_unix.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-12-11 02:04:29 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-12-16 07:04:02 +0100
commitab7da4c53138768f5b502b880a607048c2183632 (patch)
tree423a9d65b5b8aa6e71daed4b562e720b5a4bd974 /src/nvim/os/pty_process_unix.c
parent5e8f2048b5e7a3b06a6529283791f7030521f8a2 (diff)
downloadrneovim-ab7da4c53138768f5b502b880a607048c2183632.tar.gz
rneovim-ab7da4c53138768f5b502b880a607048c2183632.tar.bz2
rneovim-ab7da4c53138768f5b502b880a607048c2183632.zip
TUI: detect BSD vt console
FreeBSD console sets TERM=xterm, but it does not support xterm features like cursor-shaping. GUI terminals typically set TERM=xterm-256color, so on FreeBSD we can guess that TERM=xterm is the degraded vt. OpenBSD console sets TERM=vt220 https://github.com/openbsd/src/blob/master/etc/etc.amd64/ttys NetBSD console sets TERM=vt100 https://github.com/NetBSD/src/blob/trunk/etc/etc.amd64/ttys closes #8644
Diffstat (limited to 'src/nvim/os/pty_process_unix.c')
-rw-r--r--src/nvim/os/pty_process_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/pty_process_unix.c b/src/nvim/os/pty_process_unix.c
index bafbfe1e4b..bcf57e1b5b 100644
--- a/src/nvim/os/pty_process_unix.c
+++ b/src/nvim/os/pty_process_unix.c
@@ -12,7 +12,7 @@
#include <sys/ioctl.h>
// forkpty is not in POSIX, so headers are platform-specific
-#if defined(__FreeBSD__) || defined (__DragonFly__)
+#if defined(__FreeBSD__) || defined(__DragonFly__)
# include <libutil.h>
#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
# include <util.h>