rootlessJB3
rootlessJB3 copied to clipboard
nano and vim not working
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?
To get nano working: vim /var/profile
add: export TERMINFO='/var/containers/Bundle/iosbinpack64//usr/share/terminfo' export TERM=xterm-256color
adding terminfo to ~/.bashrc
fixed the nano issue in a persistent way. @VanishingTacos do you have the same vim
issue?