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 6806 - (hide annotations) (download) (as text)
Thu Jun 15 00:37:01 2017 UTC (6 years, 9 months ago) by doda
File MIME type: text/x-chdr
File size: 4753 byte(s)
TeraTerm Project としてのライセンス表記を追加

とりあえず Tera Term 本体分。
TeraTerm Project としての copyright 表記の年部分はコミットログを確認して書いたつもりだけど、ミスってたらすみません。

TODO: 過去に取り込んだパッチに関する著作権表記の追加
1 doda 6806 /*
2     * Copyright (C) 1994-1998 T. Teranishi
3     * (C) 2005-2017 TeraTerm Project
4     * All rights reserved.
5     *
6     * Redistribution and use in source and binary forms, with or without modification,
7     * are permitted provided that the following conditions are met:
8     *
9     * 1. Redistributions of source code must retain the above copyright notice,
10     * this list of conditions and the following disclaimer.
11     * 2. Redistributions in binary form must reproduce the above copyright notice,
12     * this list of conditions and the following disclaimer in the documentation
13     * and/or other materials provided with the distribution.
14     * 3. The name of the author may not be used to endorse or promote products derived
15     * from this software without specific prior written permission.
16     *
17     * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
18     * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19     * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
20     * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21     * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
22     * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23     * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24     * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
25     * OF SUCH DAMAGE.
26     */
27 maya 3227
28     /* TERATERM.EXE, scroll buffer routines */
29    
30     #ifdef __cplusplus
31     extern "C" {
32     #endif
33    
34     void InitBuffer();
35     void LockBuffer();
36     void UnlockBuffer();
37     void FreeBuffer();
38     void BuffReset();
39     void BuffAllSelect();
40     void BuffScreenSelect();
41     void BuffCancelSelection();
42     void ChangeSelectRegion();
43     void BuffScroll(int Count, int Bottom);
44     void BuffInsertSpace(int Count);
45     void BuffEraseCurToEnd();
46     void BuffEraseHomeToCur();
47     void BuffInsertLines(int Count, int YEnd);
48     void BuffEraseCharsInLine(int XStart, int Count);
49     void BuffDeleteLines(int Count, int YEnd);
50     void BuffDeleteChars(int Count);
51     void BuffEraseChars(int Count);
52     void BuffFillWithE();
53     void BuffDrawLine(TCharAttr Attr, int Direction, int C);
54     void BuffEraseBox(int XStart, int YStart, int XEnd, int YEnd);
55 doda 5090 void BuffFillBox(char c, int XStart, int YStart, int XEnd, int YEnd);
56 doda 5089 void BuffCopyBox(int SrcXStart, int SrcYStart, int SrcXEnd, int SrcYEnd, int SrcPage, int DstX, int DstY, int DstPage);
57 doda 5095 void BuffChangeAttrBox(int XStart, int YStart, int XEnd, int YEnd, PCharAttr attr, PCharAttr mask);
58 maya 3227 void BuffCBCopy(BOOL Table);
59     void BuffPrint(BOOL ScrollRegion);
60     void BuffDumpCurrentLine(BYTE TERM);
61     void BuffPutChar(BYTE b, TCharAttr Attr, BOOL Insert);
62     void BuffPutKanji(WORD w, TCharAttr Attr, BOOL Insert);
63     void BuffUpdateRect(int XStart, int YStart, int XEnd, int YEnd);
64     void UpdateStr();
65     void UpdateStrUnicode(void);
66     void MoveCursor(int Xnew, int Ynew);
67     void MoveRight();
68     void BuffSetCaretWidth();
69     void BuffScrollNLines(int n);
70     void BuffClearScreen();
71     void BuffUpdateScroll();
72     void CursorUpWithScroll();
73     int BuffUrlDblClk(int Xw, int Yw);
74     void BuffDblClk(int Xw, int Yw);
75     void BuffTplClk(int Yw);
76     void BuffSeveralPagesSelect(int Xw, int Yw);
77     void BuffStartSelect(int Xw, int Yw, BOOL Box);
78     void BuffChangeSelect(int Xw, int Yw, int NClick);
79     void BuffEndSelect();
80     void BuffChangeWinSize(int Nx, int Ny);
81     void BuffChangeTerminalSize(int Nx, int Ny);
82     void ChangeWin();
83     void ClearBuffer();
84     void SetTabStop();
85     void CursorForwardTab(int count, BOOL AutoWrapMode);
86     void CursorBackwardTab(int count);
87     void ClearTabStop(int Ps);
88     void ShowStatusLine(int Show);
89 doda 3312 void BuffLineContinued(BOOL mode);
90     #define SetLineContinued() BuffLineContinued(TRUE)
91     #define ClearLineContinued() BuffLineContinued(FALSE)
92 maya 3227 void BuffRegionScrollUpNLines(int n);
93     void BuffRegionScrollDownNLines(int n);
94     void BuffSetCurCharAttr(TCharAttr Attr);
95 doda 3743 void BuffSaveScreen();
96     void BuffRestoreScreen();
97 doda 3745 void BuffDiscardSavedScreen();
98 doda 4070 void BuffSelectedEraseCharsInLine(int XStart, int Count);
99     void BuffSelectedEraseCurToEnd();
100     void BuffSelectedEraseHomeToCur();
101     void BuffSelectedEraseScreen();
102 doda 5091 void BuffSelectiveEraseBox(int XStart, int YStart, int XEnd, int YEnd);
103 doda 4243 void BuffScrollLeft(int count);
104     void BuffScrollRight(int count);
105 yutakapon 4932 int BuffGetCurrentLineData(char *buf, int bufsize);
106 yutakapon 5392 int BuffGetAnyLineData(int offset_y, char *buf, int bufsize);
107 doda 5279 BOOL BuffCheckMouseOnURL(int Xw, int Yw);
108 maya 3227
109     extern int StatusLine;
110 doda 5324 extern int CursorTop, CursorBottom, CursorLeftM, CursorRightM;
111 maya 3227 extern BOOL Selected;
112     extern BOOL Wrap;
113    
114 doda 6175 #define isCursorOnStatusLine (StatusLine && CursorY == NumOfLines-1)
115 doda 5324
116 maya 3227 #ifdef __cplusplus
117     }
118     #endif

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