Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Command based clear
  • Loading branch information
sholderbach committed Mar 18, 2021
commit c081c06b1bc30a7c8b8a8aead40d2c304b143c37
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ fn main() -> Result<()> {
if (buffer.trim() == "exit") || (buffer.trim() == "logout") {
break;
}
if buffer.trim() == "clear" {
clear_screen(&mut stdout)?;
continue;
}
print_message(&mut stdout, &format!("Our buffer: {}", buffer))?;
}
Signal::CtrlC => {
Expand Down