KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > lib > terminalemulator > Ops


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is Terminal Emulator.
16  * The Initial Developer of the Original Software is Sun Microsystems, Inc..
17  * Portions created by Sun Microsystems, Inc. are Copyright (C) 2001.
18  * All Rights Reserved.
19  *
20  * Contributor(s): Ivan Soleimanipour.
21  */

22
23 /*
24  * "Ops.java"
25  * Ops.java 1.14 01/07/23
26  * The abstract operations the terminal can perform.
27  */

28
29 package org.netbeans.lib.terminalemulator;
30
31 /**
32  * The mnemonics for the ops are _roughly_ based on termcap entries.
33  */

34
35 public
36 interface Ops {
37     public void op_pause();
38     public void op_char(char c);
39     public void op_carriage_return();
40     public void op_line_feed();
41     public void op_back_space();
42     public void op_tab();
43     public void op_bel();
44
45     public void op_soft_reset();
46     public void op_full_reset();
47
48     public void op_al(int count); // add new blank line
49
public void op_bc(int count); // back cursor/column
50
public void op_cm(int row, int col); // cursor motion
51
public void op_cl(); // clear screen and home cursor
52
public void op_ce(); // clear to end of line
53
public void op_cd(); // clear to end of screen
54
public void op_dc(int count); // delete character
55
public void op_dl(int count); // delete line & scroll everything under it up
56
public void op_do(int count); // down 1 line
57
public void op_ho(); // cursor home (upper left of the screen)
58
public void op_ic(int count); // insert character
59
public void op_nd(int count); // cursor right (non-destructive space)
60
public void op_up(int count); // cursor up
61
public void op_sc(); // save cursor position
62
public void op_rc(); // restore saved cursor position
63
public void op_margin(int from, int to); // set vertical scroll margins
64

65     public void op_attr(int mode); // set ANSI attributes
66
public void op_set_mode(int mode);
67     public void op_reset_mode(int mode);
68
69     // These cause data to be sent back:
70
public void op_status_report(int code);
71
72
73     // ops mimicing certain DtTerm features
74
public void op_glyph(int glyph, int rendition); // assign glyph
75
// to current row
76
public void op_reverse(boolean reverse);
77     public void op_cursor_visible(boolean cursor);
78
79
80     // querying operations
81
public int op_get_width();
82     public int op_get_column(); // ... cursor is currently located on (0-origin)
83

84
85     // ops unique to Term
86
public void op_time(boolean refresh); // dump time into output &
87
// control refreshEnabled prop
88
}
89
Popular Tags