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

« back to all changes in this revision

Viewing changes to src/terminal/terminalframebuffer.h

  • Committer: Package Import Robot
  • Author(s): Keith Winstein
  • Date: 2012-03-22 18:40:59 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120322184059-fdhgtw2l7jupjq36
Tags: 1.1-1
Version 1.1 released

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    int background_color;
36
36
 
37
37
    Renditions( int s_background );
 
38
    void set_foreground_color( int num );
 
39
    void set_background_color( int num );
38
40
    void set_rendition( int num );
39
41
    std::string sgr( void ) const;
40
42
 
 
43
    void posterize( void );
 
44
 
41
45
    bool operator==( const Renditions &x ) const
42
46
    {
43
47
      return (bold == x.bold) && (underlined == x.underlined)
182
186
    int limit_top( void );
183
187
    int limit_bottom( void );
184
188
 
 
189
    void set_foreground_color( int x ) { renditions.set_foreground_color( x ); }
 
190
    void set_background_color( int x ) { renditions.set_background_color( x ); }
185
191
    void add_rendition( int x ) { renditions.set_rendition( x ); }
186
192
    Renditions get_renditions( void ) const { return renditions; }
187
 
    int get_background_rendition( void ) { return renditions.background_color; }
 
193
    int get_background_rendition( void ) const { return renditions.background_color; }
188
194
 
189
195
    void save_cursor( void );
190
196
    void restore_cursor( void );
281
287
    void reset_cell( Cell *c ) { c->reset( ds.get_background_rendition() ); }
282
288
    void reset_row( Row *r ) { r->reset( ds.get_background_rendition() ); }
283
289
 
 
290
    void posterize( void );
 
291
 
284
292
    void ring_bell( void ) { bell_count++; }
285
293
    unsigned int get_bell_count( void ) const { return bell_count; }
286
294