cursor down
| 2009 | |
| 2010 | // cursor down |
| 2011 | void Query::down() |
| 2012 | { |
| 2013 | if (select_ >= 0) |
| 2014 | { |
| 2015 | ++select_; |
| 2016 | if (select_ >= rows_) |
| 2017 | select_ = rows_ - 1; |
| 2018 | if (select_ < row_ + maxrows_ - 2) |
| 2019 | return; |
| 2020 | } |
| 2021 | if (row_ + 1 < rows_) |
| 2022 | { |
| 2023 | if (!flag_split) |
| 2024 | { |
| 2025 | Screen::normal(); |
| 2026 | disp(row_ + maxrows_ - 2); |
| 2027 | ++row_; |
| 2028 | Screen::pan_up(); |
| 2029 | status(true); |
| 2030 | draw(); |
| 2031 | } |
| 2032 | else |
| 2033 | { |
| 2034 | // split screen |
| 2035 | ++row_; |
| 2036 | redraw(); |
| 2037 | } |
| 2038 | } |
| 2039 | } |
| 2040 | |
| 2041 | // page up the display |
| 2042 | void Query::pgup(bool half_page) |
nothing calls this directly
no outgoing calls
no test coverage detected