rootlessJB3 icon indicating copy to clipboard operation
rootlessJB3 copied to clipboard

nano and vim not working

Open resistor4u opened this issue 6 years ago • 2 comments

nano fails with Error opening terminal: xterm-256color. I have set export TERMINFO="/var/containers/Bundle/iosbinpack64/usr/share/terminfo/78/xterm-256color but it fails with the same error.

Also, vim works but only in a broken sort of way. Here are the steps to reproduce.

Rosebud:~ root$ echo "alias cd=',,'" > .bashrc
Rosebud:~ root$ echo "alias ll='ls -laghF'" >> .bashrc
Rosebud:~ root$ cat .bashrc
alias ll='ls -laghF'
alias ,,='cd ..'
Rosebud:~ root$ vim .bashrc # hit i for insert mode and hit the arrow buttons

For me, vim enters new lines and inserts C or D and I cannot enter or delete text.

@jakeajames is this an ncurses thing? how have you gotten a functioning text editor?

resistor4u avatar Feb 11 '19 20:02 resistor4u

To get nano working: vim /var/profile

add: export TERMINFO='/var/containers/Bundle/iosbinpack64//usr/share/terminfo' export TERM=xterm-256color

VanishingTacos avatar Feb 13 '19 22:02 VanishingTacos

adding terminfo to ~/.bashrc fixed the nano issue in a persistent way. @VanishingTacos do you have the same vim issue?

resistor4u avatar Feb 13 '19 23:02 resistor4u