jakeajames / rootlessJB3

hahh
361 stars 135 forks source link

nano and vim not working #39

Open resistor4u opened 5 years ago

resistor4u commented 5 years ago

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?

VanishingTacos commented 5 years ago

To get nano working: vim /var/profile

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

resistor4u commented 5 years ago

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