about resize

Bernhard Fischer rep.nop at aon.at
Fri Sep 22 12:46:20 UTC 2006


On Fri, Sep 22, 2006 at 02:15:48PM +0200, Tito wrote:
>hi,
>maybe a newline would give a better looking output:
>
>	if (ENABLE_FEATURE_RESIZE_PRINT)
>-		printf("COLUMNS=%d;LINES=%d;export COLUMNS LINES;",
>+		printf("COLUMNS=%d;LINES=%d;export COLUMNS LINES;\n",
>			w.ws_col, w.ws_row);
>
>
>root at localhost:/dev/pts/1:/root/Desktop/busybox.setterm# ./busybox resize
>COLUMNS=80;LINES=24;export COLUMNS LINES;root at localhost:/dev/pts/1:/root/Desktop/busybox.setterm#            
>
>Just an idea...

well, you normally would eval it's output, so the newline is something
that is superfluous. You shouldn't enable RESIZE_PRINT anyway, unless
your scripts really, really need it badly..



More information about the busybox mailing list