diff options
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/src/lib.rs b/shell/src/lib.rs index 6077f35..f2a0e6e 100644 --- a/shell/src/lib.rs +++ b/shell/src/lib.rs | |||
| @@ -97,12 +97,12 @@ pub fn run() -> ! { | |||
| 97 | /// reads from the task's message queue (Fed by the WM input pump) and | 97 | /// reads from the task's message queue (Fed by the WM input pump) and |
| 98 | /// writes to the active terminal (set by the caller via `vt::set_active`). | 98 | /// writes to the active terminal (set by the caller via `vt::set_active`). |
| 99 | /// Returns when the window is closed (Close message or ^D on empty line). | 99 | /// Returns when the window is closed (Close message or ^D on empty line). |
| 100 | pub fn run_windowed() { | 100 | pub fn run_windowed(term: &mut rsnix::vt::Terminal) { |
| 101 | term_println(&alloc::format!("rs-dos v{}", env!("CARGO_PKG_VERSION"))); | 101 | term_println(&alloc::format!("rs-dos v{}", env!("CARGO_PKG_VERSION"))); |
| 102 | loop { | 102 | loop { |
| 103 | rsnix::vt::sync_scroll(); | 103 | rsnix::vt::sync_scroll(); |
| 104 | term_print("> "); | 104 | term_print("> "); |
| 105 | match tty::read_line_from_queue() { | 105 | match tty::read_line_from_queue(term) { |
| 106 | None => return, // window closed | 106 | None => return, // window closed |
| 107 | Some(LineInput::Interrupted) => continue, | 107 | Some(LineInput::Interrupted) => continue, |
| 108 | Some(LineInput::Eof) => return, // ^D in windowed mode = close | 108 | Some(LineInput::Eof) => return, // ^D in windowed mode = close |
