-
Notifications
You must be signed in to change notification settings - Fork 288
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
Remove unsafe globals #245
Comments
I actually had that in the past, I would not mind to change it back to lazy_static, I had that code because it would save me a dependency and terminals are single-threaded most of the cases anyways. So feel free to change that back. |
Can't find the issue now, but there's one about deprecation / removal of the |
|
Yep, this one exactly! Thanks :) |
It looks like all the unsafe statics are removed. This can be closed. |
For example, Windows cursor implementation does use ...
... to store the cursor position, etc. We have to go through the code, check for other occurrences and fix them.
Occurences:
style
&static mut ORIG_MODE: u32 = 0;
(fixed in Refactors crossterm-style#2)style
&static mut ORIGINAL_CONSOLE_COLOR: u16 = 0;
(fixed in Refactors crossterm-style#2)utils
&pub static mut RAW_MODE_ENABLED: bool = false;
(fixed Remove static mut crossterm-utils#5)utils
&static mut ORIGINAL_TERMINAL_MODE: Option<Termios> = None;
(fixed Remove static mut crossterm-utils#5)cursor
&static mut SAVED_CURSOR_POS: (u16, u16) = (0, 0);
(fixed in Internal refactoring and docs crossterm-cursor#2)The text was updated successfully, but these errors were encountered: