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 7086 - (hide annotations) (download) (as text)
Thu Mar 29 14:58:31 2018 UTC (6 years ago) by doda
File MIME type: text/x-chdr
File size: 4853 byte(s)
DECSACE に対応 #33906

DECCARA / DECRARA を DECSACE の設定に従って適用範囲を変更するようにした。
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 doda 7086 void BuffChangeAttrStream(int XStart, int YStart, int XEnd, int YEnd, PCharAttr attr, PCharAttr mask);
61 maya 3227 void BuffCBCopy(BOOL Table);
62     void BuffPrint(BOOL ScrollRegion);
63     void BuffDumpCurrentLine(BYTE TERM);
64     void BuffPutChar(BYTE b, TCharAttr Attr, BOOL Insert);
65     void BuffPutKanji(WORD w, TCharAttr Attr, BOOL Insert);
66     void BuffUpdateRect(int XStart, int YStart, int XEnd, int YEnd);
67     void UpdateStr();
68     void UpdateStrUnicode(void);
69     void MoveCursor(int Xnew, int Ynew);
70     void MoveRight();
71     void BuffSetCaretWidth();
72     void BuffScrollNLines(int n);
73     void BuffClearScreen();
74     void BuffUpdateScroll();
75     void CursorUpWithScroll();
76     int BuffUrlDblClk(int Xw, int Yw);
77     void BuffDblClk(int Xw, int Yw);
78     void BuffTplClk(int Yw);
79     void BuffSeveralPagesSelect(int Xw, int Yw);
80     void BuffStartSelect(int Xw, int Yw, BOOL Box);
81     void BuffChangeSelect(int Xw, int Yw, int NClick);
82     void BuffEndSelect();
83     void BuffChangeWinSize(int Nx, int Ny);
84     void BuffChangeTerminalSize(int Nx, int Ny);
85     void ChangeWin();
86     void ClearBuffer();
87     void SetTabStop();
88     void CursorForwardTab(int count, BOOL AutoWrapMode);
89     void CursorBackwardTab(int count);
90     void ClearTabStop(int Ps);
91     void ShowStatusLine(int Show);
92 doda 3312 void BuffLineContinued(BOOL mode);
93     #define SetLineContinued() BuffLineContinued(TRUE)
94     #define ClearLineContinued() BuffLineContinued(FALSE)
95 maya 3227 void BuffRegionScrollUpNLines(int n);
96     void BuffRegionScrollDownNLines(int n);
97     void BuffSetCurCharAttr(TCharAttr Attr);
98 doda 3743 void BuffSaveScreen();
99     void BuffRestoreScreen();
100 doda 3745 void BuffDiscardSavedScreen();
101 doda 4070 void BuffSelectedEraseCharsInLine(int XStart, int Count);
102     void BuffSelectedEraseCurToEnd();
103     void BuffSelectedEraseHomeToCur();
104     void BuffSelectedEraseScreen();
105 doda 5091 void BuffSelectiveEraseBox(int XStart, int YStart, int XEnd, int YEnd);
106 doda 4243 void BuffScrollLeft(int count);
107     void BuffScrollRight(int count);
108 yutakapon 4932 int BuffGetCurrentLineData(char *buf, int bufsize);
109 yutakapon 5392 int BuffGetAnyLineData(int offset_y, char *buf, int bufsize);
110 doda 5279 BOOL BuffCheckMouseOnURL(int Xw, int Yw);
111 maya 3227
112     extern int StatusLine;
113 doda 5324 extern int CursorTop, CursorBottom, CursorLeftM, CursorRightM;
114 maya 3227 extern BOOL Selected;
115     extern BOOL Wrap;
116    
117 doda 6175 #define isCursorOnStatusLine (StatusLine && CursorY == NumOfLines-1)
118 doda 5324
119 maya 3227 #ifdef __cplusplus
120     }
121     #endif

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