Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /branches/ttcomtester/teraterm/teraterm/vtdisp.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7270 - (hide annotations) (download) (as text)
Wed Nov 21 08:45:21 2018 UTC (5 years, 4 months ago) by doda
Original Path: trunk/teraterm/teraterm/vtdisp.h
File MIME type: text/x-chdr
File size: 5005 byte(s)
dttermのウィンドウ操作シーケンス(14:ウィンドウサイズ報告)の動作を更新

- CSI 14 t で送るのをウィンドウのサイズからクライアント領域のサイズに変更
- 二番目のパラメータ(Ps2)の値を見るように変更
  - Ps2 が 0 または 1 の時は Ps2 が無い時の動作に合わせた
  - Ps2 が 2 の時はウィンドウサイズを送るようにした
  - Ps2 がそれ以外の値の時は応答しないようにした

最後の以外は xterm の動作への追従。
xterm では Ps2 が 0 - 2 以外の時はクライアント領域のサイズを送っているが、
Tera Term ではあえて無視する。
1 doda 6806 /*
2     * Copyright (C) 1994-1998 T. Teranishi
3     * (C) 2008-2017 TeraTerm Project
4     * All rights reserved.
5     *
6 doda 6841 * Redistribution and use in source and binary forms, with or without
7     * modification, are permitted provided that the following conditions
8     * are met:
9 doda 6806 *
10 doda 6841 * 1. Redistributions of source code must retain the above copyright
11     * notice, this list of conditions and the following disclaimer.
12     * 2. Redistributions in binary form must reproduce the above copyright
13     * notice, this list of conditions and the following disclaimer in the
14     * documentation and/or other materials provided with the distribution.
15     * 3. The name of the author may not be used to endorse or promote products
16     * derived from this software without specific prior written permission.
17 doda 6806 *
18 doda 6841 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
19     * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20     * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21     * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
22     * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23     * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24     * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25     * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26     * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27     * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 doda 6806 */
29 maya 3227
30     /* TERATERM.EXE, VT terminal display routines */
31     #ifdef __cplusplus
32     extern "C" {
33     #endif
34    
35     /* prototypes */
36     //<!--by AKASI
37     void BGInitialize(void);
38     void BGSetupPrimary(BOOL);
39    
40 doda 3715 void BGExchangeColor(void);
41    
42 maya 3227 void BGOnSettingChange(void);
43     void BGOnEnterSizeMove(void);
44     void BGOnExitSizeMove(void);
45    
46     extern BOOL BGEnable;
47     extern BOOL BGNoFrame;
48     extern BOOL BGNoCopyBits;
49     //-->
50    
51     void InitDisp();
52     void EndDisp();
53     void DispReset();
54     void DispConvWinToScreen
55     (int Xw, int Yw, int *Xs, int *Ys, PBOOL Right);
56     void DispConvScreenToWin
57     (int Xs, int Ys, int *Xw, int *Yw);
58     void SetLogFont();
59     void ChangeFont();
60     void ResetIME();
61     void ChangeCaret();
62     void CaretKillFocus(BOOL show);
63 doda 3322 void UpdateCaretPosition(BOOL enforce);
64 maya 3227 void CaretOn();
65     void CaretOff();
66     void DispDestroyCaret();
67     BOOL IsCaretOn();
68     void DispEnableCaret(BOOL On);
69     BOOL IsCaretEnabled();
70     void DispSetCaretWidth(BOOL DW);
71     void DispChangeWinSize(int Nx, int Ny);
72     void ResizeWindow(int x, int y, int w, int h, int cw, int ch);
73     void PaintWindow(HDC PaintDC, RECT PaintRect, BOOL fBkGnd,
74     int* Xs, int* Ys, int* Xe, int* Ye);
75     void DispEndPaint();
76     void DispClearWin();
77     void DispChangeBackground();
78     void DispChangeWin();
79     void DispInitDC();
80     void DispReleaseDC();
81     void DispSetupDC(TCharAttr Attr, BOOL Reverse);
82     void DispStr(PCHAR Buff, int Count, int Y, int* X);
83     void DispEraseCurToEnd(int YEnd);
84     void DispEraseHomeToCur(int YHome);
85     void DispEraseCharsInLine(int XStart, int Count);
86     BOOL DispDeleteLines(int Count, int YEnd);
87     BOOL DispInsertLines(int Count, int YEnd);
88     BOOL IsLineVisible(int* X, int* Y);
89     void AdjustScrollBar();
90     void DispScrollToCursor(int CurX, int CurY);
91     void DispScrollNLines(int Top, int Bottom, int Direction);
92     void DispCountScroll();
93     void DispUpdateScroll();
94     void DispScrollHomePos();
95     void DispAutoScroll(POINT p);
96     void DispHScroll(int Func, int Pos);
97     void DispVScroll(int Func, int Pos);
98     void DispSetupFontDlg();
99     void DispRestoreWinSize();
100     void DispSetWinPos();
101     void DispSetActive(BOOL ActiveFlag);
102     void InitColorTable();
103     void DispApplyANSIColor();
104     void DispSetNearestColors(int start, int end, HDC DispCtx);
105     int TCharAttrCmp(TCharAttr a, TCharAttr b);
106 doda 4770 void DispSetColor(unsigned int num, COLORREF color);
107     void DispResetColor(unsigned int num);
108     COLORREF DispGetColor(unsigned int num);
109 maya 3227 void DispSetCurCharAttr(TCharAttr Attr);
110 doda 3297 void DispMoveWindow(int x, int y);
111 doda 3302 void DispShowWindow(int mode);
112 doda 3464 void DispResizeWin(int w, int h);
113 doda 3466 BOOL DispWindowIconified();
114 doda 3469 void DispGetWindowPos(int *x, int *y);
115 doda 7270 void DispGetWindowSize(int *width, int *height, BOOL client);
116 doda 3475 void DispGetRootWinSize(int *x, int *y);
117 doda 5073 int DispFindClosestColor(int red, int green, int blue);
118 doda 6306 void UpdateBGBrush(void);
119 maya 3227
120     extern int WinWidth, WinHeight;
121     extern HFONT VTFont[AttrFontMask+1];
122     extern int FontHeight, FontWidth, ScreenWidth, ScreenHeight;
123     extern BOOL AdjustSize, DontChangeSize;
124     extern int CursorX, CursorY;
125     extern int WinOrgX, WinOrgY, NewOrgX, NewOrgY;
126     extern int NumOfLines, NumOfColumns;
127     extern int PageStart, BuffEnd;
128     extern TCharAttr DefCharAttr;
129    
130     #define SCROLL_BOTTOM 1
131     #define SCROLL_LINEDOWN 2
132     #define SCROLL_LINEUP 3
133     #define SCROLL_PAGEDOWN 4
134     #define SCROLL_PAGEUP 5
135     #define SCROLL_POS 6
136     #define SCROLL_TOP 7
137    
138 doda 3309 #define WINDOW_MINIMIZE 1
139     #define WINDOW_MAXIMIZE 2
140     #define WINDOW_RESTORE 3
141     #define WINDOW_RAISE 4
142     #define WINDOW_LOWER 5
143 doda 3310 #define WINDOW_REFRESH 6
144 doda 3309
145 maya 3227 #ifdef __cplusplus
146     }
147     #endif

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