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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -