summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-04-09 19:07:36 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-04-09 19:09:34 (GMT)
commit973dc4056b74b26635f3fe8d9e23835c05cdfd12 (patch)
treed10a099aca698fba8a7cc5df08603ba8b7012052
parent632635e8ce905221ef4e68195e18e9cca26bb6c0 (diff)
Fix for use of alternate terminal buffer in stdio-modepicoc
-rw-r--r--nanobox.c2
1 files changed, 1 insertions, 1 deletions
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)