get_tpositionπ
Short descriptionπ
get_tposition β Get cursor position.
Signatureπ
get_tposition( window WindowHandle, out point.y Row, out point.x Column )
Descriptionπ
get_tposition queries the current position of the text
cursor in the output window. The position is measured in the image
coordinate system. The next output of text in this window starts at
the cursor position. The left end of the baseline for writing the
next string (not considering descenders) is placed on this
position. The position is changed by the output or input of text
(write_string, read_string) or by an explicit change
of position by (set_tposition, new_line).
Attentionπ
If the output text does not fit completely into the window, an exception is raised. This can be avoided by texttt{set_check(β~textβ)}.
Execution informationπ
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parametersπ
WindowHandle (input_control) window β (handle)
Window handle.
Row (output_control) point.y β (integer)
Row index of text cursor position.
Column (output_control) point.x β (integer)
Column index of text cursor position.
Resultπ
get_tposition returns 2 (H_MSG_TRUE) if the window is valid. Otherwise
an exception is raised.
Combinations with other operatorsπ
Combinations
Possible predecessors
Possible successors
set_tposition, write_string, read_string, read_char
See also
new_line, read_string, set_tposition, write_string, set_check
Moduleπ
Foundation