Currently various features don't (typically?) work in the prompt on Windows, for example ctrl+backspace to delete a word, ctrl+shift+left to select the word to the left of the prompt etc. We could expose some API in xterm.js to be able to handle this. For example:
Windows:
- backspace, delete: Press backspace/delete the number of characters that are selected
- ctrl+backspace: Backspace the number of chars in the preceeding word
All platforms:
- ctrl+shift+left/right, shift+left/right: Select from the cursor
Perhaps some API like this would be able to handle the selection requests:
// Select from cursor, in the future if we wanted to select from some other origin we
// could add a third parameter
select(direction: 'left' | 'right' | 'up' | 'down', amount: 'word' | 'char'): void;
/cc @sbatten
Currently various features don't (typically?) work in the prompt on Windows, for example ctrl+backspace to delete a word, ctrl+shift+left to select the word to the left of the prompt etc. We could expose some API in xterm.js to be able to handle this. For example:
Windows:
All platforms:
Perhaps some API like this would be able to handle the selection requests:
/cc @sbatten