-
Notifications
You must be signed in to change notification settings - Fork 411
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 start based on TERM #21
Comments
Please post |
Relevant facts: I use
The same problem I had with some other Go tool, I don't remember which one it was. They fixed it by adding something to $TERM check if I recall correctly. |
|
@szuecs Do you have any updates? Were you able to find the $TERMINAL_VAR that fixed? |
Noting this may be the same issue as #7. |
Sorry @pocc I did not see notifications. The funny thing is that |
Hi - I found an explanation for this TERM variable setting here in the screen manual: https://www.gnu.org/software/screen/manual/screen.html#Window-Termcap Here's a quick summary:
I can reproduce this problem running screen on Ubuntu 18.10. In my shell, TERM=xterm-256color and when I start screen, TERM=screen.xterm-256color. Running screen with strace, I found a terminfo file at The reason termshark returns an error is that tcell has a compiled-in terminfo database, which is generated by running a small program that converts terminfo files into Go source code - for example https://github.com/gdamore/tcell/blob/master/terminfo/term_xterm_256color.go and that database does not contain an entry for screen.xterm-256color. Having written all that, I'm not sure why tcell doesn't try to compile a terminfo file on-the-fly, on the machine on which it's running. Setting
|
@gcla thanks for your investigation! |
Hi @szuecs - no prob, I'll add a tcell issue to figure this out. |
I asked here: |
This includes fixes for the 11-character paste limit, a jumpy cursor on Windows, AND features a new terminfo generator which works on the fly if your TERM isn't part of tcell's database. See issue gdamore/tcell#279. Thanks to @gdamore :-) This should address termshark issue #21.
Hi @szuecs - @gdamore updated tcell so that it now builds a terminal description on-the-fly, if one is not found in tcell's database. I've updated termshark to depend on the latest tcell. This seems to fix this issue for me. Now if I launch screen, then run termshark, it runs correctly. If you want to try it out, here are build instructions: git clone https://github.com/gcla/termshark
cd termshark
export GO111MODULE=on
go install ./... Then termshark will be in |
termshark starts successfully, now. |
ok, thank you |
The problem was that I ran it as root and not as user. If I run as normal user it works. |
% termshark
Error: terminal entry not found [TERM: screen.xterm-256color]
zsh: exit 1 termshark
% TERM=xterm-256color termshark
Packets read from interface eth0 have been saved in /$home/.cache/termshark/eth0-921608986.pcap
The text was updated successfully, but these errors were encountered: