]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
tools/thermal: tmon: tui: don't hard-code dialog window size assumptions
authorBrian Norris <computersforpeace@gmail.com>
Wed, 18 Feb 2015 02:18:31 +0000 (18:18 -0800)
committerZhang Rui <rui.zhang@intel.com>
Sat, 28 Feb 2015 05:52:47 +0000 (13:52 +0800)
commit0e7b766dc0aeedd47c8264242e06f3a470f5d589
treeeff7a02e160135f9ec947ab792ed21be7c7c5e7b
parenta90b6b006c616f1a33f8ffb6939e31c8d66926a4
tools/thermal: tmon: tui: don't hard-code dialog window size assumptions

We can use the ncurses API to get the number of rows.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
tools/thermal/tmon/tui.c