#include #include #include #include #include #include #include #include int main() { // make process be sigma (why did i think of this) if (setsid() < 0) { perror("setsid"); exit(1); } // >open /dev/tty1 // >look inside // >bits int fd = open("/dev/tty1", O_RDWR); if (fd == -1) { write(2, "Failed to open /dev/tty1\n", 26); exit(1); } // make tty1 be the displayed tty if (ioctl(fd, TIOCSCTTY, 0) < 0) { write(2, "ioctl TIOCSCTTY", 16); exit(1); } write(fd, "\e[2J\e[0;0Hwelcome to nyaOS - a distro made by an idiot with no C experience that still somehow works\n\n", 103); execve("/bin/shel", 0, 0); }