src/console.c
/***
 * output text and handle special characters
 */
output text and handle special characters
output text and handle special characters
void console_puts(const char *str) {
    int i;
    char cur;
    while ((cur = *str++) != NULL) {
        switch (cur) {
            case '\r': 
            case '\n': CALL_ON_ACTIVE(i, newline());    break;
            case '\t': CALL_ON_ACTIVE(i, putchar(' ')); break;
            default:   CALL_ON_ACTIVE(i, putchar(cur)); break;
        }
    }
}
void console_puts ( const char * str ) { int i ; char cur ; while ( ( cur = * str ++ ) != NULL ) { switch ( cur ) { case ' \r ' : case ' \n ' : CALL_ON_ACTIVE ( i , newline ( ) ) ; break ; case ' \t ' : CALL_ON_ACTIVE ( i , putchar ( ' ' ) ) ; break ; default : CALL_ON_ACTIVE ( i , putchar ( cur ) ) ; break ; } } }
output text and handle special characters
output text and handle special characters
// fall through to newline