Re: FreeBSD Port: portmaster-2.17 (on console)

2010-01-25 Thread Doug Barton
On 1/25/2010 10:10 AM, Richard (Rick) Seay wrote:
> Hi Doug,
> 
> First let me thank you for portmaster. It's a wonderful tool for
> managing ports.

Thank you for the kind words, it's nice to hear them. :)

> Today I updated to version 2.17.  I usually update my ports from the
> system console.  With the new version I get beeps and messages beginning
> with "0;".

Well that's bad, sorry. I did test this early on in process of adding
this feature, however I obviously changed something later that caused
the behavior you're seeing.

> I made the following change to a local copy of the script to get around
> the problem.  It works for me, but you probably have a more general
> solution.
> 
> term_printf () {
> case $TERM in
> cons25) ;;
> *) printf "\033]0;${0##*/}: ${PM_PARENT_PORT}${1}\007" ;;
> esac
> }

Yes, I had something similar at one point then removed it because I
didn't think it was needed.

Someone else reported another (cosmetic) bug in the "prompt before
building" feature today as well, so I'm going to try and get a bugfix
version out ASAP, but that may not be until tomorrow since I have some
real life responsibilities today. I'll do my best though 


Doug

-- 

Improve the effectiveness of your Internet presence with
a domain name makeover!http://SupersetSolutions.com/

Computers are useless. They can only give you answers.
-- Pablo Picasso

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: FreeBSD Port: portmaster-2.17 (on console)

2010-01-26 Thread John Marshall
On Mon, 25 Jan 2010, 10:54 -0800, Doug Barton wrote:
> On 1/25/2010 10:10 AM, Richard (Rick) Seay wrote:
> > I made the following change to a local copy of the script to get around
> > the problem.  It works for me, but you probably have a more general
> > solution.
> > 
> > term_printf () {
> > case $TERM in
> > cons25) ;;
> > *) printf "\033]0;${0##*/}: ${PM_PARENT_PORT}${1}\007" ;;
> > esac
> > }
> 
> Yes, I had something similar at one point then removed it because I
> didn't think it was needed.
> 
> Someone else reported another (cosmetic) bug in the "prompt before
> building" feature today as well, so I'm going to try and get a bugfix
> version out ASAP, but that may not be until tomorrow since I have some
> real life responsibilities today. I'll do my best though 

Doug,

Any chance of a switch to disable this new feature?  I use the terminal
window title to keep track of which window belongs to which system.
Having half-a-dozen of them all saying "portmaster: foo-n.n" (and not
changing back to what they were) kind of spoils things for me :-)

Thanks again for all of your work on this tool.

-- 
John Marshall


pgpeNdKsezuOI.pgp
Description: PGP signature


Re: FreeBSD Port: portmaster-2.17 (on console)

2010-01-26 Thread Doug Barton
On 1/26/2010 9:11 PM, John Marshall wrote:
> Doug,
> 
> Any chance of a switch to disable this new feature?

There is always a chance. :)


Doug

-- 

Improve the effectiveness of your Internet presence with
a domain name makeover!http://SupersetSolutions.com/

Computers are useless. They can only give you answers.
-- Pablo Picasso

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: FreeBSD Port: portmaster-2.17 (on console)

2010-01-26 Thread Peter Jeremy
On 2010-Jan-27 16:11:40 +1100, John Marshall  
wrote:
>On Mon, 25 Jan 2010, 10:54 -0800, Doug Barton wrote:
>> Someone else reported another (cosmetic) bug in the "prompt before
>> building" feature today as well, so I'm going to try and get a bugfix
>> version out ASAP, but that may not be until tomorrow since I have some
>> real life responsibilities today. I'll do my best though 

>Any chance of a switch to disable this new feature?  I use the terminal
>window title to keep track of which window belongs to which system.
>Having half-a-dozen of them all saying "portmaster: foo-n.n"

I use the xterm title line - in my case I use zsh chpwd() to make it
show u...@system:cwd - if something damages the title, I can just
'cd $PWD' to recover.

That said, it would be handy if portmaster supported a couple of
environment variables that could be prepended or appended to the
title that portmaster sets.

> (and not
>changing back to what they were) kind of spoils things for me :-)

This is possible ("CSI 2 1 t" should report the current title) but
actually reading the returned "OSC L label ST" could be painful from
sh(1) (and I can't quickly get it to work).

>Thanks again for all of your work on this tool.

Likewise.

-- 
Peter Jeremy


pgp0rDeJnthzM.pgp
Description: PGP signature


Re: FreeBSD Port: portmaster-2.17 (on console)

2010-01-27 Thread Sean C. Farley

On Wed, 27 Jan 2010, Peter Jeremy wrote:


On 2010-Jan-27 16:11:40 +1100, John Marshall  
wrote:

On Mon, 25 Jan 2010, 10:54 -0800, Doug Barton wrote:


*snip*

(and not changing back to what they were) kind of spoils things for 
me :-)


This is possible ("CSI 2 1 t" should report the current title) but 
actually reading the returned "OSC L label ST" could be painful from 
sh(1) (and I can't quickly get it to work).


With zsh, I use a precmd() function that updates the title every time 
the prompt is about to appear, e.g., portmaster exits:


precmd()
{
case ${TERM} in
xterm*)
print -Pn "\e]0;%...@%m\a"
;;
esac
}

It comes in useful when using ssh to connect to different accounts. 
When I exit one account which had reset the title, the title changes 
back to the previous account.


bash users may find something equivalent.

Sean
--
s...@freebsd.org
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: FreeBSD Port: portmaster-2.17 (on console)

2010-02-07 Thread Doug Barton

On 01/27/10 14:51, Sean C. Farley wrote:

With zsh, I use a precmd() function that updates the title every time
the prompt is about to appear, e.g., portmaster exits:

precmd()
{
case ${TERM} in
xterm*)
print -Pn "\e]0;%...@%m\a"
;;
esac
}

It comes in useful when using ssh to connect to different accounts. When
I exit one account which had reset the title, the title changes back to
the previous account.

bash users may find something equivalent.


All you have to do in bash is set PS1. 
http://dougbarton.us/Bash/Bash-prompts.html


FYI, I just checked some code into the svn version of portmaster to 
handle the problem of not printing the terminal escapes on cons25, and a 
new --no-term-title option. I'm working on some other bug fixes as well, 
and with any kind of luck they should all be in the ports version later 
tonight.



Doug

--

... and that's just a little bit of history repeating.
-- Propellerheads

Improve the effectiveness of your Internet presence with
a domain name makeover!http://SupersetSolutions.com/

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: FreeBSD Port: portmaster-2.17 (on console)

2010-02-07 Thread Doug Barton

On 01/26/10 21:11, John Marshall wrote:

Any chance of a switch to disable this new feature?  I use the terminal
window title to keep track of which window belongs to which system.
Having half-a-dozen of them all saying "portmaster: foo-n.n" (and not
changing back to what they were) kind of spoils things for me :-)


I just committed version 2.18 that has the --no-term-title option.


Regards,

Doug

--

... and that's just a little bit of history repeating.
-- Propellerheads

Improve the effectiveness of your Internet presence with
a domain name makeover!http://SupersetSolutions.com/

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"