From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <5EF77A72-B98A-44D0-A8B0-72F1F3BA8114@bitblocks.com> References: <5EF77A72-B98A-44D0-A8B0-72F1F3BA8114@bitblocks.com> From: Tom Lieber Date: Sat, 18 Jan 2014 23:52:59 -0500 Message-ID: To: Bakul Shah Content-Type: multipart/alternative; boundary=001a1134640c0a037704f04b8f47 Cc: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] a toy terminal for OS X Topicbox-Message-UUID: b3f20df2-ead8-11e9-9d60-3106f5b1d025 --001a1134640c0a037704f04b8f47 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thank you! openpty() is what I needed. On Wed, Jan 15, 2014 at 1:41 AM, Bakul Shah wrote: > Try the > > tty > > command. You need to connect the shell to a pseudotty. This should also > fix the rc echo problem. > > > On Jan 14, 2014, at 4:26 PM, Tom Lieber wrote: > > It seemed like it could be fun and educational, so I started making a > 9-like terminal for OS X using the native text widget: > > https://github.com/alltom/coolterm > > But there are 2 things I=E2=80=99ve had trouble figuring out on my own: > > 1) Why do programs like =E2=80=98python=E2=80=99 show a prompt in 9term b= ut not in my > terminal? > > 2) Why does bash write your command to stdout? Why doesn=E2=80=99t rc? I = use bash, > so I made it erase the command you typed when you press enter, but that > appears to be the wrong thing to do with rc. > > There=E2=80=99s other stuff in BUGS.md but I feel more confident about th= ose > things. :) > > -- > Tom Lieber > http://AllTom.com/ > http://infinite-sketchpad.com/ > > > --=20 Tom Lieber http://AllTom.com/ http://infinite-sketchpad.com/ --001a1134640c0a037704f04b8f47 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thank you! openpty() is what I needed.


On Wed, Jan 15, 2014 at 1:4= 1 AM, Bakul Shah <bakul@bitblocks.com> wrote:
Try the<= div>
tty

command.=C2=A0You need to c= onnect the shell to a pseudotty. This should also fix the rc echo problem.<= div>


On Jan 14, 2014, at 4:26 PM, Tom L= ieber <alltom@gmai= l.com> wrote:

It seemed like it could be fun and educational, so I started making a 9-lik= e terminal for OS X using the native text widget:

=C2= =A0=C2=A0https://github.= com/alltom/coolterm

But th= ere are 2 things I=E2=80=99ve had trouble figuring out on my own:

1) Why do programs like =E2=80=98python=E2=80=99 show a prompt in 9term but= not in my terminal?

2) Why does bash write your command to stdout? Why doesn=E2=80=99t rc? = I use bash, so I made it erase the command you typed when you press enter, = but that appears to be the wrong thing to do with rc.

There=E2=80=99s other = stuff in BUGS.md but I feel more confident about those things. :)

--
Tom Lieber
http:= //AllTom.com/
http://infinite-sketchpad.com/



--
Tom Lieber
http://AllTom.com/
http://infinite-sketchpad.com/ --001a1134640c0a037704f04b8f47--