spring-shell
spring-shell copied to clipboard
Support cursor positioning in ui components
trafficstars
Currently when ui component is rendered cursor is hidden as its position is always 0,0. It would be beneficial to have cursor in a specific location for better feedback to a user and helping with screen readers, etc.
Cursor could be in a follow "mypath" value user is typing
? Enter value mypath
ℹ Path ok
In selectors it could follow selected line
? testSimple [Use arrows to move], type to filter
❯ key1
key2
User can also type but we should not try to place cursor withing "filtering" as it would already be in selected line
? testSimple [Use arrows to move], filtering '1'
❯ key1
Essentially if we add support for cursor it should be placed where it helps user a most. It would also be nice to let user to choose if cursor is visible or not.