Hacker News new | comments | show | ask | jobs | submit login

This is so cool, very nice work! :D

I've been playing with writing little custom SSH server stuff recently as well—try this for example:

ssh hello.dn.ht

One thing I've been testing to get some extra vertical resolution on graphical stuff is the unicode half block character (https://en.wikipedia.org/wiki/Block_Elements) with a separate foreground and background color. Works ok, but background color can bleed through depending on the font you use.




Haha Wasn't expecting that, very cool! How did you do that? Have you some code somewhere? Thanks for the praise :) A big part of pushing forward with this was seeing the quality of @jart's hiptext[1] renderings, I find it creates much more aesthetically pleasing ASCII images than libcaca and libaa. It only uses those block elements, like your webcam video.

[1] https://github.com/jart/hiptext


Ok yeah wow, hiptext's output looks pretty fantastic. :)

I'm using my own text webcam thing: https://github.com/dhotson/txtcam .. not too fancy, just using greyscale with some shading characters to do some basic "dithering".

Also, if you're on Mac OSX and using iTerm2 version 3, you might be interested in its 24bit colour support. It's not that widely supported yet in other terminals unfortunately though: https://gist.github.com/XVilka/8346728


Oh, that textcam code isn't too complicated and you get a really good effect from it.

I never even knew that there was true colour support in terminals, let alone how many terminals support it! Hmm, so I'd need to figure out if SSH sends the terminal's ability to render true colour. And then also update hiptext. It would make a really big difference to the "readability" of the texttop output.


With OpenSSH 7.2p2, I get:

    ssh_dispatch_run_fatal: Connection to 107.170.66.146 port 22: invalid format
But I see "Hello! :D" with ncat :)




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

Search: