bitbake: 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:19:03 +0000 (11:19 +0100)
commit1a29f2c10cb094dcb3b0c9722232b637b42a159b
treea6546cffb525740641b097c7f4de4325a93970ca
parentc4fe77f4a80778c9ff8cd4b8ad3f38c6d16a3947
bitbake: 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.

(Bitbake rev: 9afc9e4d14abec5ac326851d4bb689c1e8d45a43)

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