We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS Code would not accept this, but I thought I'll have a craic at it (Irish pun intended)
void clear_row(size_t row) { struct Char empty = (struct Char) { character: ' ', ; error here "character is undefined" color: color, }; for (size_t col = 0; col < NUM_COLS; col++) { buffer[col + NUM_COLS * row] = empty; } }
as a Pascal programmer I used the following construct
void clear_row( size_t row ) { struct Char empty = ( struct Char ) { empty.character = ' ', empty.color = color, }; for ( size_t col = 0; col < NUM_COLS; col++ ) { buffer[col + NUM_COLS * row] = empty; } }
and under print_char(char character)
void print_char(char character) { if (character == '\n') { print_newline(); return; } if (col > NUM_COLS) { print_newline(); } buffer[col + NUM_COLS * row] = (struct Char) { buffer[col + NUM_COLS * row].character = (uint8_t) character, buffer[col + NUM_COLS * row].color = color, }; col++; }
not sure if this is right but it works.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
VS Code would not accept this, but I thought I'll have a craic at it (Irish pun intended)
as a Pascal programmer I used the following construct
and under print_char(char character)
not sure if this is right but it works.
The text was updated successfully, but these errors were encountered: