diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-02-13 12:06:05 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-02-16 23:17:39 -0300 |
commit | 9a2dd7c4987679106fba24fb7702a11aba6b6ccf (patch) | |
tree | ffd40b74d975246f4c9a44cba9f302033f7572dd /src/nvim/main.c | |
parent | e0e41b30c61922e099a067ac5c137e745699a1aa (diff) | |
download | rneovim-9a2dd7c4987679106fba24fb7702a11aba6b6ccf.tar.gz rneovim-9a2dd7c4987679106fba24fb7702a11aba6b6ccf.tar.bz2 rneovim-9a2dd7c4987679106fba24fb7702a11aba6b6ccf.zip |
ui: Rewrite the builtin terminal UI
Now all terminal-handling code was moved to src/nvim/tui, which implements a
new terminal UI based on libtermkey and unibilium
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r-- | src/nvim/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index 65672370a3..f2891f0979 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -383,6 +383,8 @@ int main(int argc, char **argv) TIME_MSG("waiting for return"); input_stop_stdin(); } + + ui_builtin_start(); } setmouse(); // may start using the mouse @@ -984,6 +986,8 @@ static void command_line_scan(mparm_T *parmp) } mch_exit(0); + } else if (STRICMP(argv[0] + argv_idx, "headless") == 0) { + parmp->headless = true; } else if (STRICMP(argv[0] + argv_idx, "embed") == 0) { embedded_mode = true; parmp->headless = true; @@ -2092,6 +2096,7 @@ static void usage(void) mch_msg(_(" -i <nviminfo> Use <nviminfo> instead of .nviminfo\n")); mch_msg(_(" --api-info Dump API metadata serialized to msgpack and exit\n")); mch_msg(_(" --embed Use stdin/stdout as a msgpack-rpc channel\n")); + mch_msg(_(" --headless Don't start a user interface\n")); mch_msg(_(" --version Print version information and exit\n")); mch_msg(_(" -h | --help Print this help message and exit\n")); |