Terminal giving you a janky and limited remotely accessible canvas you can abuse to make primitive GUIs doesn't imply that "SSH is a GUI framework".
A lot better solution would be designing a compact, semantic, styling-independent remote access protocol that doesn't need bitmaps (unlike most currently available protocols), and uses good compression for actual pictures/videos. That would make any GUI efficiently usable remotely through an adapter for an existing GUI framework, without extra bloat the browser has.
X forwarding is the complete opposite of that - it's non-semantic, doesn't abstract away styling, heavily relies on bitmaps, and generally a lot noisier than a terminal. It needs to be replaced with something better thought out for GUI remote access to be a viable alternative. Same goes for SPICE (as far as I remember how it works).
The X protocol is semantic[1] and when used as originally intended is very fast even on 1990s networks. But GUI toolkits ended up heavily relying on local rendering and shipping bitmaps over the wire, which is why Wayland advocates argued bitmaps are good enough.
It's kinda like the way PostScript evolved into early PDF which evolved into modern PDF, where pages are basically assemblies of prerendered images. The original, semantic aspects are still there, just not used, or rather abused to dumb it down.
[1] At least in the way you mean. Semantic like SVG, which is still literal, just abstract.
SVG is also semantic; you can write (and even read!) SVG in a text editor just fine. Not every SVG is semantic though; many of them are just a single <path>.
I remember running the original Citrix client for Windows over a 14k modem.
It worked remarkably well, the only real nut was the typical “splash page” on launch, which was typically a large bitmap. Those stalled pretty hard, but once you got past that and up and running, apps were quite smooth over the crummy bandwidth.
> It's kinda like the way PostScript evolved into early PDF which evolved into modern PDF, where pages are basically assemblies of prerendered images. The original, semantic aspects are still there, just not used, or rather abused to dumb it down.
that is definitely not the case for any sensible use case. PDF that's just bitmaps is a shitty hard to use one
The X protocol has some semantic drawing primitives, but modern applications rarely use them. Partly because they don't look very good, and partly because it is often easier to draw bitmaps, and the X primitives can't make use of the GPU.
Modern GPUs don't do 2D acceleration, there isn't any hardware to map those primitives to. Layers such as Gallium map the old primitives onto software routines running on the GPU.
Some SoCs such as those from Rockchip and Allwinner do have 2D acceleration provided by their display controllers separate from the GPU but there isn't much software support for them.
I think you meant Glamor, which implements X11 acceleration through OpenGL, replacing hardware-specific DDX drivers; Gallium is the abstraction layer between Mesa drivers and graphics APIs. Don't confuse with Glamo, which was the Neo Freerunner's GPU and had its own DDX driver :)
Have you actually tried it? Most modern apps and frameworks render to bitmaps on the GPU and pass that over X11 but that isn't the only thing you can do with X11.
And nobody mentioned "semantic". Focus on "semantic" usually turns out to be ivory tower nonsense that impedes progress towards working systems, anyway.
I’ve not done X forwarding in decades but it definitely was semantic and abstracted styling back when i used it to connect to Solaris boxes over dial up.
Maybe the bitmap problem was an issue with modern DEs? Many of them were likely bitmap-heavy for window chrome anyway.
Modern toolkits are optimized for GL rendering and the shared memory extension. They produce beautiful effects and animations, and give the X server large bitmaps already in VRAM, much like a video player.
Toolkits like Athena back in the day dealt in terms of lines, rectangles, and text strings to be rendered locally, more like, say, HTML does.
The latter approach did work over dialup. The former struggles to be smooth even over 100mbps Ethernet.
HTML started somewhere between semantic and layout oriented; now it is more the latter. CSS is a powerful selector language but it selects... layouts.
JavaScript is a general-purpose language and does none, some or all of the above.
The web’s biggest problem IMO is that it has evolved in the direction of giving content providers more and more control over how that consumption is consumed. I miss the gopher days when content was 100% semantic and layout was 100% a client-side task.
What I would love to see is a semantic-only language that is textual (easy for a human being to type in a text editor) but more structured with extensible semantics. Instead of using | and - to “draw” tables, just express the data and leave it to the renderer to choose the best (or user-preferred) rendering.
What if - I know this is a tall order - instead of arguing about the layers a program should be divided into, we spend time making it easier to write your own program from scratch and then it won't matter if one of them sucks because you can replace it wholesale
It's worth trying. I have thought that you might be able to replace most TUIs, which rely on presentation-oriented ANSI, with a lightweight markup language that includes forms. [1] A form would be interactive while current and become part of a static log once submitted. I guess that's pretty much a block-oriented terminal? [2]
You could use a controlled subset of HTML. It naturally comes to mind. However, an implementor could then embrace, extend, and extinguish your protocol by allowing full HTML.
I mean, one could argue that the web is just a remotely accessible hypertext protocol we've been increasingly abusing to make whatever arbitrary GUIs we want.
I've always wanted a styling-independent protocol, which led me to the Gemini protocol (not the AI) for one, although I find that all such "next-generation" protocols don't see much traction.
I picked SSH as a convenient option that people already use to log into VMs.
The problem is a web browser is exactly that use case. Their whole function is to remotely render a GUI.
We gripe about web design when people start to act more like it's local, but all the things a browser does are essentially "I need a remote GUI" and a lot of effort has gone into that.
They are not and the fact HTML/CSS is NOT designed to be "remote GUI" is precisely the problem web has.
It is document + styling format. It was not designed to do GUIs, It was roundpeg squareholed into being one, and only after throwing copious amount of JS on it it works okay while being okay on design side
Well, it's surely not the most elegant thing ever, but it is so far above anything else in terms of being cross-platform, actually powerful and bandwidth efficient (if one wants it to be) that we should just accept the "costs".
Like you could write a full CAD app, online FPS shooter etc in it.
Problem is the more flexible a contract/protocol/interface is for one side, the less flexible it is for the other.
For example a terminal supports flexible font (but only monospace!) and font size. If it was based on pixels those wouldn't be changeable. Conversely if it didn't have a character grid (like HTML doesn't) it could also support proportional fonts.
I'm currently working on something far better that allows for true interactive widgets over SSH (that does already work), but in my quest for perfection I'm about to rewrite the protocol for the third time, so I don't know if I should share that :P
it is annoying how poorly web browsers support the local or ssh tunneled application use case though. it would be nice if there was a way to get browsers to work more like X servers, presenting an unix socket that applications (either local or ssh-tunneled) could connect to. Or something along those lines.
Modern web is a terrible abuse of what was originally a document viewer. A web app is not even in the same league with a TUI when it comes to remote access. It needs to be designed specifically to stay as noiseless on the network as a TUI app is by default, and the browser is incredibly janky and bloated, which is not avoidable. Don't worry though, modern TUIs are headed towards the same direction, because people want more and more features in a legacy thing instead of designing one for the purpose.
I can compose a text with barely any network and then press send and it will eventually go through.
I literally have to find stuff like herdr web ui or whole mobile applications to write a longer text (e.g. a prompt) when I'm on patchy networks because the variable latency after each keypress makes it impossible to write on an SSH TUI. So if anything, it's the latter that is a "terrible abuse" of a GUI.
That better solution is known as plain HTML over HTTPS. The user can write their own styles. The user can prohibit <img>s or selectively allow them.
But yeah the author is probably deliberately conflating between the Terminal which renders and the SSH protocol which just transports streams securely. It makes the title more enticing.
I'd propose we define some kind of hypertext markup language. Probably allowing the app send some default cascading style sheets would not be bad, but we should be able to apply our custom ones over it. Then we find a way to represent our state transfers between the client and server.
If you do this, however, you quickly figure out that you're wasting bandwidth and the user's time by forcing a round trip to a far-off server on every button click (hence Javascript), and that the UI looks inconsistent in different browsers (hence CSS), and then, a few years later, you get the status quo.
The point of design or abstraction is basically to pick out specific interesting points on a multidimensional spectrum. You can't cover a large swath of the spectrum and still have a good design.
Classic HTML forms were an interesting point. They are not the most efficient solution to every problem, but they have known properties which allows more to be said about then (for instance no code execution on the client, and you can "save as" and print). Fully native apps are another. There's very little that can be guaranteed about a native app but it has access to more ways to do things efficiently. By pulling HTML towards native apps, it becomes a jack of both trades, master of none. You can't guarantee many properties about an HTML page and more, you usually can't print one and definitely can't save-as, but it also can't be as efficient as a native app.
I remember my college used to serve some student services app via Telnet
You would just telnet into a machine using your student login/pass, and it would run either a welcoming screen or a specific app (like one for scheduling classes)
It was a very mature application and worked really well. Alas, it was quickly replaced by web versions of the apps, which took another flew years to get properly working
Anyway, glad to see an example of what’s possible (and almost forgotten), in terms of providing access to applications online via the terminal (and without a browser)
I remember back in the mid 90's, I was a young high school student taking a c programming class (in rural alabama, no less!). We used a borland ide / compiler, and I was irritated that I couldn't code at home.
I was reading a forum online, and someone mentioned that the university of Colorado offered free shell accounts, and they had compilers!
Well, it was a bit different than borland, but I was really happy to be able to code after school, at home. I kept bugging the UC admin to install x, y or z software and he finally said 'hey, kid, there's this thing called linux, you can put it on your home computer'
So of course I formatted my parents home computer (they were...not amused), but I loved the whole ecosystem. I had access to tons of code to learn from. It was awesome.
That was really my start into being a software developer, and all because some admin at a university was kind enough to allow the general public to use their servers.
> So of course I formatted my parents home computer (they were...not amused)
That made me chuckle. I also formatted my family’s home computer (after I trashed the partitions trying to resize the disk to be able to do double boot between windows and Linux, using a random distro that came with a book I bought on Amazon). They were also not happy about it
In a nasty fit of nostalgia for those days, I made a hobby project using shell accounts as a social network sort of thing, It is a service nobody needs, or wants, in our modern age. But I thought it would be fun. ssh to applicant@register.public.outband.net to try it out.
It is not a great environment. it runs on an old router on my closet, ip6 only, openbsd vm on a openbsd host, but stop by and say hi if you have nothing better to do. https://www.public.outband.net gives a little more info
back in the days, we had a usual meeting every friday to eat white sausages. Its a thing to do so here in bavaria.
I entered internship at that company back then and all participants would connect the mainframe via telnet to place their orders on how much they want to eat. It was a terminal driven UI .. Right at 11:00 it was not accessible anymore and the orders were printed. A person would then go and place the order on a nearby butcher and retrieve it, prepare the meal and everyone was happy.
I had to replace it with a (back then) hacky php site, which is still in use, as of today, nearly 26 years later.
I remember those days, and getting mail by telnet. I wonder what would happen if you asked college kids to ssh in to a server today instead of giving them a web interface. I think it could be a big plus for them to see some sort of computing that isn't packaged the same way as everything else, namely as a web page.
For TUIs, I wish a 5250-style block based terminal had won over VT100 stream based terminals.
For those not familiar, with a block oriented terminal, the native "chunk" of data is an entire screen. So you can put information in there like "this is a text box". This allows, for example, you to move around the screen with tab and type _with no round trip back to the server_. There's 0 latency. Data is only sent when you hit enter.
On high latency or flaky connections the experience is a million times better.
DEC terminals did have block support! Almost nobody used them on unix afaik, but I saw a lot of VMS stuff that used a combination of the "protected" SGR, the local-editing mode, "media copy to host", and hotkey programming to produce a really similar experience to IBM.
I think xterm just doesn't support some of this stuff because it was easier than fixing write/ptys.
You should visit Vintage Computer Festival (VCF) events across the US. I bumped into a working DEC terminal on my every visit. Some let you use it too.
Your comment made me realize my idea in this thread (https://news.ycombinator.com/item?id=50650758) was a block-oriented terminal, something I have read about but not used. One could borrow from that parallel lineage; for example, implement an RFC 4777 server that provides an administrative interface for Linux.
> Next, we optimize graphics by sending a sort of "grid" of pixels. Each cell has its own updates, where the previous frame is compared to the current frame to catch and send updates, avoiding having to constantly stream the full screen.
mosh does this too, with the caveat that it's not transparent to terminal escapes. for instance, if you try to run some modernish "tui framework" remotely over mosh, things like clipboard access won't work at all, because mosh just cares about how the terminal should look.
there are workarounds to smuggle the OSC sequences in other places, so you can get all escape sequences through. I usually have a process tree that looks something like this
and escape sequences work just fine from inside the nested local screen session, the screen-mosh-screen connected to somehost, and the screen-mosh-herdr on otherhost.
> The Kitty terminal uniquely supports a file upload feature
If anything, Kitty was late to the party here. Being able to upload (and download!) files has been a fairly common feature in terminals since at least the 80s. Windows 95 even had a terminal that could do this (badly) included right there on the CD.
Kitty's file upload feature is pretty terrible too, because afaik there's no way to ask the user to supply a file except by begging them to switch to another program and drop a file on it. It's really the only thing stopping me from using it.
Kermit is from like 1981 and had a better file upload experience; literally every terminal I used from the 1990s supported zmodem receive except iTerm2 which can use one with a filter, but has a decent file transfer experience built-in that I didn't mind adding detection/support for.
I do really like x11 forwarding, but unless you're on Linux, you'd need to download an X server, so I thought this would be interesting as something anyone could try from almost any machine.
I recently went down this rabbit hole (Kitty as streaming remote screen transport) but in the context of an IBM PC emulator[^1]. I think of it mostly as a gimmick, but I am impressed with the author's optimization work (text overlays, partial updates). In my case I found indexed PNGs to be a good way to reduce bytes across the wire, even trouncing zlib transport (I only needed 16 colors because CGA, so 4-bit indexed color was enough). Perhaps if enough people care about streaming graphics over Kitty it can be made into a more optimized thing :)
Very cool project! I got absorbed in NetHack for a bit haha. I'm really excited for a time where SSH-based frameworks make it increasingly doable to build hosted "applets" like this.
Indexed PNGs are really clever for DOS, cool optimization :) I'm intrigued by whether it's possible to create a set of optimized Kitty graphics adapters as a library, that would open the door for a lot more people to build graphical SSH apps.
And thanks, flattered that you found my optimization work impressive. A lot of it was necessary to get a smooth enough experience over SSH for VMs when rendering a full GUI.
Extending a terminal protocol to include advanced graphics makes it compete directly with X, Wayland, VNC, Moonlight, etc. Even if it's not technically part of SSH itself.
Yes, and running interactive, mouse-aware, full-screen terminal interfaces over a remote connection on unix and linux has been standard practice for decades. So literally nothing new here.
Before we start abusing the terminal protocols for GUIs, I believe that we need some kind of protocol to allow text selection and copy/paste between blocks of text, so that we don't need tools that trim whitespace that was copied from the terminal[0].
There's some prior work like how the OSC-8 hyperlink id param[1], and a specification to tackle the issue[2].
I'm hoping that the Superlogical folks[3] can actually do this, in libghostty and Rex.
But also in tangent, I also do think that abusing the terminal protocol to do GUI stuff is kind of a worse-is-better type of situation, we specifically have a protocol (Wayland, Quartz, and so on) to do this stuff, and I'm hoping that we can decide to actually do something similar for the remote GUI situation. I believe that the Superlogical folks have plans to do this with Rex[4].
I believe that the remote-GUI situation has to be resolved, I've been talking about this multiple times. I thought that the web stack (HTML/CSS/JS) would be the answer to adoption[5], but hopefully we can get a full-fledged solution that is compatible with the previously existing GUI apps as well.
> - TUIs are not inherently superior to GUIs
> - SSH, as a transport layer, should support not just forwarding a pty (as a TUI display layer), but a GUI display layer as well
> In fact, these two arguments were already realized by UNIX 30 years ago, and we already have one solution: the X protocol and ssh -X.
> Unfortunately, X did not win out. We did not get the promised future where one can ssh -X into a remote machine, run gnome-control-center, and a settings window pops up and I can configure my remote computer. (If you believe that this works, try it out yourself. It is an abysmal experience.)
> However the above needs still needed to be satisfied by so much people, and apps that needed it started to be developed as web servers, stuff like jupyter notebooks. It turns out that the web’s document format coupled with a styling solution and a client-side scripting language, with all of its warts and drawbacks, became a viable solution as a display layer for interactive apps. In fact, since it started from remote documents, network transparency is built-in.
> It would be dumb to not realize that the HTML/CSS/JS stack did win a dominant position for desktop apps, with all of the Electron apps, and utilize the web as a display layer for the above. I see the project in a similar vein, i.e. utilizing HTML/CSS/JS to provide a display layer for remote apps via SSH.
> Also note that Electron apps has the same split with X, where the display server and the client are separated: it's called the "renderer process" and the "main process", and the two processes talk via IPC (where the display server would be the renderer process running embedded Chromium, the display client would be the Electron main process, and the stuff that the client sends to the server would be the contents of the renderer JS bundle). I think, theoretically, it would be possible to run the main process separated from the renderer process on a different machine, with an appropriate IPC transport. I think this would be not far from the above idea?
"Worse-is-better" is really perceptive. Using SSH as a GUI is admittedly a dirty solution, but I find it practical. See, if I tried to build a cross-platform app supporting X11, Wayland, Windows, and macOS, then I'd really be making a GUI framework, and if I tried to abstract all of those universally, well, I'd still be making a GUI framework. Thus the case for SSH presents itself.
That said, current terminals definitely have rough edges. Being somewhat "dumb" clients keeps the attack surface smaller, but it's also quite limiting. To address this (while keeping standard terminals working), I've been working internally on a prototype terminal client to hopefully get things smoother, which I'll share updates when it's ready, along with any open-source projects that come out of the infrastructure it needs.
I heard of Superlogical whilst initially working on Zydra, though I somehow missed the release of Rex, it's definitely something I'll have to look into.
It's a fun experiment but I would never do this. You lose all the magic of "just ssh hostname" when you only work properly with a few terminal emulators. Rolling your own terminal emulator is an extra step in the wrong direction.
On the flip side, cross-platform GUI frameworks already exist. HTML+CSS are really great, with everything you need and more built-in already, and none of the jank running in a 1970s-based terminal brings. If you want reduced attack surface I would say it makes more sense building (or forking) a browser engine with just the features you need, keeping compatibility with other browsers so nobody is forced to use yours.
Kitty is only the first-class option; Sixel and iTerm2 are available, and even in text-only terminals (or a TTY), we stream the entire GUI as ASCII (like a TUI), and you still get the other features. "Just ssh hostname" remains.
And we actually do have a webapp too, and it's alright, but I prefer SSH. To me, the project is more of a "multiplexer-on-steroids" with a built-in microVM to hold its apps and graphics, rather than a simple remote desktop. You wouldn't run a multiplexer over the browser just because it technically has everything built-in.
In the case of VNC/other protocols, there is an asymmetry: if you embed text in VNC, it still has to be streamed as graphics, whereas if you embed graphics in SSH, you can still stream text as actual text.
Fun fact: Our webapp does stream many elements as HTML (including even Wayland apps) rather than just streaming them using a codec.
I don't think this makes any sense, as ssh isn't suited for this use-case.
It also doesn't make much sense to bring all the security problems that exists in web browsers into a terminal delivered via SSH because you want to render special escape codes such as kitty or even sixel that make it possible to achieve remote code execution in someone's terminal. [0]
That's a fair concern. Any escape-sequence parser can have unknown vulnerabilities, and terminals don't have browser-grade sandboxing. Still, it's quite a different, much smaller attack surface than a browser downloading and running untrusted client-side code (JS, WASM), and a much easier one to harden over time.
eeh using sixel or other sub-character graphics to render a GUI isn't really a feature of ssh. It's just a terminal feature, you could do it with telnet.
also related: i created a tool to show ROS topics over a terminal, intended for people debugging robots over ssh: https://github.com/dheera/rosshow
For better compatibility I used Braille characters to render a 2x4 grid per character, not sixel.
Braille is really interesting as something more universal. Cool project.
It's true, SSH is just the tool of choice to move bytes around, and it's up to your terminal emulator and the server to decide what those bytes mean. In practice, SSH gives you encryption, key auth, and a way past restrictive firewalls (we listen on port 443 for this exact reason).
I was originally going to quip that by the articles logic, VNC should be a GUI framework too, but it is actually mentioned in the article. However, the text under the headline goes weirdly off the rails talking about webkit, WASM and WebGPU.
Yes, the authors TUI program would also work just as well over RS232.
Because those are transports, the terminal [emulator] at the end, responsible for interpreting what the TUI program on the other end outputs (and vice-versa), are separate things. They live at different places in the OSI stack.
It's fun but I don't want any of that in my ssh nor my terminal. I want my terminal to display characters, my ssh connection to be secure, and the whole thing to have as small an attack surface as possible.
What could possibly go wrong with having the client decoding pixels and having to handle VRAM?
It doesn't. What's good about SSH is that it doesn't do any interpreting of the bytes sent on its own, so we're free to build our own protocols for accessibility over time, and it'll be part of the evolution of Zydra depending on how far it goes. We only have reduced motion for now on SSH, unfortunately, though our webapp streaming elements as HTML helps on that front too.
I think they are? They (mostly) output a stream of text where the order of the text matches the structure of the underlying information.
TUIs with their box-drawing characters and emulated 2-d layouts, on the other hand, are not. I think Claude Code really set a bad example here that got everyone interested in making TUIs again.
ok so wayvnc already gets told by the compositor which parts of the screen changed. being able to select the terminal text is cool. did i miss the bandwidth and input lag numbers for the same workload at the same image quality or did we just skip straight to “beats vnc”?
I'm not necessarily saying SSH wins on a raw codec benchmark against wayvnc (I'd be glad to test it though, and I am working on a faster native client).
It's that the whole workflow has been built around SSH. I haven't just bolted a VM's "display_1920x1080" onto a Kitty stream and called it a day. Here I have a microVM that in and of itself renders natively to SSH, bringing with that SSH's key auth, and a universal client you can run on any terminal (with a text-only fallback).
Put simply, I don't enjoy remotely streaming a clunky desktop display, even if it's technically "fast". SSH feels at home, and that's why I built desktop VM infra on it natively.
I'll try to pick apart this paragraph in specific:
> While webapps have advantages, especially in client-side state, WASM, and WebGPU, they don't really capture the universality and ease-of-use of an SSH session. SSH keys double as authentication, and -A allows you to SSH into servers from within a remote microVM itself. Webapps also can't be accessed from a pure TTY.
> SSH keys double as authentication
Which is true! They are also typically associated with more than one service so rotation is a lot more painful.
> and -A allows you to SSH into servers from within a remote microVM itself
You can, indeed, also run a proxy on a remote VM and then access a web application via that VM! I don't think there's a practical distinction here.
> Webapps also can't be accessed from a pure TTY.
...And which tty would be able to render those special escape sequences without going through a terminal emulator?
Come on man. No, ssh is not a gui framework. No matter how hard you squint. No matter what sloppy linquistic liberties you want to take, there is just no way to make that statement true even in the most artistic and impressionistic way possible.
You can render a gui on a dot matrix printer if you wanted to, and that does not make "parallel port is a gui framework".
But aside from ripping apart the atrocious title... what about the actual idea?
There is no reason or advantage to delivering a gui via enhanced terminal graphics. It is not good engineering.
It's amusing, sure. But that's what it is, a silly thing that's fun to do just to see it done.
someterminals have some extra features that can be completely abused into rendering a gui, inefficiently, and unportably.
TTYs and vtxx terminals are so great because they are ubiquitous, but servers and clients that know kitty graphics are not.
Terminals are useful because they only use a tty, and all terminals since before they were even software or networked, all already support the same basic tty and terminal feature set. It's a standard that everything in the world already supports.
It's only useful as long as that's true. Once you do anything else, you are no longer within that standard and now you need a special server and a special client, and then you no longer have any advantage for doing it over ssh except that the firewall rules already allow the ssh port.
It's strictly worse to deliver a gui via terminal graphics than than just using RDP. There are more rdp server & client implimentations on more platforms than any enhanced terminal graphics capable terminals, and they can all be tunneled over ssh if you want.
That's totally disregarding X, NX, and RFB for different reasons in each case. They are also all better choices but they each also have some disadvantage. (X is inconvenient because although it has ui primitives & other desktop features it's client vs server is backwards from the way most people and firewall admins want to operate, and vnc & nx are inefficient because they are plain framebuffers however compressed and differential).
But rdp has actual ui primitives and other whole desktop features like channels for sound and peripherals. It's designed to actually do the job of delivering a ui.
And it's old as the hills and purpose-built and already implimented many times over everywhere on everything since decades ago. I had rdp clients on 160x240 palmos phones at least as far back as 2000-2005.
Kitty's graphics protocol isn't being "abused" to render graphics, that's kind of its entire use case, but I get your point.
I could make an ultra-complete, elegant client that uses RDP, or tunnel RDP over SSH as you said, but in practice I've found SSH with optimizations fast enough to practically use. The point was proving that it's actually accessible to a large number of people and surprisingly capable, not demonstrating that SSH is the perfect UI framework sent down from the heavens.
I treat the desktop like a "multiplexer-on-steroids" with a microVM and graphics built in behind the scenes to turbocharge it. I don't run my multiplexers on RDP.
Also, we're not making UI primitives from scratch, we have a custom Wayland compositor built upon Smithay, so any Wayland app works on SSH (XWayland is also automatically included, and WebKit has a custom implementation that bypasses display servers via DMABUFs).
Apparently there are some brain-damaged terminals (e.g. warp) that instead of using normal ssh launch some remote helper process that opens one worker thread per core that all wake up at the same time. Which is great fun on a 192 core shared systemm. Fortunately a cgroup task/cpu limit will neuter them and other abusive programs like vscode-server.
Terminal giving you a janky and limited remotely accessible canvas you can abuse to make primitive GUIs doesn't imply that "SSH is a GUI framework".
A lot better solution would be designing a compact, semantic, styling-independent remote access protocol that doesn't need bitmaps (unlike most currently available protocols), and uses good compression for actual pictures/videos. That would make any GUI efficiently usable remotely through an adapter for an existing GUI framework, without extra bloat the browser has.
So basically expanding on remote X11/X forwarding?
X forwarding is the complete opposite of that - it's non-semantic, doesn't abstract away styling, heavily relies on bitmaps, and generally a lot noisier than a terminal. It needs to be replaced with something better thought out for GUI remote access to be a viable alternative. Same goes for SPICE (as far as I remember how it works).
The X protocol is semantic[1] and when used as originally intended is very fast even on 1990s networks. But GUI toolkits ended up heavily relying on local rendering and shipping bitmaps over the wire, which is why Wayland advocates argued bitmaps are good enough.
It's kinda like the way PostScript evolved into early PDF which evolved into modern PDF, where pages are basically assemblies of prerendered images. The original, semantic aspects are still there, just not used, or rather abused to dumb it down.
[1] At least in the way you mean. Semantic like SVG, which is still literal, just abstract.
SVG is also semantic; you can write (and even read!) SVG in a text editor just fine. Not every SVG is semantic though; many of them are just a single <path>.
Yeah, my biggest pain with inkscape. Editing and saving a clear handwritten SVG there meant no more semantic SVG afterwards.
"you can write it in a text editor" is not the definition of "semantic", you can also write PPM bitmaps in a text editor
You can also write AVI videos, there's even a webcam package for emacs.
I remember running the original Citrix client for Windows over a 14k modem.
It worked remarkably well, the only real nut was the typical “splash page” on launch, which was typically a large bitmap. Those stalled pretty hard, but once you got past that and up and running, apps were quite smooth over the crummy bandwidth.
> It's kinda like the way PostScript evolved into early PDF which evolved into modern PDF, where pages are basically assemblies of prerendered images. The original, semantic aspects are still there, just not used, or rather abused to dumb it down.
that is definitely not the case for any sensible use case. PDF that's just bitmaps is a shitty hard to use one
The X protocol has some semantic drawing primitives, but modern applications rarely use them. Partly because they don't look very good, and partly because it is often easier to draw bitmaps, and the X primitives can't make use of the GPU.
I am pretty sure many primitives are hardware accelerated.
Modern GPUs don't do 2D acceleration, there isn't any hardware to map those primitives to. Layers such as Gallium map the old primitives onto software routines running on the GPU.
Some SoCs such as those from Rockchip and Allwinner do have 2D acceleration provided by their display controllers separate from the GPU but there isn't much software support for them.
I think you meant Glamor, which implements X11 acceleration through OpenGL, replacing hardware-specific DDX drivers; Gallium is the abstraction layer between Mesa drivers and graphics APIs. Don't confuse with Glamo, which was the Neo Freerunner's GPU and had its own DDX driver :)
Time to bring back https://en.wikipedia.org/wiki/Display_PostScript ?
I remember seeing a DPS terminal around 1988 or so. It was pretty.
Have you actually tried it? Most modern apps and frameworks render to bitmaps on the GPU and pass that over X11 but that isn't the only thing you can do with X11.
And nobody mentioned "semantic". Focus on "semantic" usually turns out to be ivory tower nonsense that impedes progress towards working systems, anyway.
I’ve not done X forwarding in decades but it definitely was semantic and abstracted styling back when i used it to connect to Solaris boxes over dial up.
Maybe the bitmap problem was an issue with modern DEs? Many of them were likely bitmap-heavy for window chrome anyway.
Modern toolkits are optimized for GL rendering and the shared memory extension. They produce beautiful effects and animations, and give the X server large bitmaps already in VRAM, much like a video player.
Toolkits like Athena back in the day dealt in terms of lines, rectangles, and text strings to be rendered locally, more like, say, HTML does.
The latter approach did work over dialup. The former struggles to be smooth even over 100mbps Ethernet.
You misspelled "useless" as "beautiful"
It still works fine over local lan
How about HTML/CSS/JS
HTML started somewhere between semantic and layout oriented; now it is more the latter. CSS is a powerful selector language but it selects... layouts.
JavaScript is a general-purpose language and does none, some or all of the above.
The web’s biggest problem IMO is that it has evolved in the direction of giving content providers more and more control over how that consumption is consumed. I miss the gopher days when content was 100% semantic and layout was 100% a client-side task.
What I would love to see is a semantic-only language that is textual (easy for a human being to type in a text editor) but more structured with extensible semantics. Instead of using | and - to “draw” tables, just express the data and leave it to the renderer to choose the best (or user-preferred) rendering.
Maybe I’ll mock one up.
Ed: spelling “not”—>”now”
What if - I know this is a tall order - instead of arguing about the layers a program should be divided into, we spend time making it easier to write your own program from scratch and then it won't matter if one of them sucks because you can replace it wholesale
It's fun though. I think this is a fun demo of forgotten/overlooked ssh capabilities.
It's worth trying. I have thought that you might be able to replace most TUIs, which rely on presentation-oriented ANSI, with a lightweight markup language that includes forms. [1] A form would be interactive while current and become part of a static log once submitted. I guess that's pretty much a block-oriented terminal? [2]
You could use a controlled subset of HTML. It naturally comes to mind. However, an implementor could then embrace, extend, and extinguish your protocol by allowing full HTML.
[1] A language like Markdown/djot or Creole, https://web.archive.org/web/20260000000000*/https://www.wiki....
[2] https://en.wikipedia.org/wiki/Computer_terminal#Block-orient...
I mean, one could argue that the web is just a remotely accessible hypertext protocol we've been increasingly abusing to make whatever arbitrary GUIs we want.
I've always wanted a styling-independent protocol, which led me to the Gemini protocol (not the AI) for one, although I find that all such "next-generation" protocols don't see much traction.
I picked SSH as a convenient option that people already use to log into VMs.
nit: CSS is the styling not the HTML :P
The problem is a web browser is exactly that use case. Their whole function is to remotely render a GUI.
We gripe about web design when people start to act more like it's local, but all the things a browser does are essentially "I need a remote GUI" and a lot of effort has gone into that.
They are not and the fact HTML/CSS is NOT designed to be "remote GUI" is precisely the problem web has.
It is document + styling format. It was not designed to do GUIs, It was roundpeg squareholed into being one, and only after throwing copious amount of JS on it it works okay while being okay on design side
"designed for" is always a red herring. The question should be, what does it actually do?
Well, it's surely not the most elegant thing ever, but it is so far above anything else in terms of being cross-platform, actually powerful and bandwidth efficient (if one wants it to be) that we should just accept the "costs".
Like you could write a full CAD app, online FPS shooter etc in it.
A terminal with an HTML/CSS embedding mode would be interesting.
In the BBS days, there were some attempts to move beyond ANSI escape sequences, like RIPscrip: https://en.wikipedia.org/wiki/Remote_Imaging_Protocol
Once the web took off, all that stuff disappeared...
Problem is the more flexible a contract/protocol/interface is for one side, the less flexible it is for the other.
For example a terminal supports flexible font (but only monospace!) and font size. If it was based on pixels those wouldn't be changeable. Conversely if it didn't have a character grid (like HTML doesn't) it could also support proportional fonts.
I made something like that a while ago: https://github.com/breuleux/terminus
I'm currently working on something far better that allows for true interactive widgets over SSH (that does already work), but in my quest for perfection I'm about to rewrite the protocol for the third time, so I don't know if I should share that :P
it is annoying how poorly web browsers support the local or ssh tunneled application use case though. it would be nice if there was a way to get browsers to work more like X servers, presenting an unix socket that applications (either local or ssh-tunneled) could connect to. Or something along those lines.
I've actually recently shipped something along these lines, now supported on all platforms. It's an SSH client fused with a browser: https://probablymarcus.com/blocks/2026/11/20/ssh-tunneling-h...
Basically wireguard + Apache httpd with cgi-bin or websockets?
the main difference between web UI and a terminal is that a terminal streams instructions. For HTML you usually need a whole program that compiles
Modern web is a terrible abuse of what was originally a document viewer. A web app is not even in the same league with a TUI when it comes to remote access. It needs to be designed specifically to stay as noiseless on the network as a TUI app is by default, and the browser is incredibly janky and bloated, which is not avoidable. Don't worry though, modern TUIs are headed towards the same direction, because people want more and more features in a legacy thing instead of designing one for the purpose.
I can compose a text with barely any network and then press send and it will eventually go through.
I literally have to find stuff like herdr web ui or whole mobile applications to write a longer text (e.g. a prompt) when I'm on patchy networks because the variable latency after each keypress makes it impossible to write on an SSH TUI. So if anything, it's the latter that is a "terrible abuse" of a GUI.
how does hyper gui transfer protocol sound? :)
How it sounds depends on how you pronounce GUI--do juniors say "gooey," or has that passed away with "sequel" and "clee"?
Don't tell me, the correct pronunciation is actually jooey?
printf "\007";
That better solution is known as plain HTML over HTTPS. The user can write their own styles. The user can prohibit <img>s or selectively allow them.
But yeah the author is probably deliberately conflating between the Terminal which renders and the SSH protocol which just transports streams securely. It makes the title more enticing.
html is ass for actual interactive UIs
The large amount of effort needed for good interactive UIs in the terminal is comparable to that as a webapp.
I'd propose we define some kind of hypertext markup language. Probably allowing the app send some default cascading style sheets would not be bad, but we should be able to apply our custom ones over it. Then we find a way to represent our state transfers between the client and server.
It exists. It's called HTTP and HTML.
If you do this, however, you quickly figure out that you're wasting bandwidth and the user's time by forcing a round trip to a far-off server on every button click (hence Javascript), and that the UI looks inconsistent in different browsers (hence CSS), and then, a few years later, you get the status quo.
And then you've reinvented native apps but worse.
The point of design or abstraction is basically to pick out specific interesting points on a multidimensional spectrum. You can't cover a large swath of the spectrum and still have a good design.
Classic HTML forms were an interesting point. They are not the most efficient solution to every problem, but they have known properties which allows more to be said about then (for instance no code execution on the client, and you can "save as" and print). Fully native apps are another. There's very little that can be guaranteed about a native app but it has access to more ways to do things efficiently. By pulling HTML towards native apps, it becomes a jack of both trades, master of none. You can't guarantee many properties about an HTML page and more, you usually can't print one and definitely can't save-as, but it also can't be as efficient as a native app.
Ultimately there's so little actual programming going on now it's automated with AI that larping is filling the time.
>Terminal giving you a janky and limited remotely accessible canvas you can abuse to make primitive GUIs doesn't imply that "SSH is a GUI framework".
Sure it does.
>A lot better solution would be designing a compact, semantic, styling-independent remote access protocol
Sure. But something being a better <thing> doesn't mean something less good is not <thing>.
Well, for one SSH != terminal, and a framework is supposed to be a lot more than just a canvas...
yknow that sounds a lot like "the web"
So something like FreeRDP?
I remember my college used to serve some student services app via Telnet
You would just telnet into a machine using your student login/pass, and it would run either a welcoming screen or a specific app (like one for scheduling classes)
It was a very mature application and worked really well. Alas, it was quickly replaced by web versions of the apps, which took another flew years to get properly working
Anyway, glad to see an example of what’s possible (and almost forgotten), in terms of providing access to applications online via the terminal (and without a browser)
I remember back in the mid 90's, I was a young high school student taking a c programming class (in rural alabama, no less!). We used a borland ide / compiler, and I was irritated that I couldn't code at home.
I was reading a forum online, and someone mentioned that the university of Colorado offered free shell accounts, and they had compilers!
Well, it was a bit different than borland, but I was really happy to be able to code after school, at home. I kept bugging the UC admin to install x, y or z software and he finally said 'hey, kid, there's this thing called linux, you can put it on your home computer'
So of course I formatted my parents home computer (they were...not amused), but I loved the whole ecosystem. I had access to tons of code to learn from. It was awesome.
That was really my start into being a software developer, and all because some admin at a university was kind enough to allow the general public to use their servers.
> So of course I formatted my parents home computer (they were...not amused)
That made me chuckle. I also formatted my family’s home computer (after I trashed the partitions trying to resize the disk to be able to do double boot between windows and Linux, using a random distro that came with a book I bought on Amazon). They were also not happy about it
In a nasty fit of nostalgia for those days, I made a hobby project using shell accounts as a social network sort of thing, It is a service nobody needs, or wants, in our modern age. But I thought it would be fun. ssh to applicant@register.public.outband.net to try it out.
It is not a great environment. it runs on an old router on my closet, ip6 only, openbsd vm on a openbsd host, but stop by and say hi if you have nothing better to do. https://www.public.outband.net gives a little more info
Several years before that they probably did the exact same thing but with direct dial-in replacing telnet.
back in the days, we had a usual meeting every friday to eat white sausages. Its a thing to do so here in bavaria.
I entered internship at that company back then and all participants would connect the mainframe via telnet to place their orders on how much they want to eat. It was a terminal driven UI .. Right at 11:00 it was not accessible anymore and the orders were printed. A person would then go and place the order on a nearby butcher and retrieve it, prepare the meal and everyone was happy.
I had to replace it with a (back then) hacky php site, which is still in use, as of today, nearly 26 years later.
lol
I remember those days, and getting mail by telnet. I wonder what would happen if you asked college kids to ssh in to a server today instead of giving them a web interface. I think it could be a big plus for them to see some sort of computing that isn't packaged the same way as everything else, namely as a web page.
We can also imagine other channels, such as email bots, IRC bots, Facebook bots or HN bots.
For TUIs, I wish a 5250-style block based terminal had won over VT100 stream based terminals.
For those not familiar, with a block oriented terminal, the native "chunk" of data is an entire screen. So you can put information in there like "this is a text box". This allows, for example, you to move around the screen with tab and type _with no round trip back to the server_. There's 0 latency. Data is only sent when you hit enter.
On high latency or flaky connections the experience is a million times better.
DEC terminals did have block support! Almost nobody used them on unix afaik, but I saw a lot of VMS stuff that used a combination of the "protected" SGR, the local-editing mode, "media copy to host", and hotkey programming to produce a really similar experience to IBM.
I think xterm just doesn't support some of this stuff because it was easier than fixing write/ptys.
One day I'll actually get my hands on a real terminal!
You should visit Vintage Computer Festival (VCF) events across the US. I bumped into a working DEC terminal on my every visit. Some let you use it too.
Your comment made me realize my idea in this thread (https://news.ycombinator.com/item?id=50650758) was a block-oriented terminal, something I have read about but not used. One could borrow from that parallel lineage; for example, implement an RFC 4777 server that provides an administrative interface for Linux.
What if...
https://datatracker.ietf.org/doc/draft-michel-ssh3/ https://datatracker.ietf.org/doc/draft-michel-remote-termina...
I like it.
> Next, we optimize graphics by sending a sort of "grid" of pixels. Each cell has its own updates, where the previous frame is compared to the current frame to catch and send updates, avoiding having to constantly stream the full screen.
mosh does this too, with the caveat that it's not transparent to terminal escapes. for instance, if you try to run some modernish "tui framework" remotely over mosh, things like clipboard access won't work at all, because mosh just cares about how the terminal should look.
there are workarounds to smuggle the OSC sequences in other places, so you can get all escape sequences through. I usually have a process tree that looks something like this
and escape sequences work just fine from inside the nested local screen session, the screen-mosh-screen connected to somehost, and the screen-mosh-herdr on otherhost.> The Kitty terminal uniquely supports a file upload feature
If anything, Kitty was late to the party here. Being able to upload (and download!) files has been a fairly common feature in terminals since at least the 80s. Windows 95 even had a terminal that could do this (badly) included right there on the CD.
Kitty's file upload feature is pretty terrible too, because afaik there's no way to ask the user to supply a file except by begging them to switch to another program and drop a file on it. It's really the only thing stopping me from using it.
Kermit is from like 1981 and had a better file upload experience; literally every terminal I used from the 1990s supported zmodem receive except iTerm2 which can use one with a filter, but has a decent file transfer experience built-in that I didn't mind adding detection/support for.
I did a fun experiment, taking what I could do over SSH to the max, by creating a silly game world, raytracing it, adding physics etc.
Try it out with
ssh -C w.oddur.me
(the -C enabled compression )
I still would not say that ssh is a good game rendering framework though :D
I thought that this would be about x11 forwarding but this is also pretty cool
Thanks :)
I do really like x11 forwarding, but unless you're on Linux, you'd need to download an X server, so I thought this would be interesting as something anyone could try from almost any machine.
Me too - my initial thought was "Ooh, did someone just discover the -X flag?"
But nope, now I'm feeling old again.
You can also navigate your spaceship through the ssh :) ssh -p 2222 player@play.librecosmos.com
more details: https://librecosmos.com/
I recently went down this rabbit hole (Kitty as streaming remote screen transport) but in the context of an IBM PC emulator[^1]. I think of it mostly as a gimmick, but I am impressed with the author's optimization work (text overlays, partial updates). In my case I found indexed PNGs to be a good way to reduce bytes across the wire, even trouncing zlib transport (I only needed 16 colors because CGA, so 4-bit indexed color was enough). Perhaps if enough people care about streaming graphics over Kitty it can be made into a more optimized thing :)
[^1]: https://news.ycombinator.com/item?id=50536648
Very cool project! I got absorbed in NetHack for a bit haha. I'm really excited for a time where SSH-based frameworks make it increasingly doable to build hosted "applets" like this.
Indexed PNGs are really clever for DOS, cool optimization :) I'm intrigued by whether it's possible to create a set of optimized Kitty graphics adapters as a library, that would open the door for a lot more people to build graphical SSH apps.
And thanks, flattered that you found my optimization work impressive. A lot of it was necessary to get a smooth enough experience over SSH for VMs when rendering a full GUI.
Once you start putting in the GUI features, you're competing with VNC and Sunshine/Moonlight.
The title is clickbait. There are no GUI features in ssh.
Extending a terminal protocol to include advanced graphics makes it compete directly with X, Wayland, VNC, Moonlight, etc. Even if it's not technically part of SSH itself.
Yes, and running interactive, mouse-aware, full-screen terminal interfaces over a remote connection on unix and linux has been standard practice for decades. So literally nothing new here.
the biggest thing holding back further deployment of ssh is the lack of support for virtual hosts
Before we start abusing the terminal protocols for GUIs, I believe that we need some kind of protocol to allow text selection and copy/paste between blocks of text, so that we don't need tools that trim whitespace that was copied from the terminal[0].
There's some prior work like how the OSC-8 hyperlink id param[1], and a specification to tackle the issue[2].
I'm hoping that the Superlogical folks[3] can actually do this, in libghostty and Rex.
But also in tangent, I also do think that abusing the terminal protocol to do GUI stuff is kind of a worse-is-better type of situation, we specifically have a protocol (Wayland, Quartz, and so on) to do this stuff, and I'm hoping that we can decide to actually do something similar for the remote GUI situation. I believe that the Superlogical folks have plans to do this with Rex[4].
I believe that the remote-GUI situation has to be resolved, I've been talking about this multiple times. I thought that the web stack (HTML/CSS/JS) would be the answer to adoption[5], but hopefully we can get a full-fledged solution that is compatible with the previously existing GUI apps as well.
> - TUIs are not inherently superior to GUIs
> - SSH, as a transport layer, should support not just forwarding a pty (as a TUI display layer), but a GUI display layer as well
> In fact, these two arguments were already realized by UNIX 30 years ago, and we already have one solution: the X protocol and ssh -X.
> Unfortunately, X did not win out. We did not get the promised future where one can ssh -X into a remote machine, run gnome-control-center, and a settings window pops up and I can configure my remote computer. (If you believe that this works, try it out yourself. It is an abysmal experience.)
> However the above needs still needed to be satisfied by so much people, and apps that needed it started to be developed as web servers, stuff like jupyter notebooks. It turns out that the web’s document format coupled with a styling solution and a client-side scripting language, with all of its warts and drawbacks, became a viable solution as a display layer for interactive apps. In fact, since it started from remote documents, network transparency is built-in.
> It would be dumb to not realize that the HTML/CSS/JS stack did win a dominant position for desktop apps, with all of the Electron apps, and utilize the web as a display layer for the above. I see the project in a similar vein, i.e. utilizing HTML/CSS/JS to provide a display layer for remote apps via SSH.
> Also note that Electron apps has the same split with X, where the display server and the client are separated: it's called the "renderer process" and the "main process", and the two processes talk via IPC (where the display server would be the renderer process running embedded Chromium, the display client would be the Electron main process, and the stuff that the client sends to the server would be the contents of the renderer JS bundle). I think, theoretically, it would be possible to run the main process separated from the renderer process on a different machine, with an appropriate IPC transport. I think this would be not far from the above idea?
[0]: https://tools.simonwillison.net/cleanup-claude-code-paste
[1]: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3c...
[2]: https://gitlab.freedesktop.org/terminal-wg/specifications
[3]: http://superlogical.com/
[4]: https://www.superlogical.com/rex/
[5]: https://news.ycombinator.com/item?id=48728766
"Worse-is-better" is really perceptive. Using SSH as a GUI is admittedly a dirty solution, but I find it practical. See, if I tried to build a cross-platform app supporting X11, Wayland, Windows, and macOS, then I'd really be making a GUI framework, and if I tried to abstract all of those universally, well, I'd still be making a GUI framework. Thus the case for SSH presents itself.
That said, current terminals definitely have rough edges. Being somewhat "dumb" clients keeps the attack surface smaller, but it's also quite limiting. To address this (while keeping standard terminals working), I've been working internally on a prototype terminal client to hopefully get things smoother, which I'll share updates when it's ready, along with any open-source projects that come out of the infrastructure it needs.
I heard of Superlogical whilst initially working on Zydra, though I somehow missed the release of Rex, it's definitely something I'll have to look into.
Thanks for such a thoughtful comment.
It's a fun experiment but I would never do this. You lose all the magic of "just ssh hostname" when you only work properly with a few terminal emulators. Rolling your own terminal emulator is an extra step in the wrong direction.
On the flip side, cross-platform GUI frameworks already exist. HTML+CSS are really great, with everything you need and more built-in already, and none of the jank running in a 1970s-based terminal brings. If you want reduced attack surface I would say it makes more sense building (or forking) a browser engine with just the features you need, keeping compatibility with other browsers so nobody is forced to use yours.
Kitty is only the first-class option; Sixel and iTerm2 are available, and even in text-only terminals (or a TTY), we stream the entire GUI as ASCII (like a TUI), and you still get the other features. "Just ssh hostname" remains.
And we actually do have a webapp too, and it's alright, but I prefer SSH. To me, the project is more of a "multiplexer-on-steroids" with a built-in microVM to hold its apps and graphics, rather than a simple remote desktop. You wouldn't run a multiplexer over the browser just because it technically has everything built-in.
In the case of VNC/other protocols, there is an asymmetry: if you embed text in VNC, it still has to be streamed as graphics, whereas if you embed graphics in SSH, you can still stream text as actual text.
Fun fact: Our webapp does stream many elements as HTML (including even Wayland apps) rather than just streaming them using a codec.
How about just a website you serve over wireguard? Can even be turned into a tui with w3m
My goto thing for gui is HTA application + ssh x11 forwarding still now i use it
I don't think this makes any sense, as ssh isn't suited for this use-case.
It also doesn't make much sense to bring all the security problems that exists in web browsers into a terminal delivered via SSH because you want to render special escape codes such as kitty or even sixel that make it possible to achieve remote code execution in someone's terminal. [0]
Absolutely no thanks.
[0] https://ii4gsp.github.io/iterm2-rce/
That's a fair concern. Any escape-sequence parser can have unknown vulnerabilities, and terminals don't have browser-grade sandboxing. Still, it's quite a different, much smaller attack surface than a browser downloading and running untrusted client-side code (JS, WASM), and a much easier one to harden over time.
eeh using sixel or other sub-character graphics to render a GUI isn't really a feature of ssh. It's just a terminal feature, you could do it with telnet.
also related: i created a tool to show ROS topics over a terminal, intended for people debugging robots over ssh: https://github.com/dheera/rosshow
For better compatibility I used Braille characters to render a 2x4 grid per character, not sixel.
Braille is really interesting as something more universal. Cool project.
It's true, SSH is just the tool of choice to move bytes around, and it's up to your terminal emulator and the server to decide what those bytes mean. In practice, SSH gives you encryption, key auth, and a way past restrictive firewalls (we listen on port 443 for this exact reason).
makes me wonder: if a tool can do almost everything then doesn't that mean its attack surface is also unnecessarily large?
it's a transport
> SSH is a GUI framework
By that logic, TLS is a web browser.
I was originally going to quip that by the articles logic, VNC should be a GUI framework too, but it is actually mentioned in the article. However, the text under the headline goes weirdly off the rails talking about webkit, WASM and WebGPU.
You could switch to telnet and everything in this article would still work.
Yes, the authors TUI program would also work just as well over RS232.
Because those are transports, the terminal [emulator] at the end, responsible for interpreting what the TUI program on the other end outputs (and vice-versa), are separate things. They live at different places in the OSI stack.
an encrypted network pipe is a gui framework?
It's fun but I don't want any of that in my ssh nor my terminal. I want my terminal to display characters, my ssh connection to be secure, and the whole thing to have as small an attack surface as possible.
What could possibly go wrong with having the client decoding pixels and having to handle VRAM?
Really doesn't seem like it would have great accessibility, but I suppose that ship has sailed with the proliferation of TUIs.
It doesn't. What's good about SSH is that it doesn't do any interpreting of the bytes sent on its own, so we're free to build our own protocols for accessibility over time, and it'll be part of the evolution of Zydra depending on how far it goes. We only have reduced motion for now on SSH, unfortunately, though our webapp streaming elements as HTML helps on that front too.
as if CLIs were designed for general accessibility
I think they are? They (mostly) output a stream of text where the order of the text matches the structure of the underlying information.
TUIs with their box-drawing characters and emulated 2-d layouts, on the other hand, are not. I think Claude Code really set a bad example here that got everyone interested in making TUIs again.
They are. Text based interfaces are the easiest to transform into other media - accessible and pretty aren't the same thing.
ok so wayvnc already gets told by the compositor which parts of the screen changed. being able to select the terminal text is cool. did i miss the bandwidth and input lag numbers for the same workload at the same image quality or did we just skip straight to “beats vnc”?
I'm not necessarily saying SSH wins on a raw codec benchmark against wayvnc (I'd be glad to test it though, and I am working on a faster native client).
It's that the whole workflow has been built around SSH. I haven't just bolted a VM's "display_1920x1080" onto a Kitty stream and called it a day. Here I have a microVM that in and of itself renders natively to SSH, bringing with that SSH's key auth, and a universal client you can run on any terminal (with a text-only fallback).
Put simply, I don't enjoy remotely streaming a clunky desktop display, even if it's technically "fast". SSH feels at home, and that's why I built desktop VM infra on it natively.
I'll try to pick apart this paragraph in specific:
> While webapps have advantages, especially in client-side state, WASM, and WebGPU, they don't really capture the universality and ease-of-use of an SSH session. SSH keys double as authentication, and -A allows you to SSH into servers from within a remote microVM itself. Webapps also can't be accessed from a pure TTY.
> SSH keys double as authentication
Which is true! They are also typically associated with more than one service so rotation is a lot more painful.
> and -A allows you to SSH into servers from within a remote microVM itself
You can, indeed, also run a proxy on a remote VM and then access a web application via that VM! I don't think there's a practical distinction here.
> Webapps also can't be accessed from a pure TTY.
...And which tty would be able to render those special escape sequences without going through a terminal emulator?
I'll stay on the web.
Come on man. No, ssh is not a gui framework. No matter how hard you squint. No matter what sloppy linquistic liberties you want to take, there is just no way to make that statement true even in the most artistic and impressionistic way possible.
You can render a gui on a dot matrix printer if you wanted to, and that does not make "parallel port is a gui framework".
But aside from ripping apart the atrocious title... what about the actual idea?
There is no reason or advantage to delivering a gui via enhanced terminal graphics. It is not good engineering.
It's amusing, sure. But that's what it is, a silly thing that's fun to do just to see it done.
some terminals have some extra features that can be completely abused into rendering a gui, inefficiently, and unportably.
TTYs and vtxx terminals are so great because they are ubiquitous, but servers and clients that know kitty graphics are not.
Terminals are useful because they only use a tty, and all terminals since before they were even software or networked, all already support the same basic tty and terminal feature set. It's a standard that everything in the world already supports.
It's only useful as long as that's true. Once you do anything else, you are no longer within that standard and now you need a special server and a special client, and then you no longer have any advantage for doing it over ssh except that the firewall rules already allow the ssh port.
It's strictly worse to deliver a gui via terminal graphics than than just using RDP. There are more rdp server & client implimentations on more platforms than any enhanced terminal graphics capable terminals, and they can all be tunneled over ssh if you want.
That's totally disregarding X, NX, and RFB for different reasons in each case. They are also all better choices but they each also have some disadvantage. (X is inconvenient because although it has ui primitives & other desktop features it's client vs server is backwards from the way most people and firewall admins want to operate, and vnc & nx are inefficient because they are plain framebuffers however compressed and differential).
But rdp has actual ui primitives and other whole desktop features like channels for sound and peripherals. It's designed to actually do the job of delivering a ui.
And it's old as the hills and purpose-built and already implimented many times over everywhere on everything since decades ago. I had rdp clients on 160x240 palmos phones at least as far back as 2000-2005.
This is a fun stunt but purely silly.
Kitty's graphics protocol isn't being "abused" to render graphics, that's kind of its entire use case, but I get your point.
I could make an ultra-complete, elegant client that uses RDP, or tunnel RDP over SSH as you said, but in practice I've found SSH with optimizations fast enough to practically use. The point was proving that it's actually accessible to a large number of people and surprisingly capable, not demonstrating that SSH is the perfect UI framework sent down from the heavens.
I treat the desktop like a "multiplexer-on-steroids" with a microVM and graphics built in behind the scenes to turbocharge it. I don't run my multiplexers on RDP.
Also, we're not making UI primitives from scratch, we have a custom Wayland compositor built upon Smithay, so any Wayland app works on SSH (XWayland is also automatically included, and WebKit has a custom implementation that bypasses display servers via DMABUFs).
I think the concern here is that nothing you are doing relies on SSH at all. You are using TUI techniques that have been around for ages.
Did you make every word in the title misleading on purpose?
This is not a GUI framework, and welcome to the 1980's with telnet and rlogin.
The only difference is the encryption mechanisms, and the whole pain with certificate management.
Apparently there are some brain-damaged terminals (e.g. warp) that instead of using normal ssh launch some remote helper process that opens one worker thread per core that all wake up at the same time. Which is great fun on a 192 core shared systemm. Fortunately a cgroup task/cpu limit will neuter them and other abusive programs like vscode-server.
uhm...no it isn't?
This is entirely nonsense.
is bash a GUI framework too?