Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Getting crossterm::common::screen::screen::Screen Screen from backend instead of crossterm::Screen #123

Closed
JonBoyleCoding opened this issue Jan 29, 2019 · 1 comment

Comments

@JonBoyleCoding
Copy link
Contributor

I'm trying to get a hold of the crossterm screen so I can use it to access the ability to use input; however, for some reason the type of struct it returns is completely different to what crossterm expects.

error[E0308]: mismatched types
  --> src/main.rs:70:46
   |
70 |     let scr = crossterm::Crossterm::from_screen(term.backend().screen());
   |                                                 ^^^^^^^^^^^^^^^^^^^^^^^ expected struct `crossterm::Screen`, found struct `crossterm::common::screen::screen::Screen`
   |
   = note: expected type `&crossterm::Screen`
              found type `&crossterm::common::screen::screen::Screen`

I don't know whether this is a crossterm issue, or a tui issue, but I can't seem to figure out a way forward. Is this something that should be possible or not?

@JonBoyleCoding JonBoyleCoding changed the title Getting Crossterm Screen Getting crossterm::common::screen::screen::Screen Screen from backend instead of crossterm::Screen Jan 29, 2019
@JonBoyleCoding
Copy link
Contributor Author

Closing this issue. It appears to have been an issue with using different versions of crossterm than the one specified in the repository.

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

No branches or pull requests

1 participant