Display error messages in top-line overlay.

This commit is contained in:
Keith Winstein
2011-09-30 16:13:43 -04:00
parent 56b4064686
commit 7068e26847
11 changed files with 420 additions and 30 deletions
+9 -4
View File
@@ -8,6 +8,7 @@
#include "completeterminal.hpp"
#include "networktransport.hpp"
#include "user.hpp"
#include "terminaloverlay.hpp"
class STMClient {
private:
@@ -20,7 +21,8 @@ private:
int winch_fd, shutdown_signal_fd;
struct winsize window_size;
Terminal::Complete *local_terminal;
Terminal::Framebuffer *local_framebuffer;
Overlay::OverlayManager overlays;
Network::Transport< Network::UserStream, Terminal::Complete > *network;
uint64_t last_remote_num;
@@ -29,13 +31,16 @@ private:
bool process_user_input( int fd );
bool process_resize( void );
void output_new_frame( void );
public:
STMClient( const char *s_ip, int s_port, const char *s_key )
: ip( s_ip ), port( s_port ), key( s_key ),
saved_termios(), raw_termios(),
winch_fd(), shutdown_signal_fd(),
window_size(),
local_terminal( NULL ),
local_framebuffer( NULL ),
overlays(),
network( NULL ),
last_remote_num( -1 )
{}
@@ -46,8 +51,8 @@ public:
~STMClient()
{
if ( local_terminal != NULL ) {
delete local_terminal;
if ( local_framebuffer != NULL ) {
delete local_framebuffer;
}
if ( network != NULL ) {