Hello,
Is it possible to display a variable on STDOUT and keep the hand in order to use/edit it ?
I've tried to remove the carriage return or newline with tr , or changing IFS but that didn't work.
So after few hours on this I just wonder if it is possible, if yes what command/tool can do that ?
It is probably not well explained so to illustrate what I would like to do in the following example just pretend the cursor is represented by "__"
normal:
expected:
Thank you.
Is it possible to display a variable on STDOUT and keep the hand in order to use/edit it ?
I've tried to remove the carriage return or newline with tr , or changing IFS but that didn't work.
So after few hours on this I just wonder if it is possible, if yes what command/tool can do that ?
It is probably not well explained so to illustrate what I would like to do in the following example just pretend the cursor is represented by "__"
normal:
Code:
$ echo foo
$ foo
$ __
Code:
$ echo foo
$ foo __
Thank you.