Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /trunk/teraterm/teraterm/buffer.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6841 - (hide annotations) (download) (as text)
Tue Jul 4 15:02:28 2017 UTC (6 years, 9 months ago) by doda
File MIME type: text/x-chdr
File size: 4749 byte(s)
TeraTerm Project としてのライセンス表記を追加

・Tera Term 本体分を横 80 桁に収まるように改行位置を調整
・ttssh 関連の分を追加
1 doda 6806 /*
2     * Copyright (C) 1994-1998 T. Teranishi
3     * (C) 2005-2017 TeraTerm Project
4     * 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, scroll buffer routines */
31    
32     #ifdef __cplusplus
33     extern "C" {
34     #endif
35    
36     void InitBuffer();
37     void LockBuffer();
38     void UnlockBuffer();
39     void FreeBuffer();
40     void BuffReset();
41     void BuffAllSelect();
42     void BuffScreenSelect();
43     void BuffCancelSelection();
44     void ChangeSelectRegion();
45     void BuffScroll(int Count, int Bottom);
46     void BuffInsertSpace(int Count);
47     void BuffEraseCurToEnd();
48     void BuffEraseHomeToCur();
49     void BuffInsertLines(int Count, int YEnd);
50     void BuffEraseCharsInLine(int XStart, int Count);
51     void BuffDeleteLines(int Count, int YEnd);
52     void BuffDeleteChars(int Count);
53     void BuffEraseChars(int Count);
54     void BuffFillWithE();
55     void BuffDrawLine(TCharAttr Attr, int Direction, int C);
56     void BuffEraseBox(int XStart, int YStart, int XEnd, int YEnd);
57 doda 5090 void BuffFillBox(char c, int XStart, int YStart, int XEnd, int YEnd);
58 doda 5089 void BuffCopyBox(int SrcXStart, int SrcYStart, int SrcXEnd, int SrcYEnd, int SrcPage, int DstX, int DstY, int DstPage);
59 doda 5095 void BuffChangeAttrBox(int XStart, int YStart, int XEnd, int YEnd, PCharAttr attr, PCharAttr mask);
60 maya 3227 void BuffCBCopy(BOOL Table);
61     void BuffPrint(BOOL ScrollRegion);
62     void BuffDumpCurrentLine(BYTE TERM);
63     void BuffPutChar(BYTE b, TCharAttr Attr, BOOL Insert);
64     void BuffPutKanji(WORD w, TCharAttr Attr, BOOL Insert);
65     void BuffUpdateRect(int XStart, int YStart, int XEnd, int YEnd);
66     void UpdateStr();
67     void UpdateStrUnicode(void);
68     void MoveCursor(int Xnew, int Ynew);
69     void MoveRight();
70     void BuffSetCaretWidth();
71     void BuffScrollNLines(int n);
72     void BuffClearScreen();
73     void BuffUpdateScroll();
74     void CursorUpWithScroll();
75     int BuffUrlDblClk(int Xw, int Yw);
76     void BuffDblClk(int Xw, int Yw);
77     void BuffTplClk(int Yw);
78     void BuffSeveralPagesSelect(int Xw, int Yw);
79     void BuffStartSelect(int Xw, int Yw, BOOL Box);
80     void BuffChangeSelect(int Xw, int Yw, int NClick);
81     void BuffEndSelect();
82     void BuffChangeWinSize(int Nx, int Ny);
83     void BuffChangeTerminalSize(int Nx, int Ny);
84     void ChangeWin();
85     void ClearBuffer();
86     void SetTabStop();
87     void CursorForwardTab(int count, BOOL AutoWrapMode);
88     void CursorBackwardTab(int count);
89     void ClearTabStop(int Ps);
90     void ShowStatusLine(int Show);
91 doda 3312 void BuffLineContinued(BOOL mode);
92     #define SetLineContinued() BuffLineContinued(TRUE)
93     #define ClearLineContinued() BuffLineContinued(FALSE)
94 maya 3227 void BuffRegionScrollUpNLines(int n);
95     void BuffRegionScrollDownNLines(int n);
96     void BuffSetCurCharAttr(TCharAttr Attr);
97 doda 3743 void BuffSaveScreen();
98     void BuffRestoreScreen();
99 doda 3745 void BuffDiscardSavedScreen();
100 doda 4070 void BuffSelectedEraseCharsInLine(int XStart, int Count);
101     void BuffSelectedEraseCurToEnd();
102     void BuffSelectedEraseHomeToCur();
103     void BuffSelectedEraseScreen();
104 doda 5091 void BuffSelectiveEraseBox(int XStart, int YStart, int XEnd, int YEnd);
105 doda 4243 void BuffScrollLeft(int count);
106     void BuffScrollRight(int count);
107 yutakapon 4932 int BuffGetCurrentLineData(char *buf, int bufsize);
108 yutakapon 5392 int BuffGetAnyLineData(int offset_y, char *buf, int bufsize);
109 doda 5279 BOOL BuffCheckMouseOnURL(int Xw, int Yw);
110 maya 3227
111     extern int StatusLine;
112 doda 5324 extern int CursorTop, CursorBottom, CursorLeftM, CursorRightM;
113 maya 3227 extern BOOL Selected;
114     extern BOOL Wrap;
115    
116 doda 6175 #define isCursorOnStatusLine (StatusLine && CursorY == NumOfLines-1)
117 doda 5324
118 maya 3227 #ifdef __cplusplus
119     }
120     #endif

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