We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d0de2c commit 59dc473Copy full SHA for 59dc473
1 file changed
src/vgaconsole.rs
@@ -199,12 +199,11 @@ impl ConsoleInner {
199
/// We defer this so you can write the last char on the last line without
200
/// causing it to scroll pre-emptively.
201
fn scroll_as_required(&mut self) {
202
- assert!(self.row <= self.height);
203
- if self.col >= self.width {
204
- self.col = 0;
+ while self.col >= self.width {
+ self.col -= self.width;
205
self.row += 1;
206
}
207
- if self.row == self.height {
+ while self.row >= self.height {
208
self.row -= 1;
209
self.scroll_page();
210
@@ -507,6 +506,9 @@ impl vte::Perform for ConsoleInner {
507
506
b'\r' => {
508
self.col = 0;
509
+ b'\t' => {
510
+ self.col = (self.col + 8) & !7;
511
+ }
512
b'\n' => {
513
514
0 commit comments