Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've got a couple VT340's in storage, they have ReGIS graphics on them which is quite fun. It would be great if someone decided to implement ReGIS in one of the Linux or Mac terminal emulators because all those cool DEC BASIC games would suddenly work great.

[1] http://terminals.classiccmp.org/wiki/index.php/DEC_VT340



Plain old xterm has a VT340 mode (`-ti vt340`) that supports ReGIS. I'm not sure whether it is complete enough for games to work.


I don't know how much ReGIS it supports, but it very definitely supports sixel graphics quite nicely:

https://mediacru.sh/plKQQj7ymWNT

The only limitation I've found is that the standard ppmtosixel conversion tool spits out 8-bit control-characters, but xterm seems to only recognise their 7-bit equivalents (hence the sed command in that screenshot).


UTF-8 mode is interfering with the 8-bit control-characters. Give `+u8` to disable UTF-8 mode.


It won't let me edit the comment, but I should throw in: xterm must be compiled with `--enable-regis-graphics` (or `--enable-sixel-graphics` for sixel graphics) for it to work. Your distro's xterm might not have been compiled with those flags.


This was the case for me, but rebuilt from source and it worked fine. Given the code exists I wonder why it isn't more common in terminal emulators. Its really handy when you want to pop up a simple picture or a line drawing.


mlterm does sixels at least too.


Hm, I remembered something seemed to be linked here on HN some time ago, so after quick googling:

https://news.ycombinator.com/item?id=7539648

http://41j.com/hterm/

Surprised that you missed it, so I'm still not quite sure if maybe I misunderstood something in your question, or you were just having some healthy holidays around that particular time :)

[EDIT] Oh! For more added fun, I've stumbled upon ReGIS's sibling for bitmaps, SIXEL; some pretty screenshots e.g. at:

http://web.archive.org/web/20140521194225/https://pypi.pytho... (submitted to the Wayback Machine, as it loads faster from there for me...)


Nice, you're correct I completely missed this posting! Added it to my evernote database, thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: