src/app/esp8266/consoleio.c
void lua_handle_input(int force)
{
    cell *up = last_up;
    cell this_key;

    switch (input_wait) {
        case NONE:
            break;
        case KEYWAIT:
            if (uart_getc(&the_key)) {
                input_wait = NONE;
                spush((cell)the_key, up);
                inner_interpreter(up);
            }
            break;
        case ACCEPTWAIT:
            do {
                if ((this_key = grabkey()) < 0) {
                    return;
                }
            } while (lineedit_step(this_key, up) == 0);

            input_wait = NONE;
            spush(lineedit_finish(up), up);
            inner_interpreter(up);
            break;
    }
}
// Defines input handler for nodemcu-firmware
Defines input handler for nodemcu-firmware
Defines input handler for nodemcu - firmware
void lua_handle_input(int force)
{
    cell *up = last_up;
    cell this_key;
    switch (input_wait) {
        case NONE:
            break;
        case KEYWAIT:
            if (uart_getc(&the_key)) {
                input_wait = NONE;
                spush((cell)the_key, up);
                inner_interpreter(up);
            }
            break;
        case ACCEPTWAIT:
            do {
                if ((this_key = grabkey()) < 0) {
                    return;
                }
            } while (lineedit_step(this_key, up) == 0);
            input_wait = NONE;
            spush(lineedit_finish(up), up);
            inner_interpreter(up);
            break;
    }
}
void lua_handle_input ( int force ) { cell * up = last_up ; cell this_key ; switch ( input_wait ) { case NONE : break ; case KEYWAIT : if ( uart_getc ( & the_key ) ) { input_wait = NONE ; spush ( ( cell ) the_key , up ) ; inner_interpreter ( up ) ; } break ; case ACCEPTWAIT : do { if ( ( this_key = grabkey ( ) ) < 0 ) { return ; } } while ( lineedit_step ( this_key , up ) == 0 ) ; input_wait = NONE ; spush ( lineedit_finish ( up ) , up ) ; inner_interpreter ( up ) ; break ; } }
Defines input handler for nodemcu-firmware
Defines input handler for nodemcu - firmware