timower / rM2-stuff

Collection of reMarkable related apps, utilities and libraries.
GNU General Public License v3.0
125 stars 10 forks source link

[yaft] nano won't start, and vi starts very weird. #15

Closed cesss closed 1 year ago

cesss commented 1 year ago

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)

These are my screenshots showing the issues I mention: IMG_1163 IMG_1164 IMG_1162

cesss commented 1 year ago

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.

timower commented 1 year ago

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.

kiwiz commented 1 year ago

Took a quick look at this. Toltec drops yaft-256color into /opt/share/terminfo/y which isn't checked (by default?).

Options:

timower commented 1 year ago

This is fixed by sourcing /opt/etc/profile as described in https://github.com/toltec-dev/toltec/pull/715