Download Now
Forums

    Reference Codebot.Terminal.Controls.pas

    Part of the Codebot Terminal package

    The Codebot.Terminal.Controls unit gives you TTerminal, a terminal emulator control that runs the user's shell inside your form using VTE, the library of the GNOME terminal.

    The shell starts the first time the control is shown. OnReady tells you when the shell has written its prompt, and OnTerminate tells you when it ends, such as when the user types exit. If you want the terminal to keep going, call Restart from OnTerminate to clear the terminal and start a new shell. HasTerminal tells you whether the control is showing a running terminal.

    You can choose the font of the terminal, whether it shows a vertical scroll bar, and its colors through TTerminalColors. The colors cover the text, background, bold and dim text, cursor, and selection, along with Palette, which chooses the sixteen numbered colors programs such as ls ask for. By default the terminal shows silver text on black using the Tango palette of the GNOME terminal. Dim is not used with GTK3, and Cursor, Highlight, and HighlightText are not used with GTK2, where a selection swaps the text and background colors.

    While you are designing your form there is no running terminal, so the control draws a prompt and a cursor in its colors and font instead.

    The package only builds with the GTK2 and GTK3 widgetsets, and TerminalAvailable always returns True.

    Items 79 items

    NameKindLine
    TCustomTerminalclass77
    Createconstructor116
    Destroydestructor117
    DestroyWndprocedure95
    DoReadyprocedure103
    DoTerminateprocedure105
    FontChangedprocedure96
    HasTerminalfunction119
    InitializeWndprocedure94
    Paintprocedure99
    PaintWindowprocedure97
    Restartprocedure121
    WSRegisterClassprocedure93
    Colorsproperty107
    ControlCanvasproperty101
    OnReadyproperty112
    OnTerminateproperty114
    ScrollBarproperty110
    TerminalAvailablefunction177
    TTerminalclass126
    Alignproperty128
    Anchorsproperty129
    BorderSpacingproperty130
    Colorsproperty131
    Constraintsproperty132
    DockSiteproperty133
    DragCursorproperty134
    DragKindproperty135
    DragModeproperty136
    Enabledproperty137
    Fontproperty138
    OnClickproperty147
    OnContextPopupproperty148
    OnDblClickproperty151
    OnDockDropproperty149
    OnDockOverproperty150
    OnDragDropproperty152
    OnDragOverproperty153
    OnEndDockproperty154
    OnEndDragproperty155
    OnEnterproperty156
    OnExitproperty157
    OnGetDockCaptionproperty159
    OnGetSiteInfoproperty158
    OnMouseDownproperty160
    OnMouseEnterproperty161
    OnMouseLeaveproperty162
    OnMouseMoveproperty163
    OnMouseUpproperty164
    OnMouseWheelproperty165
    OnMouseWheelDownproperty166
    OnMouseWheelUpproperty167
    OnReadyproperty168
    OnResizeproperty169
    OnStartDockproperty170
    OnStartDragproperty171
    OnTerminateproperty173
    OnUnDockproperty172
    ParentShowHintproperty139
    PopupMenuproperty140
    ScrollBarproperty141
    ShowHintproperty142
    TabOrderproperty143
    TabStopproperty144
    UseDockManagerproperty145
    Visibleproperty146
    TTerminalColorsclass42
    Assignprocedure57
    Changeprocedure52
    Createconstructor56
    Backgroundproperty62
    Boldproperty63
    Cursorproperty65
    Dimproperty64
    Foregroundproperty61
    Highlightproperty66
    HighlightTextproperty67
    OnChangeproperty59
    Paletteproperty68