@ende/cli/unstable-get-cursor

ende add jsr:@ende/cli

Version 2026.10.15 on JSR.

Exports

  • askForCursorPositionSync — This function asks the terminal for the cursor's current position. Information entered by the user will be discarded while requesting the cursor position. The cursor position may have also moved in this time due to the user entering information. Due to the sync nature of this function, it is not recommended to use this function frequently. Instead Ansi.SAVE_CURSOR and Ansi.RESTORE_CURSOR should be used when possible.