Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

TerminalControl Class

Namespace: Rebex.TerminalEmulation
Assembly: Rebex.Terminal.Control.dll (version 7.0.9119)

Terminal emulator control.

Syntax
public class TerminalControl : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, ITerminal, IDisposable
Inheritance
Object
MarshalByRefObject
Component
Control
TerminalControl
Implements
IDropTarget
ISynchronizeInvoke
IWin32Window
IBindableComponent
IComponent
ITerminal
IDisposable
Inherited Members
Component.Container
Component.DesignMode
Component.Dispose()
Component.Disposed
Component.Events
Component.GetService(Type)
Component.ToString()
MarshalByRefObject.GetLifetimeService()
MarshalByRefObject.InitializeLifetimeService()
MarshalByRefObject.MemberwiseClone(Boolean)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Control.AccessibilityNotifyClients(AccessibleEvents, Int32)
Control.AccessibilityNotifyClients(AccessibleEvents, Int32, Int32)
Control.AccessibilityObject
Control.AccessibleDefaultActionDescription
Control.AccessibleDescription
Control.AccessibleName
Control.AccessibleRole
Control.AllowDrop
Control.Anchor
Control.AutoScrollOffset
Control.BackColor
Control.BackColorChanged
Control.BackgroundImage
Control.BackgroundImageChanged
Control.BackgroundImageLayout
Control.BackgroundImageLayoutChanged
Control.BeginInvoke(Action)
Control.BeginInvoke(Delegate)
Control.BeginInvoke(Delegate, Object[])
Control.BindingContext
Control.BindingContextChanged
Control.Bottom
Control.Bounds
Control.BringToFront()
Control.CanEnableIme
Control.CanFocus
Control.CanRaiseEvents
Control.CanSelect
Control.Capture
Control.CausesValidation
Control.CausesValidationChanged
Control.ChangeUICues
Control.CheckForIllegalCrossThreadCalls
Control.Click
Control.ClientRectangle
Control.ClientSize
Control.ClientSizeChanged
Control.CompanyName
Control.Contains(Control)
Control.ContainsFocus
Control.ContextMenuStrip
Control.ContextMenuStripChanged
Control.ControlAdded
Control.ControlRemoved
Control.Controls
Control.CreateAccessibilityInstance()
Control.CreateControl()
Control.CreateControlsInstance()
Control.Created
Control.CreateGraphics()
Control.CreateHandle()
Control.CreateParams
Control.Cursor
Control.CursorChanged
Control.DataBindings
Control.DataContext
Control.DataContextChanged
Control.DefaultBackColor
Control.DefaultCursor
Control.DefaultFont
Control.DefaultForeColor
Control.DefaultImeMode
Control.DefaultMargin
Control.DefaultMaximumSize
Control.DefaultMinimumSize
Control.DefaultPadding
Control.DefaultSize
Control.DefWndProc(Message)
Control.DestroyHandle()
Control.DeviceDpi
Control.DisplayRectangle
Control.Disposing
Control.Dock
Control.DockChanged
Control.DoDragDrop(Object, DragDropEffects)
Control.DoDragDrop(Object, DragDropEffects, Bitmap, Point, Boolean)
Control.DoubleBuffered
Control.DoubleClick
Control.DpiChangedAfterParent
Control.DpiChangedBeforeParent
Control.DragDrop
Control.DragEnter
Control.DragLeave
Control.DragOver
Control.DrawToBitmap(Bitmap, Rectangle)
Control.Enabled
Control.EnabledChanged
Control.EndInvoke(IAsyncResult)
Control.Enter
Control.FindForm()
Control.Focus()
Control.Focused
Control.FontChanged
Control.FontHeight
Control.ForeColor
Control.ForeColorChanged
Control.FromChildHandle(IntPtr)
Control.FromHandle(IntPtr)
Control.GetAccessibilityObjectById(Int32)
Control.GetAutoSizeMode()
Control.GetChildAtPoint(Point)
Control.GetChildAtPoint(Point, GetChildAtPointSkip)
Control.GetContainerControl()
Control.GetNextControl(Control, Boolean)
Control.GetPreferredSize(Size)
Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)
Control.GetStyle(ControlStyles)
Control.GetTopLevel()
Control.GiveFeedback
Control.GotFocus
Control.Handle
Control.HandleCreated
Control.HandleDestroyed
Control.HasChildren
Control.Height
Control.HelpRequested
Control.Hide()
Control.ImeMode
Control.ImeModeBase
Control.ImeModeChanged
Control.InitLayout()
Control.Invalidate()
Control.Invalidate(Boolean)
Control.Invalidate(Rectangle)
Control.Invalidate(Rectangle, Boolean)
Control.Invalidate(Region)
Control.Invalidate(Region, Boolean)
Control.Invalidated
Control.Invoke(Action)
Control.Invoke(Delegate)
Control.Invoke(Delegate, Object[])
Control.Invoke<T>(Func<T>)
Control.InvokeGotFocus(Control, EventArgs)
Control.InvokeLostFocus(Control, EventArgs)
Control.InvokeOnClick(Control, EventArgs)
Control.InvokePaint(Control, PaintEventArgs)
Control.InvokePaintBackground(Control, PaintEventArgs)
Control.InvokeRequired
Control.IsAccessible
Control.IsAncestorSiteInDesignMode
Control.IsDisposed
Control.IsHandleCreated
Control.IsKeyLocked(Keys)
Control.IsMirrored
Control.IsMnemonic(Char, String)
Control.KeyDown
Control.KeyPress
Control.KeyUp
Control.Layout
Control.LayoutEngine
Control.Leave
Control.Left
Control.Location
Control.LocationChanged
Control.LogicalToDeviceUnits(Size)
Control.LogicalToDeviceUnits(Int32)
Control.LostFocus
Control.Margin
Control.MarginChanged
Control.MaximumSize
Control.MinimumSize
Control.ModifierKeys
Control.MouseButtons
Control.MouseCaptureChanged
Control.MouseClick
Control.MouseDoubleClick
Control.MouseDown
Control.MouseEnter
Control.MouseHover
Control.MouseLeave
Control.MouseMove
Control.MousePosition
Control.MouseUp
Control.MouseWheel
Control.Move
Control.Name
Control.NotifyInvalidate(Rectangle)
Control.OnAutoSizeChanged(EventArgs)
Control.OnBackColorChanged(EventArgs)
Control.OnBackgroundImageChanged(EventArgs)
Control.OnBackgroundImageLayoutChanged(EventArgs)
Control.OnBindingContextChanged(EventArgs)
Control.OnCausesValidationChanged(EventArgs)
Control.OnChangeUICues(UICuesEventArgs)
Control.OnClick(EventArgs)
Control.OnClientSizeChanged(EventArgs)
Control.OnContextMenuStripChanged(EventArgs)
Control.OnControlAdded(ControlEventArgs)
Control.OnControlRemoved(ControlEventArgs)
Control.OnCursorChanged(EventArgs)
Control.OnDataContextChanged(EventArgs)
Control.OnDockChanged(EventArgs)
Control.OnDoubleClick(EventArgs)
Control.OnDpiChangedAfterParent(EventArgs)
Control.OnDpiChangedBeforeParent(EventArgs)
Control.OnDragDrop(DragEventArgs)
Control.OnDragEnter(DragEventArgs)
Control.OnDragLeave(EventArgs)
Control.OnDragOver(DragEventArgs)
Control.OnEnabledChanged(EventArgs)
Control.OnEnter(EventArgs)
Control.OnFontChanged(EventArgs)
Control.OnForeColorChanged(EventArgs)
Control.OnGiveFeedback(GiveFeedbackEventArgs)
Control.OnGotFocus(EventArgs)
Control.OnHandleCreated(EventArgs)
Control.OnHandleDestroyed(EventArgs)
Control.OnHelpRequested(HelpEventArgs)
Control.OnImeModeChanged(EventArgs)
Control.OnInvalidated(InvalidateEventArgs)
Control.OnLayout(LayoutEventArgs)
Control.OnLeave(EventArgs)
Control.OnLocationChanged(EventArgs)
Control.OnMarginChanged(EventArgs)
Control.OnMouseCaptureChanged(EventArgs)
Control.OnMouseClick(MouseEventArgs)
Control.OnMouseDoubleClick(MouseEventArgs)
Control.OnMouseEnter(EventArgs)
Control.OnMouseHover(EventArgs)
Control.OnMouseLeave(EventArgs)
Control.OnMove(EventArgs)
Control.OnNotifyMessage(Message)
Control.OnPaddingChanged(EventArgs)
Control.OnParentBackColorChanged(EventArgs)
Control.OnParentBackgroundImageChanged(EventArgs)
Control.OnParentBindingContextChanged(EventArgs)
Control.OnParentChanged(EventArgs)
Control.OnParentCursorChanged(EventArgs)
Control.OnParentDataContextChanged(EventArgs)
Control.OnParentEnabledChanged(EventArgs)
Control.OnParentFontChanged(EventArgs)
Control.OnParentForeColorChanged(EventArgs)
Control.OnParentRightToLeftChanged(EventArgs)
Control.OnParentVisibleChanged(EventArgs)
Control.OnPreviewKeyDown(PreviewKeyDownEventArgs)
Control.OnPrint(PaintEventArgs)
Control.OnQueryContinueDrag(QueryContinueDragEventArgs)
Control.OnRegionChanged(EventArgs)
Control.OnRightToLeftChanged(EventArgs)
Control.OnStyleChanged(EventArgs)
Control.OnSystemColorsChanged(EventArgs)
Control.OnTabIndexChanged(EventArgs)
Control.OnTabStopChanged(EventArgs)
Control.OnTextChanged(EventArgs)
Control.OnValidated(EventArgs)
Control.OnValidating(CancelEventArgs)
Control.OnVisibleChanged(EventArgs)
Control.Padding
Control.PaddingChanged
Control.Paint
Control.Parent
Control.ParentChanged
Control.PerformLayout()
Control.PerformLayout(Control, String)
Control.PointToClient(Point)
Control.PointToScreen(Point)
Control.PreferredSize
Control.PreProcessControlMessage(Message)
Control.PreviewKeyDown
Control.ProcessDialogChar(Char)
Control.ProcessDialogKey(Keys)
Control.ProcessKeyEventArgs(Message)
Control.ProcessKeyMessage(Message)
Control.ProcessKeyPreview(Message)
Control.ProcessMnemonic(Char)
Control.ProductName
Control.ProductVersion
Control.PropagatingImeMode
Control.QueryAccessibilityHelp
Control.QueryContinueDrag
Control.RaiseDragEvent(Object, DragEventArgs)
Control.RaiseKeyEvent(Object, KeyEventArgs)
Control.RaiseMouseEvent(Object, MouseEventArgs)
Control.RaisePaintEvent(Object, PaintEventArgs)
Control.RecreateHandle()
Control.RecreatingHandle
Control.RectangleToClient(Rectangle)
Control.RectangleToScreen(Rectangle)
Control.ReflectMessage(IntPtr, Message)
Control.Refresh()
Control.Region
Control.RegionChanged
Control.RenderRightToLeft
Control.RescaleConstantsForDpi(Int32, Int32)
Control.ResetMouseEventArgs()
Control.ResetText()
Control.Resize
Control.ResizeRedraw
Control.ResumeLayout()
Control.ResumeLayout(Boolean)
Control.Right
Control.RightToLeft
Control.RightToLeftChanged
Control.RtlTranslateAlignment(ContentAlignment)
Control.RtlTranslateAlignment(HorizontalAlignment)
Control.RtlTranslateAlignment(LeftRightAlignment)
Control.RtlTranslateContent(ContentAlignment)
Control.RtlTranslateHorizontal(HorizontalAlignment)
Control.RtlTranslateLeftRight(LeftRightAlignment)
Control.Scale(SizeF)
Control.ScaleBitmapLogicalToDevice(Bitmap)
Control.ScaleChildren
Control.ScaleControl(SizeF, BoundsSpecified)
Control.Select()
Control.Select(Boolean, Boolean)
Control.SelectNextControl(Control, Boolean, Boolean, Boolean, Boolean)
Control.SendToBack()
Control.SetAutoSizeMode(AutoSizeMode)
Control.SetBounds(Int32, Int32, Int32, Int32)
Control.SetBounds(Int32, Int32, Int32, Int32, BoundsSpecified)
Control.SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)
Control.SetClientSizeCore(Int32, Int32)
Control.SetStyle(ControlStyles, Boolean)
Control.SetTopLevel(Boolean)
Control.SetVisibleCore(Boolean)
Control.Show()
Control.ShowFocusCues
Control.ShowKeyboardCues
Control.Site
Control.Size
Control.SizeChanged
Control.SizeFromClientSize(Size)
Control.StyleChanged
Control.SuspendLayout()
Control.IDropTarget.OnDragDrop(DragEventArgs)
Control.IDropTarget.OnDragEnter(DragEventArgs)
Control.IDropTarget.OnDragLeave(EventArgs)
Control.IDropTarget.OnDragOver(DragEventArgs)
Control.SystemColorsChanged
Control.TabIndex
Control.TabIndexChanged
Control.TabStop
Control.TabStopChanged
Control.Tag
Control.Text
Control.TextChanged
Control.Top
Control.TopLevelControl
Control.Update()
Control.UpdateBounds()
Control.UpdateBounds(Int32, Int32, Int32, Int32)
Control.UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32)
Control.UpdateStyles()
Control.UpdateZOrder()
Control.UseWaitCursor
Control.Validated
Control.Validating
Control.Visible
Control.VisibleChanged
Control.Width

Constructors

Name Description
TerminalControl()

Creates a new instance of terminal control.

Properties

Name Description
AltKeyMode

Determines how to handle the Alt key.

AutoAdjustTerminalSize

Enables or disables automatic terminal size adjustment based on font size and control size.

CellSize

Gets the size of a character cell.

CursorBlinkingInterval

Gets or sets text cursor blinking interval (in miliseconds). Setting it to a value lower than 100 disables blinking.

CursorMouse

Gets or sets the cursor to display in mouse enabled mode.

CursorStyle

Gets or sets text cursor style.

CursorText

Gets or sets the cursor to display in standard text mode.

DataProcessingMode

Gets incoming data processing mode.

EnableMouseWheel

Enables mouse wheel scrolling.

Font

Gets or sets the font of the text displayed by this control.

HistoryLength

Gets the current history buffer length.

HistoryMaxLength

Gets or sets a maximum history buffer length.

MousePasteEnabled

Enables or disables right-mouse-button paste functionality.

MouseSelectionCopiesToClipboard

Gets or sets a value whether to copy selected text into clipboard automatically or not.

MouseWheelMode

Gets or sets the behavior for mouse wheel action.

Options

Gets or sets terminal options.

Palette

Gets or sets the terminal palette.

Recorder

Gets or sets incoming data recorder.

Screen

Gets the terminal screen object.

ScreenPosition

Gets the first displayed row of the terminal screen. Values goes from zero to minus HistoryLength.

Scripting

Gets the object which allows enhanced scripting.

ScrollbackResetOnDisplayActivity

Enables or disables scrollback reset on display activity (when received any data).

ScrollBarEnabled

Enables or disables scroll bar.

SelectionMode

Gets or sets text selection mode (for paste functionality).

SuppressAltAsMenuKey

Determines whether to suppress menu activation when Alt key is pressed.

SuppressShortcutKeys

Determines how to handle keystrokes which are registered shortcut keys of the application (e.g. Ctrl+O can activate a menu item).

TerminalFont

Gets or sets the terminal font. Setting the font may also cause the screen size to be adjusted to fit into the control area.

Transfers

Gets the object which allows file transferring.

UserInputEnabled

Enables or disables user input.

Methods

Name Description
Bind(IShellChannelFactory)

Binds the control to the specified shell channel factory - usually an instance of Rebex.Net.Ssh or Rebex.Net.Telnet class.

BindAsync(IShellChannelFactory, Object)

Begins asynchronous Bind operation. Binds the control to the specified shell channel factory - usually an instance of Rebex.Net.Ssh or Rebex.Net.Telnet class.

Dispose(Boolean)

Clean up any resources being used.

GetControlSize(Int32, Int32)

Calculate a control size corresponding to the specified screen size.

GetSelectedText()

Returns the currently selected text.

IsInputChar(Char)

Determines if a character is an input character the control recognizes.

IsInputKey(Keys)

Determines whether the specified key is a regular input key or a special key that requires preprocessing.

OnActionRequested(ActionRequestEventArgs)

Raises the ActionRequested event.

OnCreateControl()

Raises the CreateControl() event.

OnCursorColor(CursorColorEventArgs)

Raises the CursorColor event.

OnDisconnected(EventArgs)

Raises the Disconnected event.

OnKeyDown(KeyEventArgs)

Raises the KeyDown event.

OnKeyPress(KeyPressEventArgs)

Raises the KeyPress event.

OnKeyUp(KeyEventArgs)

Raises the KeyUp event.

OnLostFocus(EventArgs)

Raises the OnLostFocus(EventArgs) event.

OnMouseDown(MouseEventArgs)

Raises the MouseDown event.

OnMouseMove(MouseEventArgs)

Raises the MouseMove event.

OnMouseUp(MouseEventArgs)

Raises the MouseUp event.

OnMouseWheel(MouseEventArgs)

Raises the MouseWheel event.

OnPaint(PaintEventArgs)

Paints the control.

OnPaintBackground(PaintEventArgs)

Paints the control background.

OnProcessingError(ErrorEventArgs)

Raises the ProcessingError event.

OnRemoteResize(RemoteResizeEventArgs)

Raises the RemoteResize event.

OnResize(EventArgs)

Raises the Resize event.

OnScreenResize(ScreenResizeEventArgs)

Raises the ScreenResize event.

OnScrollChanged(EventArgs)

Raises the ScrollChanged event.

OnSelectionChanged(SelectionChangedEventArgs)

Raises the SelectionChanged event.

OnSizeChanged(EventArgs)

Raises the SizeChanged event.

PreProcessMessage(ref Message)

Preprocesses an input message such as a keyboard message.

ProcessCmdKey(ref Message, Keys)

Processes a command key.

ResetSelection()

Unselects selection area.

Save(Stream, TerminalCaptureFormat)

Saves the content of the terminal screen to the specified stream in the specified format.

Save(Stream, TerminalCaptureFormat, TerminalCaptureOptions)

Saves the content of the terminal screen to the specified stream in the specified format with the specified options.

Save(Stream, TerminalImageFormat, TerminalCaptureOptions, TerminalFont)

Saves the content of the terminal screen to the specified stream in the specified image format with the specified options.

Save(Stream, TerminalImageFormat, TerminalFont)

Saves the content of the terminal screen to the specified stream in the specified image format.

Save(String, TerminalCaptureFormat)

Saves the content of the terminal screen to the specified file in the specified format.

Save(String, TerminalCaptureFormat, TerminalCaptureOptions)

Saves the content of the terminal screen to the specified file in the specified format with the specified options.

Save(String, TerminalImageFormat, TerminalCaptureOptions, TerminalFont)

Saves the content of the terminal screen to the specified file in the specified image format with the specified options.

Save(String, TerminalImageFormat, TerminalFont)

Saves the content of the terminal screen to the specified file in the specified image format.

Scroll(Int32)

Scrolls the terminal screen for specified number of rows up or down. Positive numbers scroll up (to display history), negative numbers scroll down (to display current screen).

SetDataProcessingMode(DataProcessingMode)

Sets incoming data processing mode.

SetScreenSize(Int32, Int32)

Sets a new screen size, resizing the control accordingly.

SetSelection(Int32, Int32, Int32, Int32)

Sets selection area.

Unbind()

Unbinds the control from the current channel and closes the channel.

WndProc(ref Message)

Processes Windows messages.

Events

Name Description
ActionRequested

Occurs when a specific client action is requested by the server.

Copying

Occurs when a text is to be copied from screen to clipboard.

CursorColor

Occurs when a cursor color needs to be determined.

DataReceived

Occurs when the data are received from the server.

Disconnected

Occurs when disconnected from the server.

Pasting

Occurs when a text is to be pasted from clipboard to screen.

ProcessingError

Occurs when an exception occurred while Automatic was in progress.

RemoteResize

Occurs when the screen resize is requested by the server.

ScreenResize

Occurs when the screen is resized.

ScrollChanged

Occurs when the screen is scrolled (ScreenPosition is changed).

SelectionChanged

Occurs when a selection is changed.

In This Article
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies