view one row of text by drawing it on screen
| 580 | |
| 581 | // view one row of text by drawing it on screen |
| 582 | void Query::disp(int row) |
| 583 | { |
| 584 | Screen::normal(); |
| 585 | if (row < rows_ + append_) |
| 586 | { |
| 587 | if (selected_[row]) |
| 588 | Screen::select(); |
| 589 | int nulls = !flag_text ? 2 : 0; // how many nulls to ignore in marked pathnames? |
| 590 | Screen::put(row - row_ + 1, 0, view_[row], skip_, -1, nulls); |
| 591 | if (selected_[row]) |
| 592 | Screen::deselect(); |
| 593 | } |
| 594 | else if (row - row_ + 1 < maxrows_) |
| 595 | { |
| 596 | Screen::setpos(row - row_ + 1, 0); |
| 597 | Screen::erase(); |
| 598 | } |
| 599 | } |
| 600 | |
| 601 | // redraw the screen |
| 602 | void Query::redraw() |
nothing calls this directly
no outgoing calls
no test coverage detected