<- Back
Comments (101)
- orbital-decayTerminal 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.
- nicoI remember my college used to serve some student services app via TelnetYou 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 workingAnyway, 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)
- xxporFor 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.
- Sha1rholder
- philsnow> 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 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.
- oddurmagnussonI 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 withssh -C w.oddur.me(the -C enabled compression )I still would not say that ssh is a good game rendering framework though :D
- davidgnz> The Kitty terminal uniquely supports a file upload featureIf 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.
- zchiraYou can also navigate your spaceship through the ssh :) ssh -p 2222 player@play.librecosmos.commore details: https://librecosmos.com/
- alex7oI thought that this would be about x11 forwarding but this is also pretty cool
- nektrothe biggest thing holding back further deployment of ssh is the lack of support for virtual hosts
- keitoI 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
- G_o_DMy goto thing for gui is HTA application + ssh x11 forwarding still now i use it
- DweditOnce you start putting in the GUI features, you're competing with VNC and Sunshine/Moonlight.
- goranmoominBefore 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
- rvzI 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/
- qurreneeh 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/rosshowFor better compatibility I used Braille characters to render a 2x4 grid per character, not sixel.
- ameliusmakes me wonder: if a tool can do almost everything then doesn't that mean its attack surface is also unnecessarily large?
- st_goliath> SSH is a GUI frameworkBy 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.
- alex_dufIt'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?
- lnxsxuok 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”?
- daylilyReally doesn't seem like it would have great accessibility, but I suppose that ship has sailed with the proliferation of TUIs.
- daylilyI'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 authenticationWhich 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 itselfYou 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.
- anonundefined
- pjmlpThis 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.
- cozzydApparently 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.
- Aqueousuhm...no it isn't?This is entirely nonsense.
- gjvcit's a transport
- Brian_K_WhiteCome 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.
- TZubiriis bash a GUI framework too?
- messh[dead]
- listinglens[flagged]
- arjunghose10[flagged]
- bzvox[dead]