#include "TerminalWidget.h" #include #include #include Result luna_main(int argc, char** argv) { ui::App app; TRY(app.init(argc, argv)); auto* window = TRY(ui::Window::create(ui::Rect { 150, 150, 640, 400 })); app.set_main_window(window); window->set_title("Terminal"); TerminalWidget terminal; window->set_main_widget(terminal); char* args[] = { "/bin/sh", nullptr }; TRY(terminal.init(args)); window->draw(); return app.run(); }