Open tastytea opened 2 years ago
@tastytea which file did you add the above code to?
@xakep8 To my ~/.zshrc
.
$TERM = xterm-256color also breaks package-management within a proot-distro Ubuntu ( jammy ) install!
It breaks ?ncurses?, i think.
Once anything has required ncurses,
or whatever the ascii-graphics UI provider is,
then some other
apt install
but the Termux-keyboard's up & down arrows don't work right, so one ends-up with gibberish spewing all over the place, and a very scrambled terminal ( "reset" doesn't fix history-scrolling, e.g. ), and no ability to interact with the configuration-management script.
apt package tzdata uses this broken graphics ui, if it is installed, as does postfix, and debsecan ( a debian security-analysis package ), and who-knows how many more?
I'm ripping out my Ubuntu installation, & re-installing, as a means of getting those packages in, before the ascii-graphics UI provider gets in there...
: (
Hope this helps identify the scope of the problem
( :
Problem description
TERM
is set toxterm-256color
but it appears to not be xterm. It is important that terminals setTERM
to a unique value because it makes it possible to react to quirks with workarounds.For example, xterm sends
^H
for backspace and^?
for control + backspace, most other terminals (including termux) do it the other way round. So I added this workaround:Works fine in xterm but breaks termux. Related: https://github.com/termux/termux-app/issues/212
Steps to reproduce the behavior.
echo ${TERM}
What is the expected behavior?
Please set
TERM
totermux
or so.System information