{"by":"mmulet","descendants":144,"id":45181535,"kids":[45200895,45202576,45207276,45187943,45204328,45201823,45205082,45211700,45199902,45207176,45213492,45213288,45200513,45201985,45205896,45204435,45202709,45200644,45209575,45210773,45220634,45246458,45201062,45200762,45206808,45187941,45201509,45200658,45199498,45201493,45200567,45199800,45201488,45201742,45199274,45201429,45204360,45205941,45208769,45203104,45200833,45200163,45209058,45205670,45203351,45202144,45206577,45200527,45199225,45201338,45204764,45206289,45201630,45202679,45202132,45208901,45200977,45200703,45199318,45181942,45206798,45199975,45181925,45200706],"score":1094,"text":"I made a built-from scratch Wayland Compositor to display any GUI app* in the terminal! I think there is a lot of unexplored potential in custom Wayland compositors, a lot of really cool things you can embed existing applications into! So, I started with embedding apps into the terminal because that is the easiest input&#x2F;output (output is just utf-8 and I use the great `chafa` library for that, and I just read from stdin for the input).<p>If you have any other ideas for cool Wayland compositors, let me know. I purposedly wrote 80% the app in Typescript to appeal to the most developers and attract cool contributions (I do all drawing with the familiar Canvas2D api, so if there is interest, I can also fork this out into a cool Terminal canvas, let me know!)<p>I have a blog post here about how I did it, but it’s pretty high level and non technical, so please ask if you have any questions.<p>[How I Did It](&lt;<a href=\"https:&#x2F;&#x2F;github.com&#x2F;mmulet&#x2F;term.everything&#x2F;blob&#x2F;main&#x2F;resources&#x2F;HowIDidIt.md\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;mmulet&#x2F;term.everything&#x2F;blob&#x2F;main&#x2F;resource...</a>&gt;)<p>*technically only Wayland apps and x11 apps with Xwayland. But on Linux that’s mostly everything.","time":1757423790,"title":"Show HN: Term.everything – Run any GUI app in the terminal","type":"story","url":"https://github.com/mmulet/term.everything"}