diff options
author | Colin Cross <ccross@android.com> | 2019-06-11 23:01:36 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2019-06-13 11:26:06 -0700 |
commit | 4355ee64a9b27713c1b7aa68d8d935fd8def484d (patch) | |
tree | a7982d5a2252b55ece164300316f9aeb7bcd62a1 /scripts/jsonmodify.py | |
parent | e77a57336f99c5cd67ff990bba36a57fd1da4296 (diff) |
Use SIGWINCH to update terminal size
Instead of reading the terminal size on every status update, register
for SIGWINCH to read and store the size when it changes.
This reapplies I555ad21a31a2c924ab0ca681e0c8f00df42a370a with a fix
for a race condition in TestSmartStatusOutputWidthChange.
Test: status_test.go
Change-Id: If342cb4cc8e4ed57af9e3bb417758348c9c41247
Diffstat (limited to 'scripts/jsonmodify.py')
0 files changed, 0 insertions, 0 deletions