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:
22
count.c
Normal file
22
count.c
Normal file
@ -0,0 +1,22 @@
|
||||
#include "types.h"
|
||||
#include "user.h"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
int countto = 1000;
|
||||
|
||||
for (int i = 1; i < argc; i++) {
|
||||
if (strcmp(argv[i], "-c") == 0) {
|
||||
countto = atoi(argv[i + 1]);
|
||||
}
|
||||
}
|
||||
|
||||
cls();
|
||||
printf(1, "Start Count\n");
|
||||
for (int i = 0; i < countto; i++)
|
||||
{
|
||||
printf(1, "%d\n", i);
|
||||
sleep(10);
|
||||
}
|
||||
printf(1, "Count Ended\n");
|
||||
exit();
|
||||
}
|
Reference in New Issue
Block a user