A value of -1 indicates the cursor should not be moved. However, in the terminal emulator, the text string sometimes wraps to the next line. The IMTextCursor subroutine performs this conversion from single-line to multiline text strings. When you move the cursor up or down, the subroutine interprets the cursor position on the text string relative to the input method. Parameters IM Indicates the Input Method instance.
Direction Specifies up or down.
Cursor Specifies the new cursor position or -1. UData Specifies an argument passed by the IMCreate subroutine. If an error occurs, the IMTextCursor subroutine returns the IMError global variable. Otherwise, the IMNoError value is returned. This subroutine is provided by applications that use input methods.