6 ms·
HTML Canvas in the terminal
- michaelmior 12y agoThis is very cool. It would be interesting to use this as part of an abstraction layer for HTML5 Canvas games so they could run in the terminal as well as the browser.
- thomasahle 12y agoWould such a thing allow the creation of a complete terminal fronted for webkit or so? I would love to be able to do all my browsing from the terminal.
- jimktrains2 12y agoEven if it could the quality of images would be abysmal, if even useful. There are options for browsing in the terminal such as lynx, links, and w3m, obviously they don't have graphics support.
- Sir_Cmpwn 12y agoIt's possible to view images in certain terminals, with w3m. https://mediacru.sh/rML4x537Mf0o https://mediacru.sh/rML4x537Mf0o Screenshot is xterm. Also supposedly works with urxvt, but I can't get it to work correctly.
- jimktrains2 12y agow3m has always opened images in an external program for me. I'll have to check out how to do this! :)
- Jasper_ 12y agoPut a trigger warning on that anime, please.
- tomgg 12y agoI can't speak for the others, but w3m definitely has graphics support.
- jimktrains2 12y agow3m has always opened images in an external program for me. I'll have to check out how to do this! :)
- gcb4 12y agophantom already does a full headless web kit browser. with screen shot capabilities.
- seanewest 12y agoTJ Holowaychuk made something like this a few years ago: https://github.com/visionmedia/term-canvas https://github.com/visionmedia/term-canvas
- ninjin 12y agoAbsolutely wonderful idea, I hope the author had a lot of fun hacking on this. On a slightly related note, if you have not been exposed to the BB demo using aalib, do not miss out on this gem from the late 90s (if you are on a Linux distribution you can most likely install it using your package manager, e.g. `apt-get install bb`). http://aa-project.sourceforge.net/bb/ http://aa-project.sourceforge.net/bb/
- bnegreve 12y agoWith aalib, you can even render videos on the terminal. E.g. on Linux: mplayer -vo aa video.mpg Will use aalib to render video.mpg inside the current terminal/console. The quality is not great though: http://www.youtube.com/watch?v=O5JLjfCi0mw http://www.youtube.com/watch?v=O5JLjfCi0mw (Here with Vlc.)
- cben 12y agoUse -vo caca for color output via libcaca: https://www.youtube.com/watch?v=ur3iEHo6rI8#t=25 https://www.youtube.com/watch?v=ur3iEHo6rI8#t=25