3 ms·
I'm wondering if it's possible to run graphics games in terminal as in DOS?
by markus_zhang 4y ago
I'm wondering if it's possible to run graphics games in terminal as in DOS?
- emmanueloga_ 4y agoThere's sixel [0] to display pics in text terminals. Also apparently the kitty terminal has a custom protocol to blit graphics on text terminals too [1]. There's a library with some impressive demos called "notcurses" if you are curious what kind of graphics can be displayed in a terminal ... the author uploaded some demos to YT showing the capabilities. It's been discussed in HN a bunch of times [2]. 0: https://en.wikipedia.org/wiki/Sixel https://en.wikipedia.org/wiki/Sixel 1: https://sw.kovidgoyal.net/kitty/graphics-protocol/ https://sw.kovidgoyal.net/kitty/graphics-protocol/ 2: https://github.com/dankamongmen/notcurses https://github.com/dankamongmen/notcurses - https://hn.algolia.com/?q=notcurses https://hn.algolia.com/?q=notcurses
- tdeck 4y agoxterm has a vector graphics terminal emulator, although I've never seen any application that uses it. https://jirkasnotes.wordpress.com/2019/07/17/xterm-does-graphics-sort-of/ https://jirkasnotes.wordpress.com/2019/07/17/xterm-does-grap... Edit: a better demo: https://lock.cmpxchg8b.com/tektronix.html https://lock.cmpxchg8b.com/tektronix.html
- emmanueloga_ 4y agoPretty fascinating, I found the tip of the iceberg on XTerm's src [0] but it's kinda table driven so hard to tell what's going on :-). I just wanted to see exactly how much code was there in XTerm to support hardware that was popular between the 70s and early 80s.. [1] 0: https://github.com/joejulian/xterm/blob/defc6dd5684a12dc8e56cb6973ef973e7a32caa3/main.c#L2861-L2872 https://github.com/joejulian/xterm/blob/defc6dd5684a12dc8e56... 1: https://en.wikipedia.org/wiki/Tektronix_4010 https://en.wikipedia.org/wiki/Tektronix_4010
- classichasclass 4y agoAges and ages ago I wrote a 'ppmtotek' program that would display raster graphics on terminal emulators with Tek 4014 graphics. It worked somewhat but depended on quirks of the specific terminal emulator. I should dust it off anyway.
- aidenn0 4y agoHere's Doom running in a terminal using notcurses: https://www.youtube.com/watch?v=a_w5rh3c76g https://www.youtube.com/watch?v=a_w5rh3c76g