rl.cursor
- 类型: <number> | <undefined>
光标位置相对于 rl.line 的位置。
【The cursor position relative to rl.line.】
当从 TTY 流读取输入时,这将跟踪当前光标在输入字符串中的位置。光标的位置决定了在处理输入时输入字符串中将被修改的部分,以及终端光标将显示的列位置。
【This will track where the current cursor lands in the input string, when reading input from a TTY stream. The position of cursor determines the portion of the input string that will be modified as input is processed, as well as the column where the terminal caret will be rendered.】