1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:37:35 +00:00

tty: Port to LibMain

This commit is contained in:
Kenneth Myhra 2022-03-29 22:14:51 +02:00 committed by Brian Gianforcaro
parent cf154ec0d9
commit 1ee93e0fe7
2 changed files with 3 additions and 1 deletions

View file

@ -5,10 +5,11 @@
*/
#include <AK/Format.h>
#include <LibMain/Main.h>
#include <stdio.h>
#include <unistd.h>
int main(int, char**)
ErrorOr<int> serenity_main(Main::Arguments)
{
char* tty = ttyname(0);
if (!tty) {