diff options
Diffstat (limited to 'rsnix/src/tty.rs')
| -rw-r--r-- | rsnix/src/tty.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rsnix/src/tty.rs b/rsnix/src/tty.rs index c44dca8..ad33cb3 100644 --- a/rsnix/src/tty.rs +++ b/rsnix/src/tty.rs | |||
| @@ -201,6 +201,9 @@ pub fn read_line_from_queue(term: &mut crate::vt::Terminal) -> Option<LineInput> | |||
| 201 | crate::sched::TaskMsg::Focus(gained) => { | 201 | crate::sched::TaskMsg::Focus(gained) => { |
| 202 | if gained { | 202 | if gained { |
| 203 | crate::vt::set_active(term as *mut crate::vt::Terminal); | 203 | crate::vt::set_active(term as *mut crate::vt::Terminal); |
| 204 | // Re-composite the full window so content is visible | ||
| 205 | // immediately (focus() only redraws the title bar). | ||
| 206 | term.flush(); | ||
| 204 | } else { | 207 | } else { |
| 205 | crate::vt::set_active(core::ptr::null_mut()); | 208 | crate::vt::set_active(core::ptr::null_mut()); |
| 206 | } | 209 | } |
