[yaft] nano won't start, and vi starts very weird.
cesss opened this issue · comments
I just installed yaft from the current toltec. I tried to run nano and it won't start, complaining cannot open yaft-256color. If I try to run 'vi', it first complains about some "cm" capability missing, and then I get the welcome screen quite weird... when trying to type commands, I get like Ctrl (^) characters... really weird.
OTOH, if I go to the screenshot you have in your docs folder, I see you have 'vi' running very nicely, even with two terminal views, one showing 'top' or similar, and you even have function keys in the keyboard (which I don't, see my screenshot). Can you tell me the steps and keys you pressed for getting that screenshot? (I mean this: https://github.com/timower/rM2-stuff/blob/master/doc/yaft.png)
Found the reason for 'nano' not starting and 'vi' acting so weird: You need to set $TERM as xterm instead of yaft-256color. Anyway, my question remains regarding the steps needed to get the function keys in the keyboard, and how to get to your screenshot.
yaft-256color is the correct term. You just need to make sure the terminfo files have been installed correctly, then vim and other should recognize it.
Took a quick look at this. Toltec drops yaft-256color
into /opt/share/terminfo/y
which isn't checked (by default?).
Options:
- Copy
yaft-256color
into/etc/terminfo/y
- Symlinking
yaft-256color
into/etc/terminfo/y
- Updating the terminfo config to source
/opt/share/terminfo
?
This is fixed by sourcing /opt/etc/profile
as described in toltec-dev/toltec#715