Series 2600B System SourceMeter® instrument Reference Manual Section 9: TSP command reference
2600BS-901-01 Rev. F/August 2021 9-67
display.getcursor()
This function reads the present position of the cursor on the front-panel display.
Usage
row, column, style = display.getcursor()
The row where the cursor is: 1 (top row); 2 (bottom row)
The column where the cursor is:
▪ If the cursor is in the top row: 1 to 20
▪ If the cursor is in the bottom row: 1 to 32
Visibility of the cursor:
▪ Invisible: 0
▪ Blinking: 1
Details
This function switches the front-panel display to the user screen (the text set by
display.settext()), and then returns values to indicate the row that contains the cursor and the
column position and cursor style.
Columns are numbered from left to right on the display.
Example 1
testRow, testColumn = display.getcursor()
print(testRow, testColumn)
This example reads the cursor position into local variables and prints them.
Example output:
1.00000e+00
print(display.getcursor())
This example prints the cursor position directly. In this example, the cursor is in row 1 at column 3, with an
invisible cursor:
1.00000e+00 3.00000e+00 0.00000e+00
Also see
display.gettext() (on page 9-69)
display.screen (on page 9-78)
display.setcursor() (on page 9-80)
display.settext() (on page 9-81)