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.
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.
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.
that is definitely not the case for any sensible use case. PDF that's just bitmaps is a shitty hard to use one
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 remember seeing a DPS terminal around 1988 or so. It was pretty.
And nobody mentioned "semantic". Focus on "semantic" usually turns out to be ivory tower nonsense that impedes progress towards working systems, anyway.
Maybe the bitmap problem was an issue with modern DEs? Many of them were likely bitmap-heavy for window chrome anyway.
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.
It still works fine over local lan
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”
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'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.
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.
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
Like you could write a full CAD app, online FPS shooter etc in it.
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...
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
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.
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.
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.
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>.
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 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.
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
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
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
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.
I think xterm just doesn't support some of this stuff because it was easier than fixing write/ptys.
https://datatracker.ietf.org/doc/draft-michel-ssh3/ https://datatracker.ietf.org/doc/draft-michel-remote-termina...
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
Ghostty
|- screen -e^Zz -S meta
|- screen -e^Oo -S workspace1
| |- zsh
| |- zsh
|- mosh somehost -- screen -e^Oo -S remotework1
|- mosh otherhost -- herdr
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.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.
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.
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 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.
But nope, now I'm feeling old again.
more details: https://librecosmos.com/
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.
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
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.
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.
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.
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.
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.
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).
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.
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.
What could possibly go wrong with having the client decoding pixels and having to handle VRAM?
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.
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.
> 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.
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.
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).
Did you make every word in the title misleading on purpose?
The only difference is the encryption mechanisms, and the whole pain with certificate management.
This is entirely nonsense.