[PATCH] Fix for getty console stair stepping

Antti Seppälä ajhseppa at niksula.hut.fi
Wed Aug 23 15:40:43 UTC 2006


Hello.

Current busybox getty sets all termios modes to zero in function
termio_init.

This has the effect of treating newlines as plain newlines instead of NL
+ CR which causes console output to be stair-stepped while getty is
waiting for login.

If I boot my busybox and use another login (via ssh for example) and do:

~ # echo step > /dev/console
~ # echo step > /dev/console
~ # echo step > /dev/console
~ # echo step > /dev/console
~ # echo step > /dev/console
~ #


I get on the console:

busybox login: step
                   step
                       step
                           step
                               step



The included patch fixes this by leaving OPOST and ONLCR alone when
clearing c_oflag in termio_init.

What do you think, is this the right approach to fixing this?


-- 
Antti Seppälä

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bb-getty-stair-step.patch
Type: text/x-patch
Size: 616 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060823/191b8598/attachment-0002.bin 


More information about the busybox mailing list