Better speculative local echo/editing. Also outputs debugging/timing info

This commit is contained in:
Keith Winstein
2011-12-14 03:56:28 -05:00
parent 048485f363
commit 09905fbd07
11 changed files with 556 additions and 400 deletions
+16
View File
@@ -406,3 +406,19 @@ void Row::reset( int background_color )
i->reset( background_color );
}
}
void Framebuffer::prefix_window_title( const std::deque<wchar_t> &s )
{
for ( auto i = s.rbegin(); i != s.rend(); i++ ) {
window_title.push_front( *i );
}
}
wchar_t Cell::debug_contents( void ) const
{
if ( contents.empty() ) {
return '_';
} else {
return contents.front();
}
}