vt100 patches (#743)

Co-authored-by: JEEVITHA KANNAN K S <ksjeevithakannan123@gmail.com>
This commit is contained in:
Adam Perkowski 2024-10-02 23:47:27 +02:00 committed by GitHub
parent d5c05c94bb
commit 3c4a5dcecd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

3
Cargo.lock generated
View File

@ -1235,8 +1235,7 @@ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
[[package]] [[package]]
name = "vt100" name = "vt100"
version = "0.15.2" version = "0.15.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/ChrisTitusTech/vt100-rust#e41fb3d8fb5fd01dd2d076c9a25823a31656012f"
checksum = "84cd863bf0db7e392ba3bd04994be3473491b31e66340672af5d11943c6274de"
dependencies = [ dependencies = [
"itoa", "itoa",
"log", "log",

View File

@ -9,6 +9,9 @@ ego-tree = "0.6.2"
members = ["tui", "core"] members = ["tui", "core"]
resolver = "2" resolver = "2"
[patch.crates-io]
vt100 = { git = "https://github.com/ChrisTitusTech/vt100-rust" }
[profile.release] [profile.release]
opt-level = "z" opt-level = "z"
debug = false debug = false

View File

@ -258,7 +258,7 @@ impl RunningCommand {
let buffer = mutex.as_ref().unwrap(); let buffer = mutex.as_ref().unwrap();
parser.process(buffer); parser.process(buffer);
// Adjust the screen content based on the scroll offset // Adjust the screen content based on the scroll offset
parser.set_scrollback(self.scroll_offset); parser.screen_mut().set_scrollback(self.scroll_offset);
parser.screen().clone() parser.screen().clone()
} }