Beispiel #1
0
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);
}
Beispiel #2
0
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);
  }
}
Beispiel #3
0
void Terminal::putChar(char c)
{
	if (c == '\n')
	{
		newline();
		return;
	}

	putEntryAt(c, color, column, row);
	if (++column == VGA_WIDTH)
	{
		newline();
	}
	
	moveCursor();
}