Hacker News new | past | comments | ask | show | jobs | submit login

I've already asked the question, but is there a way to embed this in a regular app ? I mean, if I want to have a "retro" like GUI but I don't want to bother my users with opening a terminal/console, can I embed this ?

The thing I'm thinking about would be to extract the alacritty render code and make it a library... But that's sure not easy to do...




IMHO I would pop a web view and load an HTML page with tui.css. It's seriously impressive looking and much easier to integrate in a modern gui system, electron app, etc.: https://github.com/vinibiavatti1/TuiCss


Or you could make a launcher for your app that (attempts to) determine whether it needs to launch a terminal and does the right thing. Something like

  my-beautiful-console-app
  ========================
  #! /bin/bash

  if tty -s; then
    exec my-beautiful-console-app-for-realz "$@"
  else
    exec xterm -e my-beautiful-console-app-for-realz "$@"
  fi
might be a start.


You can use the vte library to embed a terminal in a GTK+ program. QEMU does it for example.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: