| 1 |
maya |
3227 |
/* Tera Term |
| 2 |
|
|
Copyright(C) 1994-1998 T. Teranishi |
| 3 |
|
|
All rights reserved. */ |
| 4 |
|
|
|
| 5 |
|
|
/* TERATERM.EXE, scroll buffer routines */ |
| 6 |
|
|
|
| 7 |
|
|
#ifdef __cplusplus |
| 8 |
|
|
extern "C" { |
| 9 |
|
|
#endif |
| 10 |
|
|
|
| 11 |
|
|
void InitBuffer(); |
| 12 |
|
|
void LockBuffer(); |
| 13 |
|
|
void UnlockBuffer(); |
| 14 |
|
|
void FreeBuffer(); |
| 15 |
|
|
void BuffReset(); |
| 16 |
|
|
void BuffAllSelect(); |
| 17 |
|
|
void BuffScreenSelect(); |
| 18 |
|
|
void BuffCancelSelection(); |
| 19 |
|
|
void ChangeSelectRegion(); |
| 20 |
|
|
void BuffScroll(int Count, int Bottom); |
| 21 |
|
|
void BuffInsertSpace(int Count); |
| 22 |
|
|
void BuffEraseCurToEnd(); |
| 23 |
|
|
void BuffEraseHomeToCur(); |
| 24 |
|
|
void BuffInsertLines(int Count, int YEnd); |
| 25 |
|
|
void BuffEraseCharsInLine(int XStart, int Count); |
| 26 |
|
|
void BuffDeleteLines(int Count, int YEnd); |
| 27 |
|
|
void BuffDeleteChars(int Count); |
| 28 |
|
|
void BuffEraseChars(int Count); |
| 29 |
|
|
void BuffFillWithE(); |
| 30 |
|
|
void BuffDrawLine(TCharAttr Attr, int Direction, int C); |
| 31 |
|
|
void BuffEraseBox(int XStart, int YStart, int XEnd, int YEnd); |
| 32 |
|
|
void BuffCBCopy(BOOL Table); |
| 33 |
|
|
void BuffPrint(BOOL ScrollRegion); |
| 34 |
|
|
void BuffDumpCurrentLine(BYTE TERM); |
| 35 |
|
|
void BuffPutChar(BYTE b, TCharAttr Attr, BOOL Insert); |
| 36 |
|
|
void BuffPutKanji(WORD w, TCharAttr Attr, BOOL Insert); |
| 37 |
|
|
void BuffUpdateRect(int XStart, int YStart, int XEnd, int YEnd); |
| 38 |
|
|
void UpdateStr(); |
| 39 |
|
|
void UpdateStrUnicode(void); |
| 40 |
|
|
void MoveCursor(int Xnew, int Ynew); |
| 41 |
|
|
void MoveRight(); |
| 42 |
|
|
void BuffSetCaretWidth(); |
| 43 |
|
|
void BuffScrollNLines(int n); |
| 44 |
|
|
void BuffClearScreen(); |
| 45 |
|
|
void BuffUpdateScroll(); |
| 46 |
|
|
void CursorUpWithScroll(); |
| 47 |
|
|
int BuffUrlDblClk(int Xw, int Yw); |
| 48 |
|
|
void BuffDblClk(int Xw, int Yw); |
| 49 |
|
|
void BuffTplClk(int Yw); |
| 50 |
|
|
void BuffSeveralPagesSelect(int Xw, int Yw); |
| 51 |
|
|
void BuffStartSelect(int Xw, int Yw, BOOL Box); |
| 52 |
|
|
void BuffChangeSelect(int Xw, int Yw, int NClick); |
| 53 |
|
|
void BuffEndSelect(); |
| 54 |
|
|
void BuffChangeWinSize(int Nx, int Ny); |
| 55 |
|
|
void BuffChangeTerminalSize(int Nx, int Ny); |
| 56 |
|
|
void ChangeWin(); |
| 57 |
|
|
void ClearBuffer(); |
| 58 |
|
|
void SetTabStop(); |
| 59 |
|
|
void CursorForwardTab(int count, BOOL AutoWrapMode); |
| 60 |
|
|
void CursorBackwardTab(int count); |
| 61 |
|
|
void ClearTabStop(int Ps); |
| 62 |
|
|
void ShowStatusLine(int Show); |
| 63 |
|
|
#ifndef NO_COPYLINE_FIX |
| 64 |
doda |
3312 |
void BuffLineContinued(BOOL mode); |
| 65 |
|
|
#define SetLineContinued() BuffLineContinued(TRUE) |
| 66 |
|
|
#define ClearLineContinued() BuffLineContinued(FALSE) |
| 67 |
maya |
3227 |
#endif /* NO_COPYLINE_FIX */ |
| 68 |
|
|
void BuffRegionScrollUpNLines(int n); |
| 69 |
|
|
void BuffRegionScrollDownNLines(int n); |
| 70 |
|
|
void BuffSetCurCharAttr(TCharAttr Attr); |
| 71 |
doda |
3743 |
void BuffSaveScreen(); |
| 72 |
|
|
void BuffRestoreScreen(); |
| 73 |
maya |
3227 |
|
| 74 |
|
|
extern int StatusLine; |
| 75 |
|
|
extern int CursorTop, CursorBottom; |
| 76 |
|
|
extern BOOL Selected; |
| 77 |
|
|
extern BOOL Wrap; |
| 78 |
|
|
|
| 79 |
|
|
#ifdef __cplusplus |
| 80 |
|
|
} |
| 81 |
|
|
#endif |