import "Accessibility_Terminal.idl";
Public Member Functions | |
| string | getLines (in long startLine, in long endLine) |
| unsigned long | getCaretLine (out long column) |
| getCaretLine: | |
| boolean | setCaret (inout long line, inout long column) |
| Move the caret to a specific line/column position in the Terminal. | |
| long | getOffsetAtLine (in long line) |
| long | getLineAtOffset (in long offset, out long column) |
Public Attributes | |
| readonly attribute long | nLines |
nLines: a long containing the number of lines in this terminal. | |
| readonly attribute long | nColumns |
nColumns: a long containing the number of columns in this terminal. | |
| readonly attribute boolean | isDoubleWidth |
| for Asian language support | |
| readonly attribute string | applicationName |
applicationName: a string containing the name of the application which currently 'owns' the terminal window's content. | |
In this API, 'line' refers to the terminal row position as well as the relevant line of text. Terminals are represented as a 2D array of text; text which has scrolled out of view is not exposed via this API.
"terminal:line-changed" A line of text in the terminal has changed. "terminal:columncount-changed" The number of text columns displayed by this terminal has changed. "terminal:linecount-changed" The number of lines displayed (including blank or empty lines) has changed. "terminal:application-changed" The application which currently ¨owns¨ the output to this terminal has changed. "terminal:charwidth-changed" The terminal's default character width, on which column counts are based, has changed from doublewidth-to-singlewidth or vice-versa. Implementors of Terminal should also implement Text, therefore ¨text:text-changed¨ events will be fired by these objects as well. This information is partially redundant and clients should choose to react to one or another based on their own preferences and convenience. Changed in the position of the text caret within a terminal are notified via ¨text:caret-moved¨ events, via the Text interface.
Definition at line 63 of file Accessibility_Terminal.idl.
|
||||||||||||
|
|
|
|
getCaretLine: Get the current text caret position as 0-indexed line and column offsets.
|
|
||||||||||||
|
Move the caret to a specific line/column position in the Terminal.
|
|
|
|
|
||||||||||||
|
|
|
|
nLines: a
Definition at line 69 of file Accessibility_Terminal.idl. |
|
|
nColumns: a
Definition at line 75 of file Accessibility_Terminal.idl. |
|
|
for Asian language support
Definition at line 89 of file Accessibility_Terminal.idl. |
|
|
applicationName: a
Definition at line 96 of file Accessibility_Terminal.idl. |
1.4.3