Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overflow when scrollback > terminal rows #5

Open
chris-laplante opened this issue May 4, 2022 · 4 comments
Open

Overflow when scrollback > terminal rows #5

chris-laplante opened this issue May 4, 2022 · 4 comments

Comments

@chris-laplante
Copy link

vt100 is misbehaving if you set scrollback > terminal rows. Please see #4. If you run cargo test scrollback, you'll get this:

running 2 tests
test scrollback_larger_than_terminal ... FAILED
test scrollback ... ok

failures:

---- scrollback_larger_than_terminal stdout ----
thread 'scrollback_larger_than_terminal' panicked at 'attempt to subtract with overflow', src/grid.rs:125:42
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
@jeevithakannan2
Copy link

Is there a work around for this issue ?

@chris-laplante
Copy link
Author

Is there a work around for this issue ?

I'll double-check, but I don't think I ever found one :(

@jeevithakannan2
Copy link

Okay, thank you !!

@chris-laplante
Copy link
Author

Okay, thank you !!

Unfortunately I don't think I ever implemented any workarounds for this. I would have encountered it in indicatif, possibly with this issue: console-rs/indicatif#474

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants