bash: Run readline command on a string -


readline takes input terminal, , commands mapped key presses.

is possible call readline command given string , simulating cursor position within string?

for example, how call kill-word command on string: these words, simulating position of "cursor" on letter a, , returning string these words?

is possible simulate cursor position residing between 2 space characters?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -