]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
knotty2: Handle long lines of text and terminal window size changes
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 15 Aug 2012 16:00:40 +0000 (17:00 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Aug 2012 10:16:52 +0000 (11:16 +0100)
commit9afc9e4d14abec5ac326851d4bb689c1e8d45a43
tree99b32f76ed1d9a201fd01231c1adc80c1fc5955f
parent769b694eeb617bb793bd79d0d7b29c43d2646ece
knotty2: Handle long lines of text and terminal window size changes

Long lines of text which wrapped on the terminal corrupted the output shown by
knotty2. This patch catches such errors by becomming aware of the terminal size.

It also catches terminal window size change events and adapting to those
changes using a signal handler.

Based on a patch from Jason Wessel with several tweaks and enhancements
such as use of chained signal handlers and covering all output messages.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/ui/knotty2.py