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 10274 - (hide annotations) (download) (as text)
Sun Sep 18 16:07:06 2022 UTC (18 months, 3 weeks ago) by zmatsuo
Original Path: trunk/teraterm/teraterm/vtdisp.h
File MIME type: text/x-chdr
File size: 5428 byte(s)
描画部分(vtdisp.c内)のカラーテーブルをANSI color 256色と同じ並びにした

- 従来は[0-7]が明るい原色8色,[8-15]が暗い色8色で、入れ替わっていた
- tera Tera Term Pro 2.3.ini の誤り修正

ticket #45625
1 doda 6806 /*
2     * Copyright (C) 1994-1998 T. Teranishi
3 nmaya 9048 * (C) 2008- TeraTerm Project
4 doda 6806 * 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 zmatsuo 8675
32 zmatsuo 10256 #pragma once
33    
34 zmatsuo 8675 #include "buffer.h" // for TCharAttr
35    
36 maya 3227 #ifdef __cplusplus
37     extern "C" {
38     #endif
39    
40     /* prototypes */
41 yutakapon 8106 void BGInitialize(BOOL initialize_once);
42 zmatsuo 10134 void BGLoadThemeFile(TTTSet *pts);
43     void BGSetupPrimary(BOOL forceSetup);
44 maya 3227
45     void BGOnSettingChange(void);
46     void BGOnEnterSizeMove(void);
47     void BGOnExitSizeMove(void);
48    
49 zmatsuo 9991 void InitDisp(void);
50     void EndDisp(void);
51     void DispReset(void);
52 maya 3227 void DispConvWinToScreen
53     (int Xw, int Yw, int *Xs, int *Ys, PBOOL Right);
54     void DispConvScreenToWin
55     (int Xs, int Ys, int *Xw, int *Yw);
56 zmatsuo 9991 void ChangeFont(void);
57     void ResetIME(void);
58     void ChangeCaret(void);
59 maya 3227 void CaretKillFocus(BOOL show);
60 doda 3322 void UpdateCaretPosition(BOOL enforce);
61 zmatsuo 9991 void CaretOn(void);
62     void CaretOff(void);
63     void DispDestroyCaret(void);
64     BOOL IsCaretOn(void);
65 maya 3227 void DispEnableCaret(BOOL On);
66 zmatsuo 9991 BOOL IsCaretEnabled(void);
67 maya 3227 void DispSetCaretWidth(BOOL DW);
68     void DispChangeWinSize(int Nx, int Ny);
69     void ResizeWindow(int x, int y, int w, int h, int cw, int ch);
70     void PaintWindow(HDC PaintDC, RECT PaintRect, BOOL fBkGnd,
71     int* Xs, int* Ys, int* Xe, int* Ye);
72 zmatsuo 9991 void DispEndPaint(void);
73     void DispClearWin(void);
74     void DispChangeBackground(void);
75     void DispChangeWin(void);
76     void DispInitDC(void);
77     void DispReleaseDC(void);
78 maya 3227 void DispSetupDC(TCharAttr Attr, BOOL Reverse);
79 zmatsuo 9040 void DispStr(const char *Buff, int Count, int Y, int* X);
80 doda 8445 void DispStrW(const wchar_t *StrW, const char *WidthInfo, int Count, int Y, int* X);
81 maya 3227 void DispEraseCurToEnd(int YEnd);
82     void DispEraseHomeToCur(int YHome);
83     void DispEraseCharsInLine(int XStart, int Count);
84     BOOL DispDeleteLines(int Count, int YEnd);
85     BOOL DispInsertLines(int Count, int YEnd);
86     BOOL IsLineVisible(int* X, int* Y);
87 zmatsuo 9991 void AdjustScrollBar(void);
88 maya 3227 void DispScrollToCursor(int CurX, int CurY);
89     void DispScrollNLines(int Top, int Bottom, int Direction);
90 zmatsuo 9991 void DispCountScroll(int n);
91     void DispUpdateScroll(void);
92     void DispScrollHomePos(void);
93 maya 3227 void DispAutoScroll(POINT p);
94     void DispHScroll(int Func, int Pos);
95     void DispVScroll(int Func, int Pos);
96 zmatsuo 9991 void DispSetupFontDlg(void);
97     void DispRestoreWinSize(void);
98     void DispSetWinPos(void);
99 maya 3227 void DispSetActive(BOOL ActiveFlag);
100     int TCharAttrCmp(TCharAttr a, TCharAttr b);
101 doda 4770 void DispSetColor(unsigned int num, COLORREF color);
102     void DispResetColor(unsigned int num);
103     COLORREF DispGetColor(unsigned int num);
104 maya 3227 void DispSetCurCharAttr(TCharAttr Attr);
105 doda 3297 void DispMoveWindow(int x, int y);
106 doda 3302 void DispShowWindow(int mode);
107 doda 3464 void DispResizeWin(int w, int h);
108 zmatsuo 9991 BOOL DispWindowIconified(void);
109 doda 7271 void DispGetWindowPos(int *x, int *y, BOOL client);
110 doda 7270 void DispGetWindowSize(int *width, int *height, BOOL client);
111 doda 7272 void DispGetRootWinSize(int *x, int *y, BOOL inPixels);
112 doda 5073 int DispFindClosestColor(int red, int green, int blue);
113 zmatsuo 9040 void DrawStrW(HDC DC, HDC BGDC, const wchar_t *StrW, const char *WidthInfo, int Count,
114     int font_width, int font_height, int Y, int* X);
115     void DrawStrA(HDC DC, HDC BGDC, const char *StrA, int Count,
116     int font_width, int font_height, int Y, int* X);
117 maya 3227
118     extern int WinWidth, WinHeight;
119     extern HFONT VTFont[AttrFontMask+1];
120     extern int FontHeight, FontWidth, ScreenWidth, ScreenHeight;
121     extern BOOL AdjustSize, DontChangeSize;
122     extern int CursorX, CursorY;
123     extern int WinOrgX, WinOrgY, NewOrgX, NewOrgY;
124     extern int NumOfLines, NumOfColumns;
125     extern int PageStart, BuffEnd;
126     extern TCharAttr DefCharAttr;
127    
128 zmatsuo 7434 extern BOOL IMEstat;
129 zmatsuo 7534 extern BOOL IMECompositionState;
130 zmatsuo 7434
131 maya 3227 #define SCROLL_BOTTOM 1
132     #define SCROLL_LINEDOWN 2
133     #define SCROLL_LINEUP 3
134     #define SCROLL_PAGEDOWN 4
135     #define SCROLL_PAGEUP 5
136     #define SCROLL_POS 6
137     #define SCROLL_TOP 7
138    
139 doda 3309 #define WINDOW_MINIMIZE 1
140     #define WINDOW_MAXIMIZE 2
141     #define WINDOW_RESTORE 3
142     #define WINDOW_RAISE 4
143     #define WINDOW_LOWER 5
144 doda 3310 #define WINDOW_REFRESH 6
145 doda 7274 #define WINDOW_TOGGLE_MAXIMIZE 7
146 doda 3309
147 zmatsuo 10256 #include "theme.h"
148 zmatsuo 10134
149 maya 3227 #ifdef __cplusplus
150     }
151     #endif

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