Exemple #1
0
static void * kosh_thread(void *p) {
	conio_printf("  **** KOSH, The KallistiOS Shell ****\n");
	kosh_chdir("/");
	while (kosh_exit == KE_NO)
		input_oneloop();
	conio_printf("Kosh is done\n");
	kosh_exit = KE_QUITTING;

	return NULL;
}
Exemple #2
0
/* get all our abi's and then start our main loop */
int main(int argc, char **argv) {
    pvr_init_defaults();

    printf("kosh starting\n");

    /* initalize the conio service */
    //conio_init(CONIO_TTY_PVR, CONIO_INPUT_LINE);
    conio_init(CONIO_TTY_SERIAL, CONIO_INPUT_LINE);

    conio_printf("   **** KOSH v1.4, The KallistiOS Shell ****\n");

    /* change directory to the default */
    chdir("/");

    /* this is the meat */
    while (!kosh_exit)
        input_oneloop();

    /* shutdown console i/o */
    conio_shutdown();

    printf("kosh is done\n");
    return 0;
}