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

Namespace collision with the same method name when using the * symbol on the cursor and style module. #4

Closed
TimonPost opened this issue Jan 28, 2018 · 0 comments
Assignees

Comments

@TimonPost
Copy link
Member

TimonPost commented 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.

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

@TimonPost 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
@TimonPost TimonPost self-assigned this Jan 30, 2018
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

1 participant