You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling the functions all get is in my opinion a bit inconvenient as you always have to include the module name if you want to use e.g. cursor and terminal.
use cross_terminal::terminal;
use cross_terminal::terminal::ClearType;
use cross_terminal::cursor;
fn main() {
let term = terminal::get();
let cur = cursor::get();
terminal.clear(ClearType::All);
}
And you cant just use cross_terminal::terminal::* for having ClearType. Because both terminal and cursor have an get() method.
This will be fixed in crossterm v0.2.1
The text was updated successfully, but these errors were encountered:
TimonPost
changed the title
Namespace collision with the same method when using the * symbol.
Namespace collision with the same method name when using the * symbol on the cursor and style module.
Jan 28, 2018
Calling the functions all get is in my opinion a bit inconvenient as you always have to include the module name if you want to use e.g. cursor and terminal.
And you cant just use cross_terminal::terminal::* for having ClearType. Because both terminal and cursor have an
get()
method.This will be fixed in crossterm v0.2.1
The text was updated successfully, but these errors were encountered: