| 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 |
|
|
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 DispConvScreenToWin |
| 30 |
|
|
(int Xs, int Ys, int *Xw, int *Yw); |
| 31 |
|
|
void SetLogFont(); |
| 32 |
|
|
void ChangeFont(); |
| 33 |
|
|
void ResetIME(); |
| 34 |
|
|
void ChangeCaret(); |
| 35 |
|
|
void CaretKillFocus(BOOL show); |
| 36 |
doda |
3322 |
void UpdateCaretPosition(BOOL enforce); |
| 37 |
maya |
3227 |
void CaretOn(); |
| 38 |
|
|
void CaretOff(); |
| 39 |
|
|
void DispDestroyCaret(); |
| 40 |
|
|
BOOL IsCaretOn(); |
| 41 |
|
|
void DispEnableCaret(BOOL On); |
| 42 |
|
|
BOOL IsCaretEnabled(); |
| 43 |
|
|
void DispSetCaretWidth(BOOL DW); |
| 44 |
|
|
void DispChangeWinSize(int Nx, int Ny); |
| 45 |
|
|
void ResizeWindow(int x, int y, int w, int h, int cw, int ch); |
| 46 |
|
|
void PaintWindow(HDC PaintDC, RECT PaintRect, BOOL fBkGnd, |
| 47 |
|
|
int* Xs, int* Ys, int* Xe, int* Ye); |
| 48 |
|
|
void DispEndPaint(); |
| 49 |
|
|
void DispClearWin(); |
| 50 |
|
|
void DispChangeBackground(); |
| 51 |
|
|
void DispChangeWin(); |
| 52 |
|
|
void DispInitDC(); |
| 53 |
|
|
void DispReleaseDC(); |
| 54 |
|
|
void DispSetupDC(TCharAttr Attr, BOOL Reverse); |
| 55 |
|
|
void DispStr(PCHAR Buff, int Count, int Y, int* X); |
| 56 |
|
|
void DispEraseCurToEnd(int YEnd); |
| 57 |
|
|
void DispEraseHomeToCur(int YHome); |
| 58 |
|
|
void DispEraseCharsInLine(int XStart, int Count); |
| 59 |
|
|
BOOL DispDeleteLines(int Count, int YEnd); |
| 60 |
|
|
BOOL DispInsertLines(int Count, int YEnd); |
| 61 |
|
|
BOOL IsLineVisible(int* X, int* Y); |
| 62 |
|
|
void AdjustScrollBar(); |
| 63 |
|
|
void DispScrollToCursor(int CurX, int CurY); |
| 64 |
|
|
void DispScrollNLines(int Top, int Bottom, int Direction); |
| 65 |
|
|
void DispCountScroll(); |
| 66 |
|
|
void DispUpdateScroll(); |
| 67 |
|
|
void DispScrollHomePos(); |
| 68 |
|
|
void DispAutoScroll(POINT p); |
| 69 |
|
|
void DispHScroll(int Func, int Pos); |
| 70 |
|
|
void DispVScroll(int Func, int Pos); |
| 71 |
|
|
void DispSetupFontDlg(); |
| 72 |
|
|
void DispRestoreWinSize(); |
| 73 |
|
|
void DispSetWinPos(); |
| 74 |
|
|
void DispSetActive(BOOL ActiveFlag); |
| 75 |
|
|
void InitColorTable(); |
| 76 |
|
|
void DispApplyANSIColor(); |
| 77 |
|
|
void DispSetNearestColors(int start, int end, HDC DispCtx); |
| 78 |
|
|
int TCharAttrCmp(TCharAttr a, TCharAttr b); |
| 79 |
|
|
void DispSetANSIColor(int num, COLORREF color); |
| 80 |
|
|
COLORREF DispGetANSIColor(int num); |
| 81 |
|
|
void DispSetCurCharAttr(TCharAttr Attr); |
| 82 |
doda |
3297 |
void DispMoveWindow(int x, int y); |
| 83 |
doda |
3302 |
void DispShowWindow(int mode); |
| 84 |
doda |
3464 |
void DispResizeWin(int w, int h); |
| 85 |
doda |
3466 |
BOOL DispWindowIconified(); |
| 86 |
doda |
3469 |
void DispGetWindowPos(int *x, int *y); |
| 87 |
maya |
3227 |
|
| 88 |
|
|
extern int WinWidth, WinHeight; |
| 89 |
|
|
extern HFONT VTFont[AttrFontMask+1]; |
| 90 |
|
|
extern int FontHeight, FontWidth, ScreenWidth, ScreenHeight; |
| 91 |
|
|
extern BOOL AdjustSize, DontChangeSize; |
| 92 |
|
|
extern int CursorX, CursorY; |
| 93 |
|
|
extern int WinOrgX, WinOrgY, NewOrgX, NewOrgY; |
| 94 |
|
|
extern int NumOfLines, NumOfColumns; |
| 95 |
|
|
extern int PageStart, BuffEnd; |
| 96 |
|
|
extern TCharAttr DefCharAttr; |
| 97 |
|
|
|
| 98 |
|
|
#define SCROLL_BOTTOM 1 |
| 99 |
|
|
#define SCROLL_LINEDOWN 2 |
| 100 |
|
|
#define SCROLL_LINEUP 3 |
| 101 |
|
|
#define SCROLL_PAGEDOWN 4 |
| 102 |
|
|
#define SCROLL_PAGEUP 5 |
| 103 |
|
|
#define SCROLL_POS 6 |
| 104 |
|
|
#define SCROLL_TOP 7 |
| 105 |
|
|
|
| 106 |
doda |
3309 |
#define WINDOW_MINIMIZE 1 |
| 107 |
|
|
#define WINDOW_MAXIMIZE 2 |
| 108 |
|
|
#define WINDOW_RESTORE 3 |
| 109 |
|
|
#define WINDOW_RAISE 4 |
| 110 |
|
|
#define WINDOW_LOWER 5 |
| 111 |
doda |
3310 |
#define WINDOW_REFRESH 6 |
| 112 |
doda |
3309 |
|
| 113 |
maya |
3227 |
#ifdef __cplusplus |
| 114 |
|
|
} |
| 115 |
|
|
#endif |