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 5073 - (hide annotations) (download) (as text)
Sat Nov 24 11:07:38 2012 UTC (11 years, 4 months ago) by doda
Original Path: trunk/teraterm/teraterm/vtdisp.h
File MIME type: text/x-chdr
File size: 3503 byte(s)
ITU-T Rec. T-416 風の RGB 色指定に対応した。
現状の実装は、256 色のパレットの中から近似色を選ぶ。
また、256 色パレット指定も : をパラメータ区切りとして受け付けるようにした。

対応形式:
  CSI 38 ; 2 ; R ; G ; B m   -- Konssole
  CSI 38 ; 2 ; R : G : B m   -- 独自
  CSI 38 ; 2 : R : G : B m   -- T-416 風
  CSI 38 : 2 : R : G : B m   -- xterm pl282 とか
  CSI 38 ; 5 : C m           -- T-416
  CSI 38 : 5 : C m           -- xterm pl282 とか

1 maya 3227 /* Tera Term
2     Copyright(C) 1994-1998 T. Teranishi
3     All rights reserved. */
4    
5     /* TERATERM.EXE, VT terminal display routines */
6     #ifdef __cplusplus
7     extern "C" {
8     #endif
9    
10     /* prototypes */
11     //<!--by AKASI
12     void BGInitialize(void);
13     void BGSetupPrimary(BOOL);
14    
15 doda 3715 void BGExchangeColor(void);
16    
17 maya 3227 void BGOnSettingChange(void);
18     void BGOnEnterSizeMove(void);
19     void BGOnExitSizeMove(void);
20    
21     extern BOOL BGEnable;
22     extern BOOL BGNoFrame;
23     extern BOOL BGNoCopyBits;
24     //-->
25    
26     void InitDisp();
27     void EndDisp();
28     void DispReset();
29     void DispConvWinToScreen
30     (int Xw, int Yw, int *Xs, int *Ys, PBOOL Right);
31     void DispConvScreenToWin
32     (int Xs, int Ys, int *Xw, int *Yw);
33     void SetLogFont();
34     void ChangeFont();
35     void ResetIME();
36     void ChangeCaret();
37     void CaretKillFocus(BOOL show);
38 doda 3322 void UpdateCaretPosition(BOOL enforce);
39 maya 3227 void CaretOn();
40     void CaretOff();
41     void DispDestroyCaret();
42     BOOL IsCaretOn();
43     void DispEnableCaret(BOOL On);
44     BOOL IsCaretEnabled();
45     void DispSetCaretWidth(BOOL DW);
46     void DispChangeWinSize(int Nx, int Ny);
47     void ResizeWindow(int x, int y, int w, int h, int cw, int ch);
48     void PaintWindow(HDC PaintDC, RECT PaintRect, BOOL fBkGnd,
49     int* Xs, int* Ys, int* Xe, int* Ye);
50     void DispEndPaint();
51     void DispClearWin();
52     void DispChangeBackground();
53     void DispChangeWin();
54     void DispInitDC();
55     void DispReleaseDC();
56     void DispSetupDC(TCharAttr Attr, BOOL Reverse);
57     void DispStr(PCHAR Buff, int Count, int Y, int* X);
58     void DispEraseCurToEnd(int YEnd);
59     void DispEraseHomeToCur(int YHome);
60     void DispEraseCharsInLine(int XStart, int Count);
61     BOOL DispDeleteLines(int Count, int YEnd);
62     BOOL DispInsertLines(int Count, int YEnd);
63     BOOL IsLineVisible(int* X, int* Y);
64     void AdjustScrollBar();
65     void DispScrollToCursor(int CurX, int CurY);
66     void DispScrollNLines(int Top, int Bottom, int Direction);
67     void DispCountScroll();
68     void DispUpdateScroll();
69     void DispScrollHomePos();
70     void DispAutoScroll(POINT p);
71     void DispHScroll(int Func, int Pos);
72     void DispVScroll(int Func, int Pos);
73     void DispSetupFontDlg();
74     void DispRestoreWinSize();
75     void DispSetWinPos();
76     void DispSetActive(BOOL ActiveFlag);
77     void InitColorTable();
78     void DispApplyANSIColor();
79     void DispSetNearestColors(int start, int end, HDC DispCtx);
80     int TCharAttrCmp(TCharAttr a, TCharAttr b);
81 doda 4770 void DispSetColor(unsigned int num, COLORREF color);
82     void DispResetColor(unsigned int num);
83     COLORREF DispGetColor(unsigned int num);
84 maya 3227 void DispSetCurCharAttr(TCharAttr Attr);
85 doda 3297 void DispMoveWindow(int x, int y);
86 doda 3302 void DispShowWindow(int mode);
87 doda 3464 void DispResizeWin(int w, int h);
88 doda 3466 BOOL DispWindowIconified();
89 doda 3469 void DispGetWindowPos(int *x, int *y);
90 doda 4250 void DispGetWindowSize(int *width, int *height);
91 doda 3475 void DispGetRootWinSize(int *x, int *y);
92 doda 5073 int DispFindClosestColor(int red, int green, int blue);
93 maya 3227
94     extern int WinWidth, WinHeight;
95     extern HFONT VTFont[AttrFontMask+1];
96     extern int FontHeight, FontWidth, ScreenWidth, ScreenHeight;
97     extern BOOL AdjustSize, DontChangeSize;
98     extern int CursorX, CursorY;
99     extern int WinOrgX, WinOrgY, NewOrgX, NewOrgY;
100     extern int NumOfLines, NumOfColumns;
101     extern int PageStart, BuffEnd;
102     extern TCharAttr DefCharAttr;
103    
104     #define SCROLL_BOTTOM 1
105     #define SCROLL_LINEDOWN 2
106     #define SCROLL_LINEUP 3
107     #define SCROLL_PAGEDOWN 4
108     #define SCROLL_PAGEUP 5
109     #define SCROLL_POS 6
110     #define SCROLL_TOP 7
111    
112 doda 3309 #define WINDOW_MINIMIZE 1
113     #define WINDOW_MAXIMIZE 2
114     #define WINDOW_RESTORE 3
115     #define WINDOW_RAISE 4
116     #define WINDOW_LOWER 5
117 doda 3310 #define WINDOW_REFRESH 6
118 doda 3309
119 maya 3227 #ifdef __cplusplus
120     }
121     #endif

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