joukos / PaperTTY

PaperTTY - Python module to render a TTY or VNC on e-ink
953 stars 105 forks source link

Implement pseudo-terminal #16

Open joukos opened 6 years ago

joukos commented 6 years ago

Instead of reading /dev/vcsa*, allocate a pseudo TTY.

A big problem with the VT buffer is that the original unicode value is lost.

Having an option to use a pty should:

jason-green-io commented 6 years ago

This should help

https://github.com/selectel/pyte

joukos commented 6 years ago

Thanks, I better check that out.

jason-green-io commented 6 years ago

I've been working on this with some pretty good success, I'll create a branch on my fork later so you can see.

4cg5aemrc ucmjfyp31tw

g7ecjjpvswwsnt141k5scq

joukos commented 6 years ago

Looks awesome, nice work!

jason-green-io commented 6 years ago

https://github.com/jason-green-io/PaperTTY/tree/pyte

jason-green-io commented 6 years ago

Wish I saw this earlier

https://github.com/pielgrzym/paper-terminal

joukos commented 6 years ago

:astonished: Hidden in plain sight it seems! Cool find, also an interesting way to show the tty1, didn't occur to me to do it like that.

We should combine all the useful code of various such projects into a package that not only has all the features one might need, but also comes with good drivers (or at least less hacky demo code). From what I can gather via forums and googling, the GxEPD might have useful bits too especially in terms of driving the displays.

jason-green-io commented 6 years ago

Something else pseudo-terminal enables: attributes

ypdvps89sbwmoiwc2ky0bg

joukos commented 6 years ago

Cool :) I hope I have time in the near future to incorporate this and fix some pending driver issues too.

klundry commented 6 years ago

This is looking really promising! I will be happy to test this out once it's implemented.

lvan188 commented 4 years ago

How to enter the pseudo terminal I have opened

joukos commented 4 years ago

How to enter the pseudo terminal I have opened

Are you using the fork by @jason-green-io ? I think you can do a tmux attach -t tty to enter the session but haven't tried it myself.