7 ms·
Terminal graphics protocol
- mcc1ane 3y ago"I retired from modeling a long time ago. It's time I retired from tech, too... Let's commit to losing me." https://en.wikipedia.org/wiki/Lenna https://en.wikipedia.org/wiki/Lenna
- drcongo 3y ago[flagged]
- dist-epoch 3y ago[flagged]
- H4ZB7 3y ago[dead]
- deleted 3y ago[deleted]
- dang 3y agoCould you please not break the site guidelines like this? The parent comment has been heavily upvoted. If you see a comment that has been unfairly downvoted, give it a corrective upvote (https://hn.algolia.com/?dateRange=all&page=0&prefix=true&sort=byDate&type=comment&query=corrective%20upvote https://hn.algolia.com/?dateRange=all&page=0&prefix=true&sor...) and move on. If it's an egregious case, you can always let us know at hn@ycombinator.com and we'll be happy to take a look. But comments like what you posted here just add noise and usually end up false, as yours did. Unfortunately they linger on as uncollected garbage (https://hn.algolia.com/?dateRange=all&page=0&prefix=true&query=by%3Adang%20uncollected%20garbage&sort=byDate&type=comment https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...). If you'd please review https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html and stick to the rules when posting here, we'd appreciate it. Edit: it looks like you've unfortunately been breaking the site guidelines in other places too. Please see https://news.ycombinator.com/item?id=38561818 https://news.ycombinator.com/item?id=38561818 also.
- 127361 3y ago[flagged]
- rbanffy 3y agoIt's HER wish. We could respect it without sacrificing other minorities.
- velcrovan 3y ago“Hey maybe we should all stop slapping this one person in the face?” “How is that going to help with other things that really matter?”
- jrajav 3y agoRespecting a single real person's basic requests about use of their own image is "politically correct" now? It's worth considering at what point your knee-jerk reactions have gone off the deep end on the other side.
- fouronnes3 3y agoI'm wondering if one day we'll see an alternative to terminal technology that leaves behind in-band signalling for good.
- dist-epoch 3y agoWindows has out-of-band terminal controls (size, ...) through a terminal API. They decided it was a bad thing (also compatibility) and now they implemented in-band ANSI escape sequences and recommend them.
- fragmede 3y agoFascinating. Do you know why?
- dist-epoch 3y agoThe biggest one is compatibility with Linux console apps. But also the difficulty of running a terminal session outside the traditional Windows command line app (think VS Code terminal pane). https://devblogs.microsoft.com/commandline/windows-command-line-inside-the-windows-console/ https://devblogs.microsoft.com/commandline/windows-command-l...
- GoblinSlayer 3y agoSurely VS Code terminal pane can't display arbitrary unix terminal session, so this shouldn't be a concern. Arguably windows makes it easier: since color control is out of band, it can be ignored and only text is displayed.
- H4ZB7 3y agobecause of the hacker community circle jerk. there was no rational reason. it's like back when people used ANSI.SYS to display a text file with colors. it's leet factor and has no application in reality.
- deleted 3y ago[deleted]
- edward 3y agoI really like the idea of the Terminal Graphics Protocol and the aims of the project, but I feel it's important to address the choice of the Lenna photo. This image, although historically significant in the field of image processing, is increasingly viewed as an outdated and inappropriate choice due to its origins and the implicit message it conveys. The Lenna photo, originally taken from a Playboy magazine, perpetuates a narrow and objectified view of women. Its continued use in tech demos and educational materials not only overlooks the rich diversity of alternative images available for such purposes but also subtly endorses a culture that many in the tech community are striving to move away from. In an era where inclusivity and sensitivity are rightfully gaining prominence, it's crucial that we reassess and update our educational and demonstrative tools to reflect these values. Opting for more neutral and universally appropriate images would not only avoid potential discomfort among a diverse audience but also demonstrate a commitment to fostering a more inclusive and respectful tech culture.
- normalaccess 3y agoIt's all well and good that you feel that way but what do you offer to replace the Lenna photo? It's easy to say it needs to be replaced but it's actually quite a different matter to find something so universally recognized. Everyone knows exactly what it's /supposed/ to look like and that's why it's useful as a reference to judge image processing. Just my two cents.
- rbanffy 3y agoShe wants us to find something else. "I retired from modeling a long time ago. It's time I retired from tech, too... Let's commit to losing me." -- Lena Forsén
- dist-epoch 3y agoThere are a ton of universally recognized images. Put the Linux mascot. Use the Windows XP background image. The Monalisa or the Sixteen Chapel.
- SiempreViernes 3y agoThe Nature-family of journals have banned its use, and recommends ‘Cameraman’, ‘Mandril’ or ‘Peppers’ as alternatives. In other words there is a well established alternative and you just didn't try googling for it. https://www.nature.com/articles/s41565-018-0337-2 https://www.nature.com/articles/s41565-018-0337-2
- gandalfthepink 3y agoSidelining all the interesting stuff that the article discusses people decided to focus on the picture of Lenna. Yes, I understand it is a problem but it needs to be dealt with in a collective manner by tech community, by say introducing an alternative.
- pseudalopex 3y agoDemonstrations like this used various images forever.
- SiempreViernes 3y agoThere are plenty of alternatives, as well of several calls for using them. For example you can't use Lena in any Nature journal, and they suggest ‘Cameraman’, ‘Mandril’ or ‘Peppers’. In other words, there is practically speaking a well established alternative, and the remaining task is to badger all the holdouts into switching.
- notThrowingAway 3y agoEthically sourced Lena: https://mortenhannemose.github.io/lena/ https://mortenhannemose.github.io/lena/
- petee 3y agoIf everyone decided to discuss that then it sounds like they are dealing with it in a collective manner. And I think it's a little ignorant to suggest that the issue is lack of an alternative. How about just don't use it? Or take a photo of your own kid and upload it
- jryb 3y agoscikit image replaced lenna with a picture of astronaut Eileen Collins: https://scikit-image.org/docs/stable/api/skimage.data.html#skimage.data.astronaut https://scikit-image.org/docs/stable/api/skimage.data.html#s...
- rbanffy 3y agoWhat's wrong with extending ReGIS, Sixel, or Tektronix (just kidding on that one) protocols? Or, maybe, PostScript/Display PostScript? Can't we define what behavior should a modern terminal have with these already existing tools instead of inventing a brand new wheel?
- naikrovek 3y agobecause pixel-perfect display of images is nowhere nearly as important as people think it is, and because implementing a terminal which can display both images and text is much easier if you let go of the idea that pixels need to be displayed perfectly by the terminal. Pixel aspect ratios are not always 1:1. Fonts have character height to width ratios which are all over the place and a terminal which must adapt any character cell to any region of an image pixel perfectly is way more difficult than it needs to be. Unless you're Casey Muratori, probably. then there are things like display scaling, which, ideally, the terminal application itself shouldn't need to know anything about in order to render correctly. What good is a terminal that renders pixels exactly if the OS can then magnify the window so that you lose the pixel "perfection"? I don't like the Kitty protocol described in this post, either. The Windows Terminal people are thinking about this, believe it or not, and they are the ones that convinced me that existing methods are insufficient. We need yet another standard for doing this. One that can adapt to video display technology of the 1990s, at least.
- rbanffy 3y agoThe only protocol I mentioned that expects pixel-perfect images is the sixel one (which is, essentially, what a DEC printer would print on paper, but on the screen). ReGIS, while it is traditionally rendered as pixels, doesn't really care about how many pixels the screen has. DPS doesn't care much about pixels, and Tektronix doesn't even have the concept of pixels, just coordinates in an x-y plane (because Tektronix terminals didn't even have pixels). > I don't like the Kitty protocol described in this post, either. The Windows Terminal people are thinking about this I've been part of these discussions (mostly from the VTE side). I agree sixel, ReGIS, and Tek are "legacy" and have been implemented in such ways it's a miracle that they ever worked, and what you see on one brand of terminal is entirely dependent on the positions of the planets when the code was written and when the image is rendered and might not resemble at all what you'd see on another brand unless by coincidence ;-P. Which is kind of why I brought up DPS - it's the only one that takes pure geometry and generates pixels (Tektronix does so as well, but it's very limited, and doesn't really like to be anchored to the text screen).
- larme 3y agoIf you are not using kitty, some programs like chafa can convert image formats into ascii color code + unicode characters. It's very handy in many cases.
- csdvrx 3y agoYou can have that functionality integrated within tmux with https://github.com/csdvrx/sixel-tmux/ https://github.com/csdvrx/sixel-tmux/ : if you terminal doesn't support sixels, you'll at least see something close to the picture they represent. Then of course it's not pixel-perfect unless you make your terminal very large (like 800x240 instead of 80x24) but something being better than nothing, I'd argue it's for the better if all you can do is 80x24 with no pictures otherwise.
- heywire 3y agoAnyone remember RIP graphics from the BBS days? There were only a couple BBS’ near me that supported it, but it sure seemed magical at the time.
- crantzenstern 3y agoThis was my first thought, and I'm glad it was the first comment HN showed to me. RIP graphics were pretty slow to render compared to their ANSI counterparts, but that vector art could render visuals otherwise unseen on independent BBSs. Legend of the Red Dragon even supported RIP.
- dang 3y agoDiscussed a bit here: Terminal Graphics Protocol - https://news.ycombinator.com/item?id=35940691 https://news.ycombinator.com/item?id=35940691 - May 2023 (3 comments)
- charcircuit 3y agoThis is ignoring how modern graphics work on a computer. If you want to make a terminal into a compositor you do want to have programs communicate pixel data over stdout. You instead allocate a buffer (texture) that programs draw into. The approach described is unable to utilize hardware acceleration that is useful for a compositor. If you play a video there will be a lot of overhead in this approach compared to a normal compositor where the video decoding and composting can happen entirely on the GPU.
- moderation 3y agoMitchell Hashimoto's new terminal Ghostty (private beta) supports the Kitty graphics protocol [0]. 0. https://mitchellh.com/writing/ghostty-and-useful-zig-patterns https://mitchellh.com/writing/ghostty-and-useful-zig-pattern...