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