Re: GNU readline / tty related questions
- From: Logan Shaw <lshaw-usenet@xxxxxxxxxxxxx>
- Date: Wed, 30 May 2007 01:15:57 -0500
emiller_news@xxxxxxxxx wrote:
How can I open a tty or pty from a C/C++ program, start a process
inside that terminal and have character-level communication between
the C/C++ program and the terminal input/output?
If this is possible with Excpect, this is fine, but it wouldn't help
me in the long run, because I can't use an intermediate Tcl program,
nor does the Tcl code help me with the C implementation.
Tcl/Expect is open source and contains a C implementation of exactly
what you're talking about. It uses a pty and spawns a program in it.
Also, I believe the Tcl interpreter is specifically designed to be easy
to embed in another program (so that it is not a separate executable),
so maybe that is an option.
- Logan
.
- Follow-Ups:
- Re: GNU readline / tty related questions
- From: emiller_news
- Re: GNU readline / tty related questions
- References:
- GNU readline / tty related questions
- From: emiller_news
- Re: GNU readline / tty related questions
- From: Barry Margolin
- Re: GNU readline / tty related questions
- From: emiller_news
- Re: GNU readline / tty related questions
- From: Logan Shaw
- Re: GNU readline / tty related questions
- From: emiller_news
- GNU readline / tty related questions
- Prev by Date: Re: How does the shell interpret newline in this case?
- Next by Date: Re: Shared objects
- Previous by thread: Re: GNU readline / tty related questions
- Next by thread: Re: GNU readline / tty related questions
- Index(es):
Relevant Pages
|
|