How To Find The Current Cursor Position Using Native Terminal Activities

How to find the current cursor position using native Terminal activities?

Currently, there is no activity predefined in UiPath to retrieve the cursor position. Thus this can be achieved with code.

Follow the below steps:

  1. Save the connection (OutputConnection property for the terminal session) into a variable ("conn" below)
  2. Assign: int row = conn.GetScreen(new UiPath.Terminal.Data.CommandOptions()).Cursor.Row
  3. Assign: int col = conn.GetScreen(new UiPath.Terminal.Data.CommandOptions()).Cursor.Column

1 Like