Comments (6)
At first I thought it may be a bug in crossterm::Terminal::exit()
but it's just a wrapper for std::process::exit(0)
. Could you try running:
irust && stty sane
irust && tput clear
irust && tput reset
Hopefully at least 1 of these commands should help, and knowing which one does should help sigmaSd fix the issue.
from irust.
Thanks! stty sane
and tput reset
fix the issue (only one is needed). tput clear
doesn't make any difference. Hopefully that helps with a diagnosis...
Let me know if you'd like any more testing.
from irust.
Hi @tobz1000 @pzmarzly, I should hopefully have time to look into it tomorrow,
thx for helping @pzmarzly!
from irust.
@tobz1000 can you try 5fe3a57
Its weird that this fixes it, since terminal.exit() does the same thing, I'll probably dig deeper
Edit: Nvm I imagined that terminal.exit() stops the raw mode, guess it doesn't, now everything make sense^^
from irust.
Yep - the patch fixes it, thanks!
Yeah, Terminal::exit
is a bit of weird one, pretty much a re-export of sys::exit
. But I guess since Terminal
doesn't own/know about any RawScreen
, it doesn't try to guess the current or previous terminal state.
It seems like it would be cleaner to break out of the control loop and let IRust::run
return instead, and relying the RawScreen
's Drop
implementation to do this instead, but that would require some refactoring.
from irust.
@tobz1000 I like your idea! I'll keep it in mind for now
from irust.
Related Issues (20)
- Add :cargo command
- Add predefined themes
- Rework how irust server works
- Use `rustyline` or `reedline` for input? HOT 1
- Move theme settings from config.toml to themes config
- Improve Jupyter kernel support HOT 7
- typing twice in windows with crossterm-0.26+ HOT 2
- Can irust repl evaluate code with release mode instead of debug mode? HOT 3
- Cannot use two `irust_repl`s at the same time. HOT 27
- Rust analyzer is not working on Windows HOT 6
- Interactive usage HOT 3
- Check statements with cargo check HOT 1
- how make irust works with nightly ? error: toolchain 'stable-x86_64-unknown-linux-gnu' is not installed HOT 2
- Using IRust for live scripting of a host HOT 8
- Custom keybindings? HOT 15
- [Feature Request]: Support for `proc_macro` APIs HOT 7
- [Feature Request]: Ability to load custom `Cargo.toml` HOT 2
- Async repl not working properly HOT 5
- irust v1.50.0 failed to compile HOT 2
- Use `rust-analyser` instead of `racer` for autocompletion HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from irust.