* Returns the real position of the cursor in relation * to the input prompt + string. * @returns {{ * rows: number; * cols: number; * }}
()
| 1221 | * }} |
| 1222 | */ |
| 1223 | getCursorPos() { |
| 1224 | const strBeforeCursor = this[kPrompt] + StringPrototypeSlice(this.line, 0, this.cursor); |
| 1225 | |
| 1226 | return this[kGetDisplayPos](strBeforeCursor); |
| 1227 | } |
| 1228 | |
| 1229 | // This function moves cursor dx places to the right |
| 1230 | // (-dx for left) and refreshes the line if it is needed. |
no outgoing calls
no test coverage detected