src/shell/terminal.c
//Saves terminal line into suplied buffer
Saves terminal line into suplied buffer
Saves terminal line into suplied buffer
char* terminal_getline(size_t line, char* buf)
{
    for(size_t x = 0; x < VGA_WIDTH; x++)
    {
        buf[x] = terminal_getcharat(x, line);
    }
    buf[VGA_WIDTH] = '\0';
    return &buf[0];
}
char * terminal_getline ( size_t line , char * buf ) { for ( size_t x = 0 ; x < VGA_WIDTH ; x ++ ) { buf [ x ] = terminal_getcharat ( x , line ) ; } buf [ VGA_WIDTH ] = ' \0 ' ; return & buf [ 0 ] ; }
Saves terminal line into suplied buffer
Saves terminal line into suplied buffer