On 14.01.2024 14:03, Kenny McCormack wrote:
> In article <unuc23$3ve$
1...@dont-email.me>,
> Janis Papanagnou <
janis_pap...@hotmail.com> wrote:
> ...
>> My tries with bash's read -e failed BTW; yet I have no idea
>> why it doesn't work. - Will have to examine it...
Yet I haven't found the time to continue the examinations. So just a
short reply here...
>
> In what way did it "not work" ?
I tried with my code and also with the small sample that you provided,
setting up the two files, etc. - The effect was that I got my prompt
but arrows (or vi keys or any other random keys) did not show previous
input.
>
> See the other thread I entered on this. As far as I can tell, in-the-line
> editing does work, but history doesn't. Is history the main functionality
> that you need?
Yes exactly.
Entering text on the prompt and typing arrow keys on the actual input
will position the cursor so that I can, for example, insert some more
text. (Previously the left-arrow key just created ^[[D^[[D^[[D ...)
What I primarily needed was to get the previously entered data (which
has already be confirmed by <return>) back into the prompt. If I can't
reload the previous text into the prompt the arrow-movement isn't very
useful [on the empty prompt].
The use-case is that I send words to a server and depending on the
server response I may have to adjust/refine the previous input (without
typing all again).
Sorry if I was unclear about that.
>
> FWIW, it sure seems to me that there should be a way to get history to work.
Yeah, I have to see...
Janis