Chet Ramey wrote:
>
>
>>You might want to look at examples/rlfe in the readline distribution. It
>>does the same sort of front-end pty manipulation you;re interested in.
>
> Great tip, in there I found they do a setsid() and ioctl(...) and that
> fixed the nojob control warning message AND l
Chet Ramey wrote:
>
> JimK wrote:
>>> I have written a java applet to interact with bash in the background to
>>> let
>>> the applet user interact just like they were using bash itself.
>>>
>>> But when the initial output from bash comes to
Bob Proulx wrote:
>
>
>>Internally bash will use the libc isatty(3) routine to determine if
>>the input/output files are tty devices. In the shell these are
>>available in the 'test' operator as the '-t' file operator.
>
>> $ test -t 0 && echo input is a tty
>> $ test -t 1 && echo output is
Bob Proulx wrote:
>
>
>>Does this java applet set up a master-slave pty for bash's input and
>>output? This is what the 'expect' program and similar usually do.
>
> Yep, I drop down into C to use openpty() to set up the master/slave and
> pass the
> file IDs back up into java.I Use input/out
I have written a java applet to interact with bash in the background to let
the applet user interact just like they were using bash itself.
But when the initial output from bash comes to my applet, it says "bash: no
job control in this shell".
Which initially I didn't think really mattered, but