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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -