Beispiel #1
0
        protected void SetDocumentCursor(Cursor cursor)
        {
            _documentCursor = cursor;
            TerminalControl terminalControl = GetTerminalControl();

            if (terminalControl != null)
            {
                terminalControl.SetDocumentCursor(cursor);
            }
        }
Beispiel #2
0
 /// <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();
     }
 }
Beispiel #3
0
 /// <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();
 }