busybox 1.4.1 resize.c problem

Ernst.Sauerwein at fujitsu-siemens.com Ernst.Sauerwein at fujitsu-siemens.com
Tue Mar 13 13:09:00 UTC 2007


 
Hello,
 
When using busybox resize feature,
output cannot be redirected because measuring of lines/columns will fail.
For instance:
resize | cat
or:
CMD=`resize`
 
Symptoms: resize hangs; when pressing any key resize reports 0 as for lines as for columns.
 
Result: resize may not be usable in a script.
 
Workaround:
Use stderr instead of stdout for measurement of terminal geometry.
Output is done to stdout as before.
 
Please find attached a patched source with applied workaround.
 
Thank you very much.

Mit freundlichen Grüßen / With kind regards / You hao de wèn hòu
___ 
Ernst Sauerwein 
Dipl.-Phys. (Univ)
Senior Software Engineer 
IBM Databases 
 
Fujitsu Siemens Computers 
IT Product Services SF NAM DB IBM
Berliner Straße 95, B 025
80805 München, Germany 
 
Telephone: +49 (89) 3601-2699 
Telefax:   +49 (89) 3601-2279 
LAN-Fax:   +49 (89) 3601-7302698 
Email:     mailto:ernst.sauerwein at fujitsu-siemens.com 
 
Internet:  http://www.fujitsu-siemens.com <http://www.fujitsu-siemens.com/>  
Company Details: http://serviceportal.fujitsu-siemens.com/i/de/impressum/impressum.html

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20070313/8c36efe1/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resize.c
Type: application/octet-stream
Size: 1058 bytes
Desc: resize.c
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070313/8c36efe1/attachment-0002.obj 


More information about the busybox mailing list