timower / rM2-stuff

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

problem using yaft from rm2 to access ssh server #10

Closed jave closed 8 months ago

jave commented 2 years ago

Inside yaft on a rm2, i ssh to a server, this works fine, and i get a remote shell nicely.

then I try to start for example emacs, and it complains "there is no such terminal definition yaft-256color" or similar error.

I compile and install yaft on the remote server, just so I can get the terminfo file, and it does install in /usr/share/terminfo/yaft-256color. So far so good.

Still, I get the same missing terminal definition problem.

If I use some other terminal definition, like "export TERM=xterm-256color" it works, and looks nice, but I do get some visual glitches probably because the termdef does not match.

Have I missed some step in installing the terminfo file or something?

timower commented 2 years ago

Hmm, not sure. I'm also new to the terminfo stuff. Installing the yaft terminfo on the remote server should be all that's required. Maybe a reboot is required to get it registered?

Another option is to launch ssh inside of tmux on the remarkable. Then the server just needs the tmux terminfo and tmux on the remarkable will translate as needed.