TerminalView (gb.form.terminal)
此控件实现了一个完全兼容VT-100的终端仿真器。
常数
Block
|
Constant for drawing the cursor with a block.
|
Underline
|
Constant for drawing the cursor with an underline.
|
VerticalLine
|
Constant for drawing the cursor with a vertical line.
|
属性
AlternateScreen
|
Return or set if the terminal displays its main screen or its alternate screen.
|
Attr
|
Return the current terminal screen attributes.
|
AutoResize
|
Return or set if the terminal width automatically fits the terminal view.
|
Background
|
Return or set the terminal view background color.
|
Blink
|
Return or set if the terminal cursor blinks.
|
Border
|
Return or set if the terminal view has a border.
|
CharWidth
|
Return the terminal character width in pixels.
|
Column
|
Return the column position of the terminal cursor.
|
Count
|
Return the terminal view lines count.
|
CursorStyle
|
Return or set how the terminal cursor is drawn
|
Foreground
|
Return or set the terminal view foreground color.
|
Limit
|
Return or set the maximum size of the terminal screen buffer.
|
Line
|
Return the line position of the terminal cursor.
|
LineHeight
|
Return the terminal line height in pixels.
|
Link
|
Return an object that represents the information about the link under the mouse cursor.
|
ReadOnly
|
Return or set if the terminal is read-only.
|
ScreenWidth
|
Return or set the terminal screen width in characters.
|
ShowLink
|
Return or set if the terminal detects URLs and makes them clickable.
|
ShowScrollBar
|
Return or set if the terminal view shows its scrollbar.
|
Suspended
|
Return of set if the terminal output is suspended.
|
Text
|
Return the contents of the terminal.
|
Title
|
Return or set the terminal title.
|
Type
|
Return or set the terminal type.
|
WindowCommands
|
Return or set if terminal can be effected by XTerm t escape sequences.
|
Inherited properties
方法
Clear
|
Clear the terminal screen contents, and reset the terminal.
|
ConnectTo
|
|
Copy
|
Copy the selected text of the terminal into the clipboard.
|
EnsureVisible
|
Ensure that the cursor position is visible, by scrolling the screen if necessary.
|
Exec
|
Execute a command inside the terminal view using the EXEC instruction and a virtual terminal.
|
Goto
|
Move the cursor to the specified position.
|
Input
|
Send text to the terminal input.
|
Kill
|
Kill the current process running inside the terminal.
|
Paste
|
Paste the clipboard contents into the terminal, as if it has been entered through the keyboard.
|
Print
|
Print something in the terminal output.
|
Refresh
|
Refresh the terminal contents.
|
Reset
|
Reset the terminal.
|
Shell
|
Execute a command inside the terminal view using the SHELL instruction and a virtual terminal.
|
Inherited methods
事件
Bell
|
This event is raised when the terminal wants to emit a bell
|
Click
|
This event is raised when a link has been clicked.
|
Kill
|
This event is raised when the process running in the terminal terminates.
|
Link
|
This event is raised to check if the text under the mouse is a link.
|
Resize
|
This event is raised when the terminal size has changed.
|
Title
|
This event is raised when the terminal wants to change its title.
|
Inherited events