Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/teraterm/vtterm.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2666 by doda, Mon Mar 2 01:43:13 2009 UTC revision 2673 by doda, Tue Mar 3 12:33:49 2009 UTC
# Line 46  static TCharAttr CharAttr; Line 46  static TCharAttr CharAttr;
46    
47  /* various modes of VT emulation */  /* various modes of VT emulation */
48  static BOOL RelativeOrgMode;  static BOOL RelativeOrgMode;
 static BOOL ReverseColor;  
49  static BOOL InsertMode;  static BOOL InsertMode;
50  static BOOL LFMode;  static BOOL LFMode;
51  static BOOL AutoWrapMode;  static BOOL AutoWrapMode;
# Line 167  void ResetTerminal() /*reset variables b Line 166  void ResetTerminal() /*reset variables b
166    AppliKeyMode = FALSE;    AppliKeyMode = FALSE;
167    AppliCursorMode = FALSE;    AppliCursorMode = FALSE;
168    RelativeOrgMode = FALSE;    RelativeOrgMode = FALSE;
169    ReverseColor = FALSE;    ts.ColorFlag &= ~CF_REVERSEVIDEO;
170    AutoRepeatMode = TRUE;    AutoRepeatMode = TRUE;
171    Send8BitMode = ts.Send8BitCtrl;    Send8BitMode = ts.Send8BitCtrl;
172    FocusReportMode = FALSE;    FocusReportMode = FALSE;
# Line 1847  void CSSetAttr() Line 1846  void CSSetAttr()
1846        ts.URLColor[0] = ts.URLColor[1];        ts.URLColor[0] = ts.URLColor[1];
1847        ts.URLColor[1] = ColorRef;        ts.URLColor[1] = ColorRef;
1848    
1849        ReverseColor = !ReverseColor;        ts.ColorFlag ^= CF_REVERSEVIDEO;
1850    
1851  #ifdef ALPHABLEND_TYPE2  #ifdef ALPHABLEND_TYPE2
1852        BGInitialize();        BGInitialize();
# Line 1867  void CSSetAttr() Line 1866  void CSSetAttr()
1866              ChangeTerminalSize(132,NumOfLines-StatusLine);              ChangeTerminalSize(132,NumOfLines-StatusLine);
1867              break;              break;
1868            case 5: /* Reverse Video */            case 5: /* Reverse Video */
1869              if (!ReverseColor)              if (!(ts.ColorFlag & CF_REVERSEVIDEO))
1870                CSQExchangeColor(); /* Exchange text/back color */                CSQExchangeColor(); /* Exchange text/back color */
1871              break;              break;
1872            case 6:            case 6:
# Line 1971  void CSSetAttr() Line 1970  void CSSetAttr()
1970              ChangeTerminalSize(80,NumOfLines-StatusLine);              ChangeTerminalSize(80,NumOfLines-StatusLine);
1971              break;              break;
1972            case 5: /* Normal Video */            case 5: /* Normal Video */
1973              if (ReverseColor)              if (ts.ColorFlag & CF_REVERSEVIDEO)
1974                CSQExchangeColor(); /* Exchange text/back color */                CSQExchangeColor(); /* Exchange text/back color */
1975              break;              break;
1976            case 6:            case 6:

Legend:
Removed from v.2666  
changed lines
  Added in v.2673

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26