GNU readline / tty related questions
- From: emiller_news@xxxxxxxxx
- Date: 25 May 2007 07:34:35 -0700
Hi,
I have to control a tool "A", that uses the GNU readline library for
it's command line, 'remotely' from another process "B". Currently I
send commands to and receive the output from the tool "A" via pipes.
The problem is that for example sending a <Tab> from "B" to "A"
doesn't start Tab-Completion and <Cursor-Up> doesn't read from the
history.
How can I have every key, that is typed in "B", sent to "A" so that it
is immediately interpreted as if it was typed in "A"s command line?
A problem that is probably related to this question is that, when
starting "A" via "execl(".../tool",...)" inside "B", the tool "A"
recognizes by calling isatty(), that it is not connected to a
terminal. Can I attach it to a tty before or after "execl()"? If not,
another option is to start "A" first on a terminal, if I can later
grab/send to that terminal from the control process "B" as mentioned
above.
Any clues how to do this?
Thanks
Edi
.
- Follow-Ups:
- Re: GNU readline / tty related questions
- From: Bin Chen
- Re: GNU readline / tty related questions
- From: Barry Margolin
- Re: GNU readline / tty related questions
- Prev by Date: error: 'RTAX_MAX' undeclared
- Next by Date: Api call for free disk space
- Previous by thread: error: 'RTAX_MAX' undeclared
- Next by thread: Re: GNU readline / tty related questions
- Index(es):
Relevant Pages
|
|