4 ms·
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
by wiz21c 5y ago
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...
- qbasic_forever 5y agoIMHO 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 https://github.com/vinibiavatti1/TuiCss
- bonzini 5y agoYou can use the vte library to embed a terminal in a GTK+ program. QEMU does it for example.
- kmstout 5y agoOr 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.