Skip to content
This repository has been archived by the owner on Feb 4, 2019. It is now read-only.

Linux terminal issues #402

Open
ForNeVeR opened this issue Nov 28, 2015 · 2 comments
Open

Linux terminal issues #402

ForNeVeR opened this issue Nov 28, 2015 · 2 comments

Comments

@ForNeVeR
Copy link
Contributor

Pash terribly works with TERM set to anything but xterm: sometimes arrow keys aren't work, sometimes delete key on my keyboard will not delete characters.

TERM can be reset not only by some Linux distros and terminal emulators such as Konsole, but also by Linux utilities screen and tmux (these two set TERM=screen AFAIK). We definitely need to do something about that.

For example, currently I have problems with tmux on nixos 15.0.9. Running TERM=xterm pash doesn't help completely, and I am not sure whether it could broke anything else (terminal formatting, scrolling, coloring etc.).

We need someone to investigate these issues and get a resolution (maybe we could simply set TERM to xterm inside of Pash code or somehow operate with Mono console subsystem to fix the issues).

@ForNeVeR
Copy link
Contributor Author

Here's a case that cannot be fixed by TERM=xterm in my environment:

bash$ echo $TERM
screen
bash$ TERM=xterm pash
pash> # Currently arrow keys and Delete key works correctly
pash> less /var/log/kdm.log # or other program that works in interactive mode, for example sh -c 'man man'
pash> # And now the arrow keys prints letters D and C to the command line, sometimes ~D and ~C

@ForNeVeR
Copy link
Contributor Author

Also, Home and End keys does not work with Pash in any of my Linux environments (with tmux or without it). They does work in bash and I haven't customized anything.

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