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

Issues using terminal "linux" over SSH (using Xterm) #1975

Closed
dagwieers opened this issue Mar 1, 2013 · 3 comments · Fixed by #1976
Closed

Issues using terminal "linux" over SSH (using Xterm) #1975

dagwieers opened this issue Mar 1, 2013 · 3 comments · Fixed by #1976
Milestone

Comments

@dagwieers
Copy link
Contributor

Using htop (or perf) shows the issue. Key presses like F2 or F10 do not work.

When going to VT100, it does work (but evidently no colors):

export TERM=vt100

Using for "xterm-color" everything does seem to work for me:

export TERM=xterm-color

PS This behavior is unique to OpenELEC, I dont have it with my NAS Linux or any distribution I have come across. But there TERM=xterm by default. IMO terminal "linux" is meant for the Linux console.

@dagwieers
Copy link
Contributor Author

The culprit seems to be /etc/profile.d/shell.conf:

TERM="linux"
export TERM

It should not be forcing "linux".

@vpeter4
Copy link
Contributor

vpeter4 commented Mar 2, 2013

I have export TERM=xterm in file /storage/.profile and it works as it should.

@dagwieers
Copy link
Contributor Author

In case I wasn't very clear about it. SSH forwards the correct settings from your system when you log on, OpenELEC (through /etc/profile.d/shell.conf) simply discards it and sets it to "linux" incorrectly. That's what this issue is about, I am not discussing other ways to get to your goal, I am discussing proper behavior by default.

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.

3 participants