Vhex-kernel/src/user/main.c

39 lines
567 B
C
Raw Normal View History

//#include <lib/stdio.h>
//#include <lib/display.h>
//#include <kernel/tty.h>
/*int main(void)
{
char *line;
// Open TTY and display entry message
tty_open();
tty_write("Welcome to Vhex !\n");
// UBC test !
// Main loop
while (1)
{
// Write input indications.
// TODO: write current working directory ?
tty_write(">");
// Get each line writen by the user.
nbread = getline(&line, &size, 0);
if (nbread == EOF)
{
// TODO: check jobs ?
break;
}
// TODO: do some job.
}
// Close TTY and return.
tty_close();
return (0);
}*/