Terminal Emulation?
Robin Lee Powell
rlpowell at digitalkingdom.org
Thu Jan 16 19:29:44 CET 2003
On Thu, Jan 16, 2003 at 07:15:57PM +0100, Valentin Mesaros wrote:
> Robin,
>
> I give you two examples using stdin. A very simple one, and a naive tcp
> version which is the sample you sent with some modifications. You can
> also work with stdin by using Open.file class (see Mozart doc).
>
> Here is the 1st example. It opens a pipe, sends something on it and
> reads the output. Namely, it lists the current directory content. Note
> the new line "\n" in the command and in the output stream. I used toAtom
> method so that I can easily read the output.
>
[snip]
>
> Here is the 2nd example. What you mainly missed in your sample was the
> fact that the accept method opens a new socket for each incoming client
> (btw the same happens with the real tcp). So you have to work with the
> new created socket in order to communicate with the incoming client.
>
> I let the server be simple so that one can well understand it. It only
> treats a command line from only one client (the first one).
While I appreciate the help, neither of these come even close to solving
my problem, which is that I cannot run and *interactive*, terminal-based
program, such as a text-based mail reader, for example, through Mozart
in this fashion, because the program does not see itself as having a
tty.
-Robin
--
http://www.digitalkingdom.org/~rlpowell/ *** I'm a *male* Robin.
.i le pamoi velru'e zo'u crepu le plibu taxfu
.i le remoi velru'e zo'u mo .i le cimoi velru'e zo'u ba'e prali .uisai
http://www.lojban.org/ *** to sa'a cu'u lei pibyta'u cridrnoma toi
-
Please send submissions to users at mozart-oz.org
and administriva mail to users-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
Please send bug reports to bugs at mozart-oz.org.
More information about the mozart-users
mailing list