1 |
maya |
2476 |
/* 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 |
|
|
void BGOnSettingChange(void); |
16 |
|
|
void BGOnEnterSizeMove(void); |
17 |
|
|
void BGOnExitSizeMove(void); |
18 |
|
|
|
19 |
|
|
extern BOOL BGEnable; |
20 |
|
|
extern BOOL BGNoFrame; |
21 |
|
|
extern BOOL BGNoCopyBits; |
22 |
|
|
//--> |
23 |
|
|
|
24 |
|
|
void InitDisp(); |
25 |
|
|
void EndDisp(); |
26 |
|
|
void DispReset(); |
27 |
|
|
void DispConvWinToScreen |
28 |
|
|
(int Xw, int Yw, int *Xs, int *Ys, PBOOL Right); |
29 |
|
|
void SetLogFont(); |
30 |
|
|
void ChangeFont(); |
31 |
|
|
void ResetIME(); |
32 |
|
|
void ChangeCaret(); |
33 |
|
|
void CaretKillFocus(BOOL show); |
34 |
|
|
void UpdateCaretKillFocus(BOOL enforce); |
35 |
|
|
void CaretOn(); |
36 |
|
|
void CaretOff(); |
37 |
|
|
void DispDestroyCaret(); |
38 |
|
|
BOOL IsCaretOn(); |
39 |
|
|
void DispEnableCaret(BOOL On); |
40 |
|
|
BOOL IsCaretEnabled(); |
41 |
|
|
void DispSetCaretWidth(BOOL DW); |
42 |
|
|
void DispChangeWinSize(int Nx, int Ny); |
43 |
|
|
void ResizeWindow(int x, int y, int w, int h, int cw, int ch); |
44 |
|
|
void PaintWindow(HDC PaintDC, RECT PaintRect, BOOL fBkGnd, |
45 |
|
|
int* Xs, int* Ys, int* Xe, int* Ye); |
46 |
|
|
void DispEndPaint(); |
47 |
|
|
void DispClearWin(); |
48 |
|
|
void DispChangeBackground(); |
49 |
|
|
void DispChangeWin(); |
50 |
|
|
void DispInitDC(); |
51 |
|
|
void DispReleaseDC(); |
52 |
|
|
void DispSetupDC(TCharAttr Attr, BOOL Reverse); |
53 |
|
|
void DispStr(PCHAR Buff, int Count, int Y, int* X); |
54 |
|
|
void DispEraseCurToEnd(int YEnd); |
55 |
|
|
void DispEraseHomeToCur(int YHome); |
56 |
|
|
void DispEraseCharsInLine(int XStart, int Count); |
57 |
|
|
BOOL DispDeleteLines(int Count, int YEnd); |
58 |
|
|
BOOL DispInsertLines(int Count, int YEnd); |
59 |
|
|
BOOL IsLineVisible(int* X, int* Y); |
60 |
|
|
void AdjustScrollBar(); |
61 |
|
|
void DispScrollToCursor(int CurX, int CurY); |
62 |
|
|
void DispScrollNLines(int Top, int Bottom, int Direction); |
63 |
|
|
void DispCountScroll(); |
64 |
|
|
void DispUpdateScroll(); |
65 |
|
|
void DispScrollHomePos(); |
66 |
|
|
void DispAutoScroll(POINT p); |
67 |
|
|
void DispHScroll(int Func, int Pos); |
68 |
|
|
void DispVScroll(int Func, int Pos); |
69 |
|
|
void DispSetupFontDlg(); |
70 |
|
|
void DispRestoreWinSize(); |
71 |
|
|
void DispSetWinPos(); |
72 |
|
|
void DispSetActive(BOOL ActiveFlag); |
73 |
|
|
void InitColorTable(); |
74 |
|
|
void DispApplyANSIColor(); |
75 |
|
|
void DispSetNearestColors(int start, int end, HDC DispCtx); |
76 |
|
|
int TCharAttrCmp(TCharAttr a, TCharAttr b); |
77 |
|
|
void DispSetANSIColor(int num, COLORREF color); |
78 |
|
|
COLORREF DispGetANSIColor(int num); |
79 |
|
|
void DispSetCurCharAttr(TCharAttr Attr); |
80 |
|
|
|
81 |
|
|
extern int WinWidth, WinHeight; |
82 |
|
|
extern HFONT VTFont[AttrFontMask+1]; |
83 |
|
|
extern int FontHeight, FontWidth, ScreenWidth, ScreenHeight; |
84 |
|
|
extern BOOL AdjustSize, DontChangeSize; |
85 |
|
|
extern int CursorX, CursorY; |
86 |
|
|
extern int WinOrgX, WinOrgY, NewOrgX, NewOrgY; |
87 |
|
|
extern int NumOfLines, NumOfColumns; |
88 |
|
|
extern int PageStart, BuffEnd; |
89 |
|
|
extern TCharAttr DefCharAttr; |
90 |
|
|
|
91 |
|
|
#define SCROLL_BOTTOM 1 |
92 |
|
|
#define SCROLL_LINEDOWN 2 |
93 |
|
|
#define SCROLL_LINEUP 3 |
94 |
|
|
#define SCROLL_PAGEDOWN 4 |
95 |
|
|
#define SCROLL_PAGEUP 5 |
96 |
|
|
#define SCROLL_POS 6 |
97 |
|
|
#define SCROLL_TOP 7 |
98 |
|
|
|
99 |
|
|
#ifdef __cplusplus |
100 |
|
|
} |
101 |
|
|
#endif |