]> git.baikalelectronics.ru Git - kernel.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)
commit63c2235c167eb1d748fd724296e3801e9183b674
treeeff7a02e160135f9ec947ab792ed21be7c7c5e7b
parent18db0b79d5eed10c4e251d635699300ff85ae758
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