From 973dc4056b74b26635f3fe8d9e23835c05cdfd12 Mon Sep 17 00:00:00 2001 From: Michele Bini Date: Sat, 9 Apr 2022 21:07:36 +0200 Subject: Fix for use of alternate terminal buffer in stdio-mode diff --git a/nanobox.c b/nanobox.c index 1ff34d4..50fcfa8 100644 --- a/nanobox.c +++ b/nanobox.c @@ -760,12 +760,12 @@ int main(int argc, char **argv) devtty = fopen("/dev/tty", "a+"); nano_stdin_fd = fileno(devtty); #endif + write1("\033[?1049h"); #if ENABLE_FEATURE_NANO_STDIO if (nano_stdio_mode) { edit_file(NULL); } else { #endif - write1("\033[?1049h"); while (1) { edit_file(argv[optind]); /* param might be NULL */ if (++optind >= argc) -- cgit v0.10.2