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 4275 by doda, Tue Jan 11 17:34:29 2011 UTC revision 4278 by doda, Mon Jan 17 10:50:28 2011 UTC
# Line 23  Line 23 
23  #include "filesys.h"  #include "filesys.h"
24  #include "teraprn.h"  #include "teraprn.h"
25  #include "telnet.h"  #include "telnet.h"
26    #include "ttime.h"
27    
28  #include "vtterm.h"  #include "vtterm.h"
29    
# Line 139  int LastX, LastY; Line 140  int LastX, LastY;
140  int ButtonStat;  int ButtonStat;
141  int FilterTop, FilterBottom, FilterLeft, FilterRight;  int FilterTop, FilterBottom, FilterLeft, FilterRight;
142    
143    /* IME Status */
144    BOOL IMEstat;
145    
146  static _locale_t CLocale = NULL;  static _locale_t CLocale = NULL;
147    
148  void ResetSBuffer(PStatusBuff sbuff)  void ResetSBuffer(PStatusBuff sbuff)
# Line 249  void ResetTerminal() /*reset variables b Line 253  void ResetTerminal() /*reset variables b
253    
254    // Bracketed Paste Mode    // Bracketed Paste Mode
255    BracketedPaste = FALSE;    BracketedPaste = FALSE;
256    
257      // Saved IME Status
258      IMEstat = FALSE;
259  }  }
260    
261  void ResetCharSet()  void ResetCharSet()
# Line 2144  void CSSetAttr()               // SGR Line 2151  void CSSetAttr()               // SGR
2151      }      }
2152    }    }
2153    
2154      void CSLT(BYTE b)
2155      {
2156        switch (b) {
2157          case 'r':
2158            if (CanUseIME()) {
2159              SetIMEOpenStatus(IMEstat);
2160            }
2161            break;
2162    
2163          case 's':
2164            if (CanUseIME()) {
2165              IMEstat = GetIMEOpenStatus();
2166            }
2167            break;
2168    
2169          case 't':
2170            if (CanUseIME()) {
2171              SetIMEOpenStatus(Param[1] == 1);
2172            }
2173            break;
2174        }
2175      }
2176    
2177    void CSEQ(BYTE b)    void CSEQ(BYTE b)
2178    {    {
2179      char Report[16];      char Report[16];
# Line 2541  void CSSetAttr()               // SGR Line 2571  void CSSetAttr()               // SGR
2571    
2572      // status buffers      // status buffers
2573      ResetCurSBuffer();      ResetCurSBuffer();
2574    
2575        // Saved IME status
2576        IMEstat = FALSE;
2577    }    }
2578    
2579    void CSExc(BYTE b)    void CSExc(BYTE b)
# Line 2879  void ParseCS(BYTE b) /* b is the final c Line 2912  void ParseCS(BYTE b) /* b is the final c
2912              case 'u': RestoreCursor(); break;           // RCP (Restore cursor (ANSI.SYS/SCO))              case 'u': RestoreCursor(); break;           // RCP (Restore cursor (ANSI.SYS/SCO))
2913            } /* of case Prv=0 */            } /* of case Prv=0 */
2914            break;            break;
2915            /* private parameter = '<' */
2916            case '<': CSLT(b); break;
2917          /* private parameter = '=' */          /* private parameter = '=' */
2918          case '=': CSEQ(b); break;          case '=': CSEQ(b); break;
2919          /* private parameter = '>' */          /* private parameter = '>' */

Legend:
Removed from v.4275  
changed lines
  Added in v.4278

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