void Terminal::putChar(char c) { if(c == '\n') newLine(); else if(c == '\b') putEntryAt(' ', _profile, --_column, _row); else if(c == '\t') putString(" "); else if(c != '\0') { putEntryAt(c, _profile, _column++, _row); if(_column == vga::width) newLine(); } if(!_writing) moveCursor(_column, _row); }
void ConsoleVGA::write(const char c) noexcept { static const char NEWLINE {'\n'}; if (c == NEWLINE) { newline(); } else { putEntryAt(c, this->color, this->column, this->row); increment(1); } }
void Terminal::putChar(char c) { if (c == '\n') { newline(); return; } putEntryAt(c, color, column, row); if (++column == VGA_WIDTH) { newline(); } moveCursor(); }