Added the drawtitle function to console

Added ability to pick a bg preset for the title bar
Added counting program
Added function to set the current consoles title name
Removed some of the debug code
This commit is contained in:
iDunnoDev
2022-12-16 15:23:38 +00:00
committed by iDunnoDev
parent 924d90c066
commit c65c58a954
11 changed files with 284 additions and 52 deletions

3
sh.c
View File

@ -146,8 +146,7 @@ int getcmd(char *buf, int nbuf) {
int main(void) {
static char buf[100];
int fd;
printf(1, "SH PID: %d\n", getpid());
// Ensure that three file descriptors are open.
while ((fd = open("console", O_RDWR)) >= 0) {
if (fd >= 3) {