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:
- Save the connection (OutputConnection property for the terminal session) into a variable ("conn" below)
- Assign: int row = conn.GetScreen(new UiPath.Terminal.Data.CommandOptions()).Cursor.Row
- Assign: int col = conn.GetScreen(new UiPath.Terminal.Data.CommandOptions()).Cursor.Column