Add a display server and graphical user interface #38

Merged
apio merged 103 commits from display-server into main 2023-09-20 18:49:21 +00:00
Showing only changes of commit 06f3affc71 - Show all commits

View File

@ -74,6 +74,12 @@ Result<int> luna_main(int argc, char** argv)
return 1;
}
if (!isatty(STDIN_FILENO))
{
os::eprintln("error: wind must be run from a TTY!");
return 1;
}
auto mouse = TRY(os::File::open("/dev/mouse", os::File::ReadOnly));
mouse->set_buffer(os::File::NotBuffered);
mouse->set_close_on_exec();