From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 From: Tom Lieber Date: Tue, 14 Jan 2014 19:26:26 -0500 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a11c3d8606a8b3704eff75e0b Subject: [9fans] a toy terminal for OS X Topicbox-Message-UUID: b2e4bd7e-ead8-11e9-9d60-3106f5b1d025 --001a11c3d8606a8b3704eff75e0b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 but= not in my terminal? 2) Why does bash write your command to stdout? Why doesn=E2=80=99t rc? I us= e 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 thos= e things. :) --=20 Tom Lieber http://AllTom.com/ http://infinite-sketchpad.com/ --001a11c3d8606a8b3704eff75e0b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
It seemed like it could be fun and educational, so I started making a 9-li= ke 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/ --001a11c3d8606a8b3704eff75e0b-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bakul Shah Content-Type: multipart/alternative; boundary="Apple-Mail=_27538EC2-94DD-4A45-B797-BB23A8169691" Message-Id: <5EF77A72-B98A-44D0-A8B0-72F1F3BA8114@bitblocks.com> Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Date: Tue, 14 Jan 2014 22:41:32 -0800 References: To: alltom@gmail.com, Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-Reply-To: Subject: Re: [9fans] a toy terminal for OS X Topicbox-Message-UUID: b3842e90-ead8-11e9-9d60-3106f5b1d025 --Apple-Mail=_27538EC2-94DD-4A45-B797-BB23A8169691 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 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: >=20 > https://github.com/alltom/coolterm >=20 > But there are 2 things I=92ve had trouble figuring out on my own: >=20 > 1) Why do programs like =91python=92 show a prompt in 9term but not in = my terminal? >=20 > 2) Why does bash write your command to stdout? Why doesn=92t 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. >=20 > There=92s other stuff in BUGS.md but I feel more confident about those = things. :) >=20 > --=20 > Tom Lieber > http://AllTom.com/ > http://infinite-sketchpad.com/ --Apple-Mail=_27538EC2-94DD-4A45-B797-BB23A8169691 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 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 <alltom@gmail.com> = 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:

  <= a href=3D"https://github.com/alltom/coolterm" target=3D"_blank" = style=3D"font-family:arial,sans-serif;font-size:13px">https://github.com/a= lltom/coolterm

But = there are 2 things I=92ve had trouble figuring out on my own:

1) Why do programs like =91python=92 show a prompt in 9term but not in = my terminal?

2) Why does bash = write your command to stdout? Why doesn=92t 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=92s other = stuff in BUGS.md but I feel more confident about those things. = :)

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

= --Apple-Mail=_27538EC2-94DD-4A45-B797-BB23A8169691-- 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--