protected void SetDocumentCursor(Cursor cursor) { _documentCursor = cursor; TerminalControl terminalControl = GetTerminalControl(); if (terminalControl != null) { terminalControl.SetDocumentCursor(cursor); } }
/// <summary> /// A method called when a TerminalControl has been attached to the session. /// </summary> /// <param name="terminalControl">TerminalControl which is being attached</param> public void Attached(TerminalControl terminalControl) { if (_documentCursor != null) { terminalControl.SetDocumentCursor(_documentCursor); } else { terminalControl.ResetDocumentCursor(); } }
/// <summary> /// A method called when a TerminalControl has been attached to the session. /// </summary> /// <param name="terminalControl">TerminalControl which is being attached</param> public void Attached(TerminalControl terminalControl) { if (_documentCursor != null) terminalControl.SetDocumentCursor(_documentCursor); else terminalControl.ResetDocumentCursor(); }