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

Failed to lock terminal #13

Closed
francozappa opened this issue Mar 20, 2018 · 6 comments · Fixed by #14
Closed

Failed to lock terminal #13

francozappa opened this issue Mar 20, 2018 · 6 comments · Fixed by #14

Comments

@francozappa
Copy link

Hi,

After a recent Linux system upgrade I'm getting the following error (from src/terminal.rs:82) when I execute rogcat:

Failed to lock terminal

I'm getting the same error even uninstalling and re-installing rogcat using cargo.

adb logcat on the other hand works properly

Some extra info:

Linux x1 4.14.27-1-MANJARO #1 SMP PREEMPT Thu Mar 15 19:47:13 UTC 2018 x86_64 GNU/Linux
cargo 1.26.0-nightly (5f83bb404 2018-03-09)
rustc 1.26.0-nightly (55c984ee5 2018-03-16)
@flxo
Copy link
Owner

flxo commented Mar 22, 2018

Hi. Looks like term has problems to detect your terminal type. Can you please post $TERM?

@francozappa
Copy link
Author

Hi @flxo ,

My $TERM is either screen-256color (tmux) or xterm-256color and I haven't changed it recently.

Thanks

@flxo
Copy link
Owner

flxo commented Mar 22, 2018

Can you please check the availability of terminfo files as noted in the term readme?

Packaging and Distributing

For all terminals but windows consoles, this library depends on a non-hashed (for now) terminfo database being present. For example, on Debian derivitives, you should depend on ncurses-term; on Arch Linux, you depend on ncurses; and on MinGW, you should depend on mingw32-terminfo.

@francozappa
Copy link
Author

I've found a temporary solution by downgrading ncurses to version 6.0-4

Thanks for your help!

@flxo
Copy link
Owner

flxo commented Mar 24, 2018

Ok. That means that term isn't compatible with your terminfo stuff. Would be nice if you could file a report there. What distribution are you using?

@francozappa
Copy link
Author

francozappa commented Mar 24, 2018

Yep, I'm using Manjaro Linux and ncurses 6.1-3

EDIT: I've filed an issue Stebalien/term#83

Stebalien added a commit to Stebalien/rogcat that referenced this issue Mar 27, 2018
Updates:

* term: fixes flxo#13
* config
* lazy_static
* handlebars
* indicatif
* zip
* rand
* clippy
Stebalien added a commit to Stebalien/rogcat that referenced this issue Mar 27, 2018
Updates:

* term: fixes flxo#13
* config
* lazy_static
* handlebars
* indicatif
* zip
* rand
* clippy
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

Successfully merging a pull request may close this issue.

2 participants