diff --git a/toys/posix/ls.c b/toys/posix/ls.c index 13f916478d8f792f2e9dd565400b2ae393feb3c5..c42282a4095b296d3e54765a614b8a145df6b59d 100644 --- a/toys/posix/ls.c +++ b/toys/posix/ls.c @@ -632,7 +632,11 @@ void ls_main(void) // -N *doesn't* disable -q; you need --show-control-chars for that. if (FLAG(N)) toys.optflags &= ~FLAG_b; +#ifdef TOYBOX_OH_ADAPT + TT.screen_width = 0; +#else TT.screen_width = 80; +#endif if (FLAG(w)) TT.screen_width = TT.w+2; else terminal_size(&TT.screen_width, NULL); if (TT.screen_width<2) TT.screen_width = 2;