From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <2814F26DA6908F41927A81C410C4991A02079BE5@siamun.server.bl.corp.intranet> From: Gabriel Cosentino de Barros To: "Plan 9 Mailing list (E-mail)" <9fans@cse.psu.edu> Date: Wed, 8 Dec 2004 21:13:21 -0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4DD7B.826E5040" Subject: [9fans] 9term customization Topicbox-Message-UUID: 1311a276-eace-11e9-9e20-41e7f4b1d025 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C4DD7B.826E5040 Content-Type: text/plain; charset="iso-8859-1" Hi, I'm new to plan9 and i'm using the 9term for w32 to do some automation at work. Neither Bash for w32 or cygwin allowed me to work with files on several network shares/local drives in my scripts easily. But for my surprise, while trying out the plan9 for w32 (that i got just to toy with acme) i found out that it behaves very well. Now, i just need to tweak some things, if possible. First, i'm afraid i'm to spoiled by bash to like the just-a-text-flow thing for now... mainly, i like to browse previous commands when i press the up arrow. Is it possible? Seccond, i fell nude without my current path :) I have no clue how to change prompt enviroment var to show it. Any hints? Thanks! Gabriel ------_=_NextPart_001_01C4DD7B.826E5040 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 9term customization

Hi,

I'm new to plan9 and i'm using the 9term for w32 to = do some automation at work.

Neither Bash for w32 or cygwin allowed me to work = with files on several network shares/local drives in my scripts easily. = But for my surprise, while trying out the plan9 for w32 (that i got = just to toy with acme) i found out that it behaves very = well.

Now, i just need to tweak some things, if = possible.

First, i'm afraid i'm to spoiled by bash to like the = just-a-text-flow thing for now... mainly, i like to browse previous = commands when i press the up arrow. Is it possible?

Seccond, i fell nude without my current path = :)
I have no clue how to change prompt enviroment var = to show it.

Any hints?

Thanks!
Gabriel

------_=_NextPart_001_01C4DD7B.826E5040-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 9 Dec 2004 10:24:51 -0800 From: Micah Stetson To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] 9term customization Message-ID: <20041209182451.GB6041@epaphras> References: <2814F26DA6908F41927A81C410C4991A02079BE5@siamun.server.bl.corp.intranet> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2814F26DA6908F41927A81C410C4991A02079BE5@siamun.server.bl.corp.intranet> User-Agent: Mutt/1.4.1i Topicbox-Message-UUID: 13a8bae4-eace-11e9-9e20-41e7f4b1d025 > trying out the plan9 for w32 (that i got just to toy with acme) i found out Where is this? I thought the only acme for Windows was in Inferno. Has somebody ported plan9ports? That would be great. > First, i'm afraid i'm to spoiled by bash to like the just-a-text-flow thing > for now... mainly, i like to browse previous commands when i press the up > arrow. Is it possible? I don't think so. Most of us edit/reuse old commands using the mouse in the 9term window. Under Plan 9, you can grep for things in /dev/text, and several scripts have been posted here before to do just that. I don't think that works under the ports, though. > Seccond, i fell nude without my current path :) > I have no clue how to change prompt enviroment var to show it. I think you want something like this: fn cd { builtin cd $1; prompt=(`{pwd}^'% ' ' ') } Micah From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <2814F26DA6908F41927A81C410C4991A02079BE6@siamun.server.bl.corp.intranet> From: Gabriel Cosentino de Barros To: 'Fans of the OS Plan 9 from Bell Labs' <9fans@cse.psu.edu> Subject: RE: [9fans] 9term customization Date: Thu, 9 Dec 2004 16:46:38 -0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4DE1F.6AACABB0" Topicbox-Message-UUID: 13d4a01e-eace-11e9-9e20-41e7f4b1d025 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C4DE1F.6AACABB0 Content-Type: text/plain; charset="iso-8859-1" > From: Micah Stetson [mailto:micah@cnm-vra.com] > > trying out the plan9 for w32 (that i got just to toy with acme) i found out > Where is this? I thought the only acme for Windows was > in Inferno. Has somebody ported plan9ports? That would > be great. To be honest, i got this some months ago, just before i installed plan9 distro at home. And only now i'm back to using it. so i don't realy remember where i got it :) Here's the readme.txt: ------------------------ This directory contains a Windows port of a number of plan 9 utilities, including an updated version of the sam text editor. This version of sam supports the -r option using ssh as the remote execution protocol. Source is included. It should be possible to rebuild the tools from the source, but it will probably require some work. In particular, the source is mostly built using version 4.2 of Visual C++. The source was ported using a plan 9 emulation library called 9pm, which completely replaces the standard libc library included with the compilers. The remote execution command srx and the libraries mp and libsec are compiled with Version 6.0. This source does not use the 9pm library. Most of these tools are rather out of date. Only a small number of changes have been made since 1997. Maintenance and updating of these tools is left as an exercise to the reader. Note: this code is released under the Plan 9 open source license agreement. Enjoy Sean Quinlan ---------------------------- > > > > Seccond, i fell nude without my current path :) > > I have no clue how to change prompt enviroment var to show it. > > I think you want something like this: > > fn cd { builtin cd $1; prompt=(`{pwd}^'% ' ' ') } I don't quite understand that. I tryied simply entering it into rcsh and it did nothing. then i entered just "prompt=(`{pwd}^'% ' ' ')" and then rcsh crashed. > > Micah Thanks Gabriel ------_=_NextPart_001_01C4DE1F.6AACABB0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [9fans] 9term customization

> From: Micah Stetson [mailto:micah@cnm-vra.com]
> > trying out the plan9 for w32 (that i got = just to toy with acme) i found out
> Where is this?  I thought the only acme = for Windows was
> in Inferno.  Has somebody ported = plan9ports?  That would
> be great.

To be honest, i got this some months ago, just before = i installed plan9 distro at home. And only now i'm back to using it. so = i don't realy remember where i got it :) Here's the = readme.txt:

------------------------
This directory contains a Windows port of a number = of plan 9 utilities,
including an updated version of the sam text editor. = This version of
sam supports the -r option using ssh as the remote = execution protocol.

Source is included.  It should be possible to = rebuild the
tools from the source, but it will probably require = some work.
In particular, the source is mostly built using = version 4.2 of
Visual C++. The source was ported using a plan 9 = emulation
library called 9pm, which completely replaces the = standard
libc library included with the compilers.

The remote execution command srx and the libraries mp = and libsec
are compiled with Version 6.0.  This source = does not use the 9pm library.

Most of these tools are rather out of date.  = Only a small number of changes
have been made since 1997.  Maintenance and = updating of these tools is
left as an exercise to the reader.

Note: this code is released under the Plan 9 open = source license agreement.

Enjoy
Sean Quinlan
----------------------------


>
>
> > Seccond, i fell nude without my current = path :)
> > I have no clue how to change prompt = enviroment var to show it.
>
> I think you want something like this:
>
> fn cd { builtin cd $1; prompt=3D(`{pwd}^'% ' = '  ') }

I don't quite understand that.
I tryied simply entering it into rcsh and it did = nothing. then i entered just "prompt=3D(`{pwd}^'% ' = '    ')" and then rcsh crashed.

>
> Micah

Thanks
Gabriel

------_=_NextPart_001_01C4DE1F.6AACABB0-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <6.0.2.0.0.20041210100557.01b8b0e8@pop.monitorbm.co.nz> Date: Fri, 10 Dec 2004 10:13:03 +1300 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> From: Andrew Simmons Subject: RE: [9fans] 9term customization In-Reply-To: <2814F26DA6908F41927A81C410C4991A02079BE6@siamun.server.bl. corp.intranet> References: <2814F26DA6908F41927A81C410C4991A02079BE6@siamun.server.bl.corp.intranet> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Topicbox-Message-UUID: 13e3b9aa-eace-11e9-9e20-41e7f4b1d025 > >To be honest, i got this some months ago, just before i installed plan9 >distro at home. And only now i'm back to using it. so i don't realy >remember where i got it :) Here's the readme.txt: That would be the port of the second edition tools, which as far as I know doesn't include acme. On the up-arrow thing, I used to find it disconcerting at first, but now I wouldn't want to go back. It's really liberating to be able to use the whole area of the 9term window as a scratchpad in which to assemble commands, highlight them, and execute using the right mouse button and "send" command. Try it a bit more, and you might get to love it. I don't know about the prompt - I prefer it without the path, which takes up most of the line these days, especially if, which God forbid, you're in a directory called "c:\documents and settings\myaccountwithaverylongname\my recent documents\sod this for a game of soldiers". From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <2814F26DA6908F41927A81C410C4991A02079BE7@siamun.server.bl.corp.intranet> From: Gabriel Cosentino de Barros To: 'Fans of the OS Plan 9 from Bell Labs' <9fans@cse.psu.edu> Subject: RE: [9fans] 9term customization Date: Thu, 9 Dec 2004 19:21:07 -0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4DE34.FF6DD430" Topicbox-Message-UUID: 13f967f0-eace-11e9-9e20-41e7f4b1d025 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C4DE34.FF6DD430 Content-Type: text/plain; charset="iso-8859-1" > From: Andrew Simmons [mailto:andrew.simmons@monitorbm.co.nz] > >To be honest, i got this some months ago, just before i installed plan9 > >distro at home. And only now i'm back to using it. so i don't realy > >remember where i got it :) Here's the readme.txt: > That would be the port of the second edition tools, which as far as I know > doesn't include acme. hum.. true... what's the acme thingy i'm running here? maybe it's inferno indeed. It's just that after i instaled those things the workload just got high. > On the up-arrow thing, I used to find it disconcerting at first, but now I > wouldn't want to go back. It's really liberating to be able to use the > whole area of the 9term window as a scratchpad in which to assemble > commands, highlight them, and execute using the right mouse button and > "send" command. Try it a bit more, and you might get to love it. yeah, that way is not all that bad. I was snarfing, pasting, clicking on the end, pressing return. but i still think that that taking the hands off the keyboard is pointless here. maybe something like csh's !! and history would do the trick... > I don't know about the prompt - I prefer it without the path, which takes > up most of the line these days, especially if, which God forbid, you're in but if you really need to know the path, not having it in the prompt (or how i set my xterms, in the window title) is a little dangerous while doing ten things at a time... specialy if you have memory like mine :) Gabriel ------_=_NextPart_001_01C4DE34.FF6DD430 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [9fans] 9term customization

> From: Andrew Simmons [mailto:andrew.simmons@mon= itorbm.co.nz]
> >To be honest, i got this some months ago, = just before i installed plan9
> >distro at home. And only now i'm back to = using it. so i don't realy
> >remember where i got it :) Here's the = readme.txt:
> That would be the port of the second edition = tools, which as far as I know
> doesn't include acme.

hum.. true... what's the acme thingy i'm running = here? maybe it's inferno indeed. It's just that after i instaled those = things the workload just got high.

> On the up-arrow thing, I used to find it = disconcerting at first, but now I
> wouldn't want to go back. It's really = liberating to be able to use the
> whole area of the 9term window as a scratchpad = in which to assemble
> commands, highlight them, and execute using the = right mouse button and
> "send" command. Try it a bit more, = and you might get to love it.

yeah, that way is not all that bad. I was snarfing, = pasting, clicking on the end, pressing return. but i still think that = that taking the hands off the keyboard is pointless here. maybe = something like csh's !! and history would do the trick...

 
> I don't know about the prompt - I prefer it = without the path, which takes
> up most of the line these days, especially if, = which God forbid, you're in

but if you really need to know the path, not having = it in the prompt (or how i set my xterms, in the window title) is a = little dangerous while doing ten things at a time... specialy if you = have memory like mine :)


Gabriel

------_=_NextPart_001_01C4DE34.FF6DD430-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 9 Dec 2004 11:52:31 -1000 From: Tim Newsham To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] 9term customization In-Reply-To: <20041209182451.GB6041@epaphras> Message-ID: References: <2814F26DA6908F41927A81C410C4991A02079BE5@siamun.server.bl.corp.intranet> <20041209182451.GB6041@epaphras> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Topicbox-Message-UUID: 1400421e-eace-11e9-9e20-41e7f4b1d025 > > Seccond, i fell nude without my current path :) > > I have no clue how to change prompt enviroment var to show it. > > I think you want something like this: > > fn cd { builtin cd $1; prompt=(`{pwd}^'% ' ' ') } I'm not sure why this isnt setup by default (actually, it seems to be in plan9port stuff) but acme is much more useful with: fn cd { builtin cd $1 && awd $sysname } (as mentioned in the acme man page). This provides the benefits of seeing the path (in the acme title bar) as well as providing path context for the clicks. I'm sure this is old hat for most people, but I just came across this recently and I imagine that means there are other people who are using acme without it (ack!). > Micah Tim N. From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <6.0.2.0.0.20041210124458.01b8afa0@pop.monitorbm.co.nz> Date: Fri, 10 Dec 2004 12:48:23 +1300 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> From: Andrew Simmons Subject: RE: [9fans] 9term customization In-Reply-To: <2814F26DA6908F41927A81C410C4991A02079BE7@siamun.server.bl. corp.intranet> References: <2814F26DA6908F41927A81C410C4991A02079BE7@siamun.server.bl.corp.intranet> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Topicbox-Message-UUID: 140673e6-eace-11e9-9e20-41e7f4b1d025 > >yeah, that way is not all that bad. I was snarfing, pasting, clicking on >the end, pressing return. but i still think that that taking the hands off >the keyboard is pointless here. maybe something like csh's !! and history >would do the trick... If 9term doesn't suit the way you want to work, you could look at Uwin (Boyd reaches for ...): http://www.research.att.com/sw/tools/uwin/ This has the Korn shell, which includes all of the history editing a person could want and then some. Local and network drives appear as directories under /, which could solve your problems with bash/Cygwin. From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 9 Dec 2004 16:46:25 -0800 From: Micah Stetson To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] 9term customization Message-ID: <20041210004625.GA19541@epaphras> References: <2814F26DA6908F41927A81C410C4991A02079BE5@siamun.server.bl.corp.intranet> <20041209182451.GB6041@epaphras> <2814F26DA6908F41927A81C410C4991A02079BE6@siamun.server.bl.corp.intranet> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2814F26DA6908F41927A81C410C4991A02079BE6@siamun.server.bl.corp.intranet> User-Agent: Mutt/1.4.1i Topicbox-Message-UUID: 140e3fa4-eace-11e9-9e20-41e7f4b1d025 On Thu, Dec 09, 2004 at 04:46:38PM -0200, Gabriel Cosentino de Barros wrote: > > fn cd { builtin cd $1; prompt=(`{pwd}^'% ' ' ') } > > I don't quite understand that. > I tryied simply entering it into rcsh and it did nothing. Unlike in bash and such, $prompt doesn't get special evaluation whenever a prompt is displayed. There is no special support for dynamic prompt strings. Simply setting $prompt to a value including the current working directory will make it always display that value, irregardless of changes to the working directory. The above function definition uses the more general facilities of rc to get the job done without needing special backslash escapes and other such nonsense. We replace the 'cd' command with a version that first calls the original cd command and then sets the prompt with the new working directory. You shouldn't see the prompt change until after you run cd. > then i entered > just "prompt=(`{pwd}^'% ' ' ')" and then rcsh crashed. This should have made the prompt indicate which directory you ran that command in for the rest of the session. But 9pm is old and unmaintained, and I've seen it behave strangely and/or crash under some newer versions of Windows. You may be out of luck, unless you want to try to fix it. Micah From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 10 Dec 2004 10:51:22 -0500 From: Richard C Bilson Message-Id: <200412101551.iBAFpMk12274@plg2.math.uwaterloo.ca> To: 9fans@cse.psu.edu Subject: Re: [9fans] 9term customization Topicbox-Message-UUID: 143051d4-eace-11e9-9e20-41e7f4b1d025 > But 9pm is old and unmaintained, and I've seen it behave > strangely and/or crash under some newer versions of > Windows. You may be out of luck, unless you want to try > to fix it. I can confirm that -- on XP I can't get shell functions to work at all. I tried poking at it a while back, but it was before the free release of the MS C compiler, so I was trying to make it compile under gcc, which begat more problems, which led me to give up in the end.