PaperTTY icon indicating copy to clipboard operation
PaperTTY copied to clipboard

Implement pseudo-terminal

Open joukos opened this issue 6 years ago • 12 comments

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:

  • make the encoding issues easier to handle
  • enables the use of more symbols, block characters, languages etc.
  • allow to have an arbitrarily sized terminal, instead of ioctl complaining - currently some of the display/font combinations are such that not all of the panel can be utilized optimally

joukos avatar Sep 06 '18 16:09 joukos

This should help

https://github.com/selectel/pyte

jason-green-io avatar Sep 07 '18 19:09 jason-green-io

Thanks, I better check that out.

joukos avatar Sep 07 '18 19:09 joukos

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

jason-green-io avatar Sep 09 '18 13:09 jason-green-io

Looks awesome, nice work!

joukos avatar Sep 09 '18 15:09 joukos

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

jason-green-io avatar Sep 09 '18 16:09 jason-green-io

Wish I saw this earlier

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

jason-green-io avatar Sep 09 '18 18:09 jason-green-io

: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.

joukos avatar Sep 09 '18 18:09 joukos

Something else pseudo-terminal enables: attributes

ypdvps89sbwmoiwc2ky0bg

jason-green-io avatar Oct 15 '18 16:10 jason-green-io

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

joukos avatar Oct 15 '18 16:10 joukos

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

klundry avatar Oct 24 '18 20:10 klundry

How to enter the pseudo terminal I have opened

lvan188 avatar Oct 24 '20 07:10 lvan188

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.

joukos avatar Oct 25 '20 21:10 joukos