~ubuntu-branches/ubuntu/maverick/mosh/maverick-backports

« back to all changes in this revision

Viewing changes to src/statesync/completeterminal.cc

  • Committer: Package Import Robot
  • Author(s): Keith Winstein
  • Date: 2012-03-12 04:51:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120312045143-0pib9hs84wiauznl
Tags: 1.0-1
* Version 1.0 released.

* mosh now supports --version option and prints no-warranty message.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include <boost/lambda/lambda.hpp>
21
21
 
22
22
#include "completeterminal.h"
 
23
#include "fatal_assert.h"
23
24
 
24
25
#include "hostinput.pb.h"
25
26
 
74
75
      new_res->MutableExtension( resize )->set_height( terminal.get_fb().ds.get_height() );
75
76
    }
76
77
    Instruction *new_inst = output.add_instruction();
77
 
    new_inst->MutableExtension( hostbytes )->set_hoststring( Terminal::Display::new_frame( true, existing.get_fb(), terminal.get_fb() ) );
 
78
    new_inst->MutableExtension( hostbytes )->set_hoststring( display.new_frame( true, existing.get_fb(), terminal.get_fb() ) );
78
79
  }
79
80
  
80
81
  return output.SerializeAsString();
83
84
void Complete::apply_string( string diff )
84
85
{
85
86
  HostBuffers::HostMessage input;
86
 
  assert( input.ParseFromString( diff ) );
 
87
  fatal_assert( input.ParseFromString( diff ) );
87
88
 
88
89
  for ( int i = 0; i < input.instruction_size(); i++ ) {
89
90
    if ( input.instruction( i ).HasExtension( hostbytes ) ) {