Example #1
0
void Screen::draw(Terminal &terminal)
{
    terminal.clear();
    for(uint16_t y = 0; y < m_height; y++)
    {
        for(uint16_t x = 0; x < m_width; x++)
        {
            terminal.pushColor(m_color[y*m_width + x]);
            std::cout << m_data[y*m_width + x];
            terminal.popColor();
        }
        std::cout << "\n";
    }
    std::cout << std::flush;
}