Re: Where is documentation on bash "wait"?

2005-10-16 Thread Dr. Volker Zell
> Buzz  writes:

> I was hoping for ``our'' man-maintainer, being much more knowledgeable
> about such issues, to be proactive...
> ...If (s)he isn't I'll look into finding the upstream ``man''-list.

I will forward this issues to the upstream man maintainer.

Ciao
  Volker


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: mlockall() and cygwin

2005-10-16 Thread Mohamed Amjed Ben Salah
Hello,
Is there any similar function in cygwin to avoid
pagging and provide real time ? I have cygwin on Win
XP.

Regards

Mohamed Amjed Ben Salah



--- Corinna Vinschen <[EMAIL PROTECTED]> a
écrit :

> On Oct 13 14:10, Mohamed Amjed Ben Salah wrote:
> > --- Corinna Vinschen <[EMAIL PROTECTED]> a
> 
> http://cygwin.com/acronyms/#PCYMTNQREAIYR
> 
> > > mlockall will probably never be implemented
> since
> > > there's no support
> > > for it on user mode level in Win32.  There's
> support
> > > for something like
> > > mlock/munlock, but only on NT and it's also not
> > > implemented in Cygwin.
> > > 
> > > Try building and running without calling
> mlockall.
> > 
> > Ist it possible to install eposix on cygwin, and
> then
> > to use mlockall() ? I saw the documentation of
> eposix,
> > and it seems implemented, but I never used eposix.
> 
> Er... how is that supposed to work?  eposix is just
> a library on top
> of the underlying OS.  It's an eiffel binding for
> POSIX routines,
> nothing else.  And apart from that, it doesn't even
> try to implement
> mlockall.
> 
> 
> Corinna
> 
> -- 
> Corinna Vinschen  Please, send mails
> regarding Cygwin to
> Cygwin Project Co-Leader  cygwin AT cygwin
> DOT com
> Red Hat, Inc.
> 
> --
> Unsubscribe info: 
> http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:  
> http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
> 
> 







___ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin, ssh, and top

2005-10-16 Thread David Rothenberger

On 10/15/2005 8:43 PM, David Christensen wrote:

René Berber wrote:


Yes but... the problem is caused by the terminfo data you showed:
columns is not defined.
Try "echo $COLUMNS"... now "export COLUMNS=80; top"; does it work?



COLUMNS is getting set someplace:

[EMAIL PROTECTED]:~$ echo $COLUMNS
80


Any other ideas?


Try setting COLUMNS to 79 with the comment "export COLUMNS=79".

I had this problem when I ran the Cygwin ssh client from bash *in a 
CMD.EXE window*. For some reason, Debian miscalculated the COLUMNS size; 
it was 1 column too large. When I manually set COLUMNS (from 130 to 129 
in my case), top worked correctly.


I recommend running ssh from bash in an rxvt window instead of using the 
CMD.EXE window. This will give you an "xterm" terminal in Debian which 
will work much better. I use it all the time with Debian 3.1 and have no 
problems.


--
David Rothenbergerspammer? -> [EMAIL PROTECTED]
GPG/PGP: 0x7F67E734, C233 365A 25EF 2C5F C8E1 43DF B44F BA26 7F67 E734

Kissing don't last, cookery do.
-- George Meredith


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: patch cygrunsrv for running native win32 applications

2005-10-16 Thread Yitzchak Scott-Thoennes
On Fri, Oct 14, 2005 at 12:24:44PM +0100, Henry S. Thompson wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Christopher Faylor writes:
> 
> > LOL.
> 
> Propose a gold star for Antony Baxter - I believe he is the first
> person on record as getting a laugh out of CGF!

It's been known to happen from time to time:

On Thu, Apr 14, 2005 at 10:05:58AM -0400, Christopher Faylor wrote:
> On Thu, Apr 14, 2005 at 06:22:06AM -0700, Yitzchak Scott-Thoennes wrote:
> >I recently ran across this (not work safe) similar request:
> >http://www.scs.cs.nyu.edu/~dm/remove.pdf
>
> I very nearly died while reading that link.  I started laughing so hard that
> I aspirated some tea and then I had to cough for a minute.  That was very
> funny.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Cygwin, ssh, and top

2005-10-16 Thread David Christensen
David Rothenberger wrote on cygwin:
> Try setting COLUMNS to 79 with the comment "export COLUMNS=79".
> I had this problem when I ran the Cygwin ssh client from bash *in a 
> CMD.EXE window*. For some reason, Debian miscalculated the COLUMNS
> size; it was 1 column too large. When I manually set COLUMNS (from
> 130 to 129 in my case), top worked correctly.
> I recommend running ssh from bash in an rxvt window instead of using
> the CMD.EXE window. This will give you an "xterm" terminal in Debian
> which will work much better. I use it all the time with Debian 3.1
> and have no problems.

Invoking rxvt from a Cygwin Bash shell and then ssh'ing into Debian and
customized Slackware gives me the same results as Putty -- e.g. everything works
on Debian 3.0 and 3.1, and the customized Slackware is messed up.


My preference is still that Cygwin bash ssh work correctly with Debian 3.1, and
I believe the problem is with whatever package provides terminal stuff in Debian
3.1.  I'll try to find the package and file a bug report.


David


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: boost, boost_unit_test_framework

2005-10-16 Thread Mattias Brändström

Václav Haisman wrote:

Well, it definitely doesn't work for me. I don't think I have in any way
non-standard Cygwin installation.

It would be helpful if you could download the -src package of Boost
using setup.exe, extract it and run the build-boost.sh script. Don't
forget to remove the --without-test line or make it into --with-test.



Ok. I have done that and I got the following error message:

Extracting source...tar: unrecognized option `--overwrite-dir'
Try `tar --help' or `tar --usage' for more information.

I removed that option from the tar command and tried to run 
build-boost.sh again. Now I get the following error output:


Building boost-1.33.0-1-src.tar.bz2...done.
Extracting source...done.
Building bjam...done.
Building Boost.Regex with the optional Unicode/ICU support disabled.
Please refer to the Boost.Regex documentation for more information
(and if you don't know what ICU is then you probably don't need it).
unknown target type for 
<@boost!libs!test!build>libboost_prg_exec_monitor.dll

Copying boost.README...done.
Copying Boost's docs into place...done.
Fixing permissions/build-boost.sh: line 101: cd: 
/usr/src/boost-1.33.0-1/fake-root/usr/lib: No such file or directory


:.:: mattias

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: boost, boost_unit_test_framework

2005-10-16 Thread Václav Haisman


Mattias Brändström wrote:
> Václav Haisman wrote:
> 
>> Well, it definitely doesn't work for me. I don't think I have in any way
>> non-standard Cygwin installation.
>>
>> It would be helpful if you could download the -src package of Boost
>> using setup.exe, extract it and run the build-boost.sh script. Don't
>> forget to remove the --without-test line or make it into --with-test.
>>
> 
> Ok. I have done that and I got the following error message:
> 
> Extracting source...tar: unrecognized option `--overwrite-dir'
> Try `tar --help' or `tar --usage' for more information.
> 
> I removed that option from the tar command and tried to run
> build-boost.sh again. Now I get the following error output:
> 
> Building boost-1.33.0-1-src.tar.bz2...done.
> Extracting source...done.
> Building bjam...done.
> Building Boost.Regex with the optional Unicode/ICU support disabled.
> Please refer to the Boost.Regex documentation for more information
> (and if you don't know what ICU is then you probably don't need it).
> unknown target type for
> <@boost!libs!test!build>libboost_prg_exec_monitor.dll
This is exactly the same error I get.

> Copying boost.README...done.
> Copying Boost's docs into place...done.
> Fixing permissions/build-boost.sh: line 101: cd:
> /usr/src/boost-1.33.0-1/fake-root/usr/lib: No such file or directory
> 
> :.:: mattias

Vaclav Haisman



signature.asc
Description: OpenPGP digital signature


Re: boost, boost_unit_test_framework

2005-10-16 Thread Mattias Brändström

Václav Haisman wrote:

<@boost!libs!test!build>libboost_prg_exec_monitor.dll


This is exactly the same error I get.



This is strange. When I get the test libraries to build I used a bjam 
binary that I downloaded from source forge:


http://peterhost.dl.sourceforge.net/sourceforge/boost/boost-jam-3.1.11-1-ntx86.zip

Perhaps you could try and build with that binary?

:.:: mattias

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin, ssh, and top

2005-10-16 Thread Chris Taylor

David Christensen wrote:

Invoking rxvt from a Cygwin Bash shell and then ssh'ing into Debian and
customized Slackware gives me the same results as Putty -- e.g. everything works
on Debian 3.0 and 3.1, and the customized Slackware is messed up.


My preference is still that Cygwin bash ssh work correctly with Debian 3.1, and
I believe the problem is with whatever package provides terminal stuff in Debian
3.1.  I'll try to find the package and file a bug report.



It should be pointed out that rxvt can be used in place of CMD.EXE, 
which is what is started by the Cygwin icon created by setup.


If you want to do that, here is my cygwin.bat:

@echo off

C:
chdir C:\cygwin\bin

rxvt -sl 1 -sr +sk -si -sw -fg Green -bg Black -e /bin/bash --login -i


Obviously the path needs to be altered to whatever you have for your 
cygwin installation.
I find this to be much more usable than using bash inside cmd.exe - 
things actually work.


HTH,

Chris

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Where is documentation on bash "wait"?

2005-10-16 Thread Bas van Gompel
Op Sat, 15 Oct 2005 22:01:26 -0600 schreef Eric Blake
in <[EMAIL PROTECTED]>:
:  According to Buzz on 10/15/2005 9:46 PM:
[(possibly stale) bash.1 about somewhere.]

:  Hmm, I do have /usr/local/man on my manpath, and it did indeed have
:  man1/bash.1, but I don't know if that affected things.

I don't think so, as long bash_builins.1.gz didn't have the dirname in
the .so.

: > I'm curious how that's gonna work. My ``man'', after i've edited
: > bash_builtins.1(.gz) to mention man1/bash.1.gz me, says:
: >
: > | man1/bash.1.gz:1: warning: can't find character with input code 6
:
:  It seems like man can cope with a .so that points to a .gz if that is the
:  only line, but has problems if the .so points to a .gz when embedded in
:  remaining text.

That appears to be an accurate description of this issue.

:   I'm not familiar enough with man to know what is going on
:  here, but it does seem like a man issue.

Indeed (same here).

:   Meanwhile, I can distribute
:  bash.1 instead of bash.1.gz since that is all that works with the current
:  version of man.

That does WJFFM. Thanks a lot for your efforts.

[...]


L8r,

Buzz.
-- 
  ) |  | ---/ ---/  Yes, this | This message consists of true | I do not
--  |  |   //   really is |   and false bits entirely.| mail for
  ) |  |  //a 72 by 4 +---+ any1 but
--  \--| /--- /---  .sigfile. |   |perl -pe "s.u(z)\1.as."| me. 4^re

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Where is documentation on bash "wait"?

2005-10-16 Thread Bas van Gompel
Op Sun, 16 Oct 2005 12:11:00 +0200 schreef Dr. Volker Zell
in <[EMAIL PROTECTED]>:
: > Buzz  writes:

:  > I was hoping for ``our'' man-maintainer, being much more knowledgeable
:  > about such issues, to be proactive...
:  > ...If (s)he isn't I'll look into finding the upstream ``man''-list.

:  I will forward this issues to the upstream man maintainer.

Great, thank you very much.


L8r,

Buzz.
-- 
  ) |  | ---/ ---/  Yes, this | This message consists of true | I do not
--  |  |   //   really is |   and false bits entirely.| mail for
  ) |  |  //a 72 by 4 +---+ any1 but
--  \--| /--- /---  .sigfile. |   |perl -pe "s.u(z)\1.as."| me. 4^re

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin, ssh, and top

2005-10-16 Thread Larry Hall (Cygwin)

Chris Taylor wrote:

David Christensen wrote:




My preference is still that Cygwin bash ssh work correctly with Debian 
3.1, and
I believe the problem is with whatever package provides terminal stuff 
in Debian

3.1.  I'll try to find the package and file a bug report.



It should be pointed out that rxvt can be used in place of CMD.EXE, 
which is what is started by the Cygwin icon created by setup.


If you want to do that, here is my cygwin.bat:

@echo off

C:
chdir C:\cygwin\bin

rxvt -sl 1 -sr +sk -si -sw -fg Green -bg Black -e /bin/bash --login -i


Obviously the path needs to be altered to whatever you have for your 
cygwin installation.
I find this to be much more usable than using bash inside cmd.exe - 
things actually work.


I think what David is saying here is that if there weren't a bug in Debian
3.1 terminal settings, this would work either way, just as it did in 3.0.
Regardless of the workarounds for the bug, there is still a bug and it's
worthwhile getting it fixed, if for no other reason than it will cut down on
some future traffic on this list. ;-)


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



EventListening

2005-10-16 Thread Peace Everyone
I'm a noob with cygwin and have a question about EventListening, is 
there an interface or a class I can use? Or some add on libraries to 
include or do I have to write/implement my own EventListening Class?


Thank you for your answers
Peace Everyone

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: EventListening

2005-10-16 Thread Larry Hall (Cygwin)

Peace Everyone wrote:
I'm a noob with cygwin and have a question about EventListening, is 
there an interface or a class I can use? Or some add on libraries to 
include or do I have to write/implement my own EventListening Class?


That's a good question.  I guess it depends on what kind of events you
want to listen for and where you believe the events are being generated.
You'll have to get much more specific about what you're trying to do
before someone on this list can offer you advice on this matter.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: EventListening

2005-10-16 Thread Peace Everyone

Peace Everyone wrote:

I'm a noob with cygwin and have a question about EventListening, is 
there an interface or a class I can use? Or some add on libraries to 
include or do I have to write/implement my own EventListening Class?



That's a good question.  I guess it depends on what kind of events you
want to listen for and where you believe the events are being generated.
You'll have to get much more specific about what you're trying to do
before someone on this list can offer you advice on this matter.



Okey, It's like creating events in the (Console and Graphic)UI to inform 
the ENGINE which data is needed.


One alternative is the console based UI, u type one command and several 
options, from which u generate the adequate event to inform the ENGINE 
what data the GUI needs


The other alternative is the "real" graphic based UI, with all the cute 
little buttons and textfields in place of the console based UI


I hope u now understand what I mean ;)

thanks for your answers
Peace Everyone

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: CYGWIN Installation Help Needed

2005-10-16 Thread Luke Kendall
On 14 Oct, S.Sunil Kumar wrote:
>  I would like to install CYGWIN in my WIN-XP-HE PC. 
>  I have downloaded the CYGWIN Program from one of the 
>  FTP site by running the SETUP.EXE file. 
>   
>  But I would like to know about how to install it in 
>  the XP System. 

There's a mailing list where questions like these can be answered.
I have CC-ed my reply to your question there.  I'm surprised you asked
us directly.

Anyway, it sounds like all you need to do is run setup.exe on your home
PC.  If that's what you meant, see http://cygwin.com/faq/faq.setup.html

The complete Cygwin download these days is about 2GB.  If instead you
meant that you want to transfer that download to your home PC, then see
http://cygwin.com/faq/faq.setup.html#faq.setup.cd

In addition, here's something you can use that makes it easier to pick
out just the "current" version of each package (instead of every
version of the packages).  It assumes you have used rsync to get a
mirror - so there should be a setup.exe, .bz2, and .ini file along with
a release directory.

It's actually excerpted from a slightly longer script, but there's no
point sending that since it depends on other things we do (like
automatically checking the MD5 signatures of all packages to make sure
the download is complete).

FWIW, here it is.  With this, the download can usually fit on a CD.

#!/bin/sh

  dst="$HOME/cygwin-for-CD"

  test -s setup.bz2 || exit 1
  test -d "$dst" || exit 1
  
  echo setup.exe
  echo setup.bz2
  echo setup.ini

  bzip2 -cd setup.bz2 | awk '
BEGIN {
  package = 0;
}

# Look for start of package block
/^@/ {
  package = 1;
  next;
}

# If inside a package block, look for a line beginning with "install: "
package && /^install: / {
  print $2;
  package = 0;
}'

) | cpio -pdmuv "$dst"

luke


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: EventListening

2005-10-16 Thread Larry Hall (Cygwin)

Peace Everyone wrote:

Peace Everyone wrote:

I'm a noob with cygwin and have a question about EventListening, is 
there an interface or a class I can use? Or some add on libraries to 
include or do I have to write/implement my own EventListening Class?




That's a good question.  I guess it depends on what kind of events you
want to listen for and where you believe the events are being generated.
You'll have to get much more specific about what you're trying to do
before someone on this list can offer you advice on this matter.



Okey, It's like creating events in the (Console and Graphic)UI to inform 
the ENGINE which data is needed.


One alternative is the console based UI, u type one command and several 
options, from which u generate the adequate event to inform the ENGINE 
what data the GUI needs


The other alternative is the "real" graphic based UI, with all the cute 
little buttons and textfields in place of the console based UI


I hope u now understand what I mean ;)



I think I do.  And it is as I suspected.

You're asking about application functionality.  This isn't a Cygwin-specific
question so it is off-topic for this list.  I believe you're really looking
for a framework for application development.  You may want to have a look at
QT, wxWindows, GTK and friends and other such toolkits.  You'll find QT3 and
GTK packages as part of the Cygwin distribution but you should really see
each toolkit's web site for complete information on what's available and
how it can be used.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
838 Washington Street   (508) 893-9889 - FAX
Holliston, MA 01746

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



exiting vim changes background colour of console

2005-10-16 Thread Robert Bram

Hi All!

I am finding that when I exit from vim, it turns my background back into black 
(which is how I had it before I tried changing it today). Is there a setting or 
something I have forgotten to change?

Kind regards,

Rob
:)

---
Robert Mark Bram
Portal Analyst Programmer
eTechnology, Coles Myer Limited
[EMAIL PROTECTED]
+61 3 9635 1036



This email and any attachments may contain privileged and confidential 
information and are intended for the named addressee only. If you have received 
this e-mail in error, please notify the sender and delete this e-mail 
immediately. Any confidentiality, privilege or copyright is not waived or lost 
because this e-mail has been sent to you in error. It is your responsibility to 
check this e-mail and any attachments for viruses.  No warranty is made that 
this material is free from computer virus or any other defect or error.  Any 
loss/damage incurred by using this material is not the sender's responsibility. 
 The sender's entire liability will be limited to resupplying the material.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Customising prompt

2005-10-16 Thread Robert Bram

Hi All!

I want my prompt like this:
bash2.05b User rbram on host cml035835 in dir /cygdrive/c/
Mon Oct 17 12:52:59> 

Here is my attempt so far:
PS1="\n\s\v \[\e[31m\]User \[\e[34m\]\u \[\e[31m\]on host 
\[\e[34m\]\h\[\e[31m\] in dir \[\e[34m\]\w\n\d \t> \e[30;47m "

The issue is this: the I am getting black text on grey background - why is 
this? I thought "\e[30;47m " means black text on white background. That is what 
I understood from this page:
http://www.pantz.org/scripting/shell/colorterm.shtml

Kind regards,

Rob
:)

---
Robert Mark Bram
Portal Analyst Programmer
eTechnology, Coles Myer Limited
[EMAIL PROTECTED]
+61 3 9635 1036


This email and any attachments may contain privileged and confidential 
information and are intended for the named addressee only. If you have received 
this e-mail in error, please notify the sender and delete this e-mail 
immediately. Any confidentiality, privilege or copyright is not waived or lost 
because this e-mail has been sent to you in error. It is your responsibility to 
check this e-mail and any attachments for viruses.  No warranty is made that 
this material is free from computer virus or any other defect or error.  Any 
loss/damage incurred by using this material is not the sender's responsibility. 
 The sender's entire liability will be limited to resupplying the material.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Customising prompt

2005-10-16 Thread Buchbinder, Barry (NIH/NIAID)
See the explanation here:
http://www.cygwin.com/ml/cygwin/2004-04/msg01198.html 

-Original Message-
From: Robert Bram [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 16, 2005 11:25 PM
To: cygwin@cygwin.com
Subject: Customising prompt

Hi All!

I want my prompt like this:
bash2.05b User rbram on host cml035835 in dir /cygdrive/c/ Mon Oct 17
12:52:59> 


Here is my attempt so far:
PS1="\n\s\v \[\e[31m\]User \[\e[34m\]\u \[\e[31m\]on host
\[\e[34m\]\h\[\e[31m\] in dir \[\e[34m\]\w\n\d \t> \e[30;47m "

The issue is this: the I am getting black text on grey background - why is
this? I thought "\e[30;47m " means black text on white background. That is
what I understood from this page:
http://www.pantz.org/scripting/shell/colorterm.shtml

Kind regards,

Rob
:)

---
Robert Mark Bram
Portal Analyst Programmer
eTechnology, Coles Myer Limited
[EMAIL PROTECTED]
+61 3 9635 1036

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Customising prompt

2005-10-16 Thread Brian Dessent
Robert Bram wrote:

> The issue is this: the I am getting black text on grey background - why is 
> this? I thought "\e[30;47m " means black text on white background. That is 
> what I understood from this page:
> http://www.pantz.org/scripting/shell/colorterm.shtml

The way that the ANSI escape sequences work is that there are 8 colors
and 2 intensities for each.  The 30 through 37 and 40 through 47 codes
set the FG and BG to one of those 8 colors.  So 47 really is gray,
because it's the low-intensity version of that color.  If you want white
you have to switch to the high-intensity version.

But, back in the old DOS days (early/mid 80s) the CGA adapter used the
intensity bit of the background color nibble to designate blinking,
which meant that you were limited to the 8 lower intensity colors for
the background of text.  But if I recall correctly you could toggle
this, and sacrifice the ability to have blinking text for the ability to
use the high-intensity background colors.

Anyway this is a long-winded way of saying that you need to include the
"blink" attribute in your ANSI sequence if you want the background to be
white.  Try "\e[5;30;47m".

However, I suggest that instead of setting the overall text color of the
console with the prompt, that you set it when the console is created. 
If you are using CMD.EXE you need to go to the properties of the
shortcut and mess with the "Colors" tab.  If you're using rxvt then you
can set it using command line parameters and/or resources.  If you do it
this way, the default colors of the console are set for you without
having to do it with the prompt.  For example, if you run vim then it
will go back to the default color set because it's not using the colors
in the prompt.  If you set the color of the console itself, you
shouldn't have this problem.

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Vim 6.4 has been released

2005-10-16 Thread Buchbinder, Barry (NIH/NIAID)
FYI

http://www.vim.org/

"[2005-10-15] It has been more than a year since version 6.3 was released.
Dozens of bugs have been fixed, runtime files were added and updated. There
are no new features, these go into Vim 7 now (still under development). This
is a stable Vim release, everybody is encouraged to upgrade to version 6.4."


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



[ANNOUNCEMENT] Updated: exim-4.54-1

2005-10-16 Thread Pierre A. Humblet
I have updated Exim, the Mail Transfer Agent, to version 4.54.

News
- For changes to exim proper, see
  
  
  
  and /usr/share/doc/exim-4.54/NewStuff

To update your installation, click on the "Install Cygwin now" link on
the http://www.cygwin.com web page.  This downloads setup.exe
to your system.  Then run setup and answer all of the questions.
Exim is in the Mail category.

If you have questions or comments, please send them to the Cygwin
mailing list: cygwin@cygwin.com, mentioning "exim" in the subject line.

Pierre

** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:
http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: exiting vim changes background colour of console

2005-10-16 Thread Robert Bram

==
I am finding that when I exit from vim, it turns my background back into black 
(which is how I had it before I tried changing it today). Is there a setting or 
something I have forgotten to change?
==
Actually this is happenning not just after vim.. but even after I exit "less"!

Kind regards,

Rob
:)

---
Robert Mark Bram
Portal Analyst Programmer
eTechnology, Coles Myer Limited
[EMAIL PROTECTED]
+61 3 9635 1036

>  -Original Message-
> From: Robert Bram 
> Sent: Monday, 17 October 2005 1:25 PM
> To:   'cygwin@cygwin.com'
> Subject:  exiting vim changes background colour of console
>
> Hi All!
>
> I am finding that when I exit from vim, it turns my background back into 
> black (which is how I had it before I tried changing it today). Is there a 
> setting or something I have forgotten to change?
>
> Kind regards,
>
> Rob
> :)
>
> ---
> Robert Mark Bram
> Portal Analyst Programmer
> eTechnology, Coles Myer Limited
> [EMAIL PROTECTED]
> +61 3 9635 1036
>
>

This email and any attachments may contain privileged and confidential 
information and are intended for the named addressee only. If you have received 
this e-mail in error, please notify the sender and delete this e-mail 
immediately. Any confidentiality, privilege or copyright is not waived or lost 
because this e-mail has been sent to you in error. It is your responsibility to 
check this e-mail and any attachments for viruses.  No warranty is made that 
this material is free from computer virus or any other defect or error.  Any 
loss/damage incurred by using this material is not the sender's responsibility. 
 The sender's entire liability will be limited to resupplying the material.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



rxvt as Bash login console

2005-10-16 Thread David Christensen
Chris Taylor wrote:
> It should be pointed out that rxvt can be used in place of CMD.EXE, 
> which is what is started by the Cygwin icon created by setup.
> If you want to do that, here is my cygwin.bat:
> @echo off
> C:
> chdir C:\cygwin\bin
> rxvt -sl 1 -sr +sk -si -sw -fg Green -bg Black -e /bin/bash --logi
> n -i
> Obviously the path needs to be altered to whatever you have for your 
> cygwin installation.
> I find this to be much more usable than using bash inside cmd.exe - 
> things actually work.

Interesting.  But, I ran across some issues:

1.  The font looks like a scalable font; I prefer the 7x12 bit-mapped
font so that I can put six consoles on my desktop (1280x1024) and
the stroke width makes the characters legible.  "man rxvt" and
playing around with the "-fn" (7x14, 7x13, 7x12) option didn't
produce a desirable result.  Nor did Shift+KP_Add or
Shift+KP_Minus. "locate font" led me to
/usr/share/groff/1.18.1/font, but grep'ing for "7x14" found
nothing.  Is there a way I can get the 7x12 bit-mapped font in
rxvt?

2.  It looks like there's a slight problem with the rxvt man page:

[EMAIL PROTECTED]:~$ man rxvt
/usr/bin/tbl::310: `.' not last character on lin
e
/usr/bin/tbl::310: giving up on this table

Looking at the same page using cmd.exe./Bash, the error message
flashes by just before the man page is displayed, and is gone after
exiting the man page.

3.  Copying from the rxvt console to the Windows (XP Professional SP2)
clipboard using Ctrl+C causes a new prompt to be displayed.  Is
there a way to avoid/ prevent this?  "man rxvt" "/copy" reveals
nothing.

4.  How do I paste from the clipboard to rxvt?  "man rxvt" "/paste"
reveals nothing.

5.  The rxvt consoles appear to be always on top.  How do I turn this
mode off?


David


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: rxvt as Bash login console

2005-10-16 Thread Brian Dessent
David Christensen wrote:

> 1.  The font looks like a scalable font; I prefer the 7x12 bit-mapped
> font so that I can put six consoles on my desktop (1280x1024) and
> the stroke width makes the characters legible.  "man rxvt" and
> playing around with the "-fn" (7x14, 7x13, 7x12) option didn't
> produce a desirable result.  Nor did Shift+KP_Add or
> Shift+KP_Minus. "locate font" led me to
> /usr/share/groff/1.18.1/font, but grep'ing for "7x14" found
> nothing.  Is there a way I can get the 7x12 bit-mapped font in
> rxvt?

Try -fn "FixedSys".  There might be other ways to get the bitmap fonts
by name.  There are a ton of .fon files in the %WINDIR%\Fonts directory,
you can try specifying them by name.  Maybe -fn "8514fix".

The above applies to W11 mode.  If you're using X11 mode then you'll
have to use a proper X11 font specifier such as
"-misc-fixed-medium-r-*-*-12-*-*-*-*-*-*-*".

Personally, I can't stand the bitmapped fonts.  Your objection seems to
revolve around the size, but you can change that.  I use -fn "Lucida
Console-11" and find it the best of all the monospaced fonts.  Vary the
number to change the size.

> 2.  It looks like there's a slight problem with the rxvt man page:
> 
> [EMAIL PROTECTED]:~$ man rxvt
> /usr/bin/tbl::310: `.' not last character on lin
> e
> /usr/bin/tbl::310: giving up on this table
> 
> Looking at the same page using cmd.exe./Bash, the error message
> flashes by just before the man page is displayed, and is gone after
> exiting the man page.

The rxvt manpage has always had problems.  I don't think the above
warning detracts from the ability to read the output though.

> 3.  Copying from the rxvt console to the Windows (XP Professional SP2)
> clipboard using Ctrl+C causes a new prompt to be displayed.  Is
> there a way to avoid/ prevent this?  "man rxvt" "/copy" reveals
> nothing.

That's because ^C is not the copy command in rxvt.  (It's being
interpreted by bash as "abort this command".)  In rxvt you don't do
anything to copy, it's done as soon as you highlight.

> 4.  How do I paste from the clipboard to rxvt?  "man rxvt" "/paste"
> reveals nothing.

Press the middle mouse button or shift-Ins to paste.  (section TEXT
SELECTION AND INSERTION in the manpage.)

> 5.  The rxvt consoles appear to be always on top.  How do I turn this
> mode off?

I've never had that happen.  Are you using W11 (native) or X11?

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



rxvt gets backspace when using synergy

2005-10-16 Thread cygwin . overbored
This is a strange bug. Apparently, every time I enter/leave the screen
between my Windows XP server and client, if rxvt is the foreground
window, then a character on the terminal gets backspaced! It happens
in no other applications, and it isn't a problem with the shell (it
happens when I run the cmd shell in rxvt, and doesn't happen when I
run bash in the cmd terminal). I'm using the latest versions of
synergy and rxvt. I'm not sure if this is a synergy bug or an rxvt
bug, but it's pretty annoying. Is this a bug? Can anybody do something
about this? Was this the right place to report this issue? Thanks in
advance.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Compile on a Win XP Station

2005-10-16 Thread Bbn
I would like to compile programs from SunPCI under Cygwin (My Desktop is far 
more powerful than my SunPCI).

Is it possible with Cygwin?

Thanks,
Ben 




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/