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--