missing 'which' documentation

2007-12-12 Thread Lee D. Rothstein

Does anybody know or care that there is an option --
'-a' -- for 'which' -- that is not documented on
Cygwin. That is, there is no internal help, and there
is no 'man' or 'info' page provided by Cygwin install.
If anybody wants this, I will find or create the 'man'
page and make it cover '-a', and then do *what* with
it? Pointers appreciated!

To see the value of this option try (assuming you have MS
executable directories in your path):

 which ping  vs which -a ping
 which find  vs which -a find

and

 which dir   == which -a dir

i.e., 'dir' is an internal of 'cmd.exe'

Lee Rothstein



--
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: Mount Confusion -- the tallest pique in the world? ;-)

2003-11-01 Thread Lee D. Rothstein
At 2003-10-31 01:08 PM, Igor Pechtchanski wrote:
On Thu, 30 Oct 2003, Lee D. Rothstein wrote:

 Either Cygwin or I be confused. (I'm betting on I. ;-))

Bingo.

 I have deleted '/tmp' ('d:/Cygwin/tmp' -- using Explorer)
 and issued: 'umount /tmp' and 'mount 'e:\tmp /tmp' repeatedly.
 ^^
Umm, why?  Once should have been enough.

 All the other mounts to '/' appear in an 'ls' of '/',
 but '/tmp' ('e:/tmp'), does not.

What other mounts to /?  / itself is a mount, but under it everything
should be either a real or virtual (/proc, /dev) directory.

/zc -- c:/
...
/zy -- y:/

Why do /zc, /zd, /ze, /zf, /zg, ... ('mount c:/ /zc', ...
'mount g:/ /zg, ...) appear in ls output when no prior
'mkdir's have been carried out. What's different between
/tmp and /everything else?


 Prior to my doing any of the above (w/ Cygwin root at
 'c:/_Programs/Cygwin'), I've had recurring instances of something
 (apps?, 'setup.exe?, what?) creating 'tmp' and more frequently 'var' on
 both my 'c:' and 'e:' drives. This problem seems to have subsided since
 I moved the Cygwin root directory from 'c:/_Programs/Cygwin' to
 D:/Cygwin'.

I'd bet you were installing as one user and running as another.

You'd lose that bet. Only one ID -- Administrator. Cygwin always
*only* installed for/by Administrator.

One thing I do not understand, however, is the appearance of the
owner/user SYSTEM on some files/directories when I do 'ls -l'. 

 Also, after I moved Cygwin, despite changing all the references in the
 profile and Windows environment variables, *and* reinstalling the whole
 of Cygwin, Cygwin insisted on looking at the C/_Programs... : root
 rather than the D:/Cygwin... directory

 Anybody know what's causing this?

Stale user mounts?  Your /, /usr/bin and /usr/lib mounts appear to
be user mounts.  You should probably remount them as system (i.e.,
'mount -f -s -b d:/Cygwin /', 'mount -f -s -b d:/Cygwin/bin /usr/bin',
'mount -f -s -b d:/Cygwin/lib /usr/lib', and 'umount -U').

This was most helpful. To have a copy of the wisdom expressed above
for future reference, I have written the following script:

#!d:/Cygwin/bin/bash
#
# ^Use absolute[ly brain dead (MS)] paths until mounts are corrected
#
# 'mountproperly' -- This script is only required if Cygwin 'setup.exe'
#configuration gets screwed up WRT mounted directories,
#I.e., Initialize all mounts to their desired parameters
#
# 2003-10-31 -- as per Cygwin List/Igor Pechtchanski [EMAIL PROTECTED]
#

do1 () { # Make sure each drive/directory is mounted with the correct
 # parameters:
  d:/Cygwin/bin/umount$2  # 1st, unmount everything
  d:/Cygwin/bin/mkdir $2  # 2nd, make a directory representation
   # in the virtual root directory so that certain directories can show
   #  up at all as virtual directories (e.g., '/tmp')
  d:/Cygwin/bin/mount -f -s -b $1 $2  #  -f, force mount, don't warn about
   # missing mount point directories
   # -s, (default) add system-wide mount point; Lee: necessary? Default!
   # -b, (default) text files are equivalent to binary files
   # (newline = \n) Lee: necessary? It is the default.
}

d:/Cygwin/bin/umount -U # Unmount all user mounts. We want all mounts as
# system mounts, because ?
do1 d:/Cygwin /
d:/Cygwin/bin/mount -s -b -c /  # -c -- change the cygdrive path prefix
 # to / . This doesn't work? 'ls /c', nor 'ls //c', for example, does
 # not list the c: drive! What am I not getting?
do1 d:/Cygwin/bin /usr/bin # any others, missing, here?
do1 d:/Cygwin/lib /usr/lib

mkdir /proc # Allows 'ls'  'cd's to this virtual directory/information
mkdir /dev

for drive in c d e f g h x y a s # Drive mount points don't need actual
 # directories to show up in 'ls' output
 # for some reason. Why are these
 # different from '/tmp'?
  do
  umount ${drive}:/
  mount -f -s -b ${drive}:/ /z${drive}
  done

mount # See the corrected mounts
--

Also, your system cygdrive prefix is marked textmode; you should change
it to binmode to avoid spurious errors (by 'mount -s -b -c /').  It's
not very safe to have it set to '/' anyway...

Please note that in the above script ('mountproperly'), I have tried
to include the advice of the above sentence, but it occurs to me that
I'm having trouble with the referents in the sentence.

As far as I know, my only cygdrive prefix is 'cygdrive'. Are you
saying it's also '/'? Note that in the script I am doing a
'mount -s -b -c /'. That's what you are advocating?

Should this be written up for the FAQ?

Oh, and another small thing:

cls = `() {  cmd /c cls
}'

Why not install the clear package and 'function cls() { clear }'? ;-)
Igor

Artifact of a past limitation of 'clear'. It used

Re: Mount Confusion -- the tallest pique in the world!

2003-11-01 Thread Lee D. Rothstein
At 2003-11-01 03:27 PM, Igor Pechtchanski wrote:
 At 2003-10-31 01:08 PM, Igor Pechtchanski wrote:

 Why do /zc, /zd, /ze, /zf, /zg, ... ('mount c:/ /zc', ...
 'mount g:/ /zg, ...) appear in ls output when no prior
 'mkdir's have been carried out. What's different between
 /tmp and /everything else?

WAG: this may be due to the code that lists /cygdrive automatic mounts
(since your cygdrive prefix is set to /, you get your drives listed).

1st, the only cygdrive prefix that works on my system is /cygdrive/.
2nd, no matter what I set the prefix to /cyggdrive/ is the only
 prefix that works.
3rd, even using your suggestion of 'mount -c -b -s /IIFOIALIP', for
 example:

cd /IIFOIALIP/c/ # does not get me to c:/, whereas
cd /cygdrive/c/  # gets me there before during and after!!

Quite apart from the above:

Why (how is it that) I can get /zc ... /zy to show up in the output of 'ls /',
and I can do a cd to any of /z?, without creating respective directories in /
of /zc .. /zy?

I submit to the group that whatever inconsistency in implementation or
documentation is behind these problems, is the source of numerous
configuration problems that people are having. I have run into this
problem so many times that I refuse to let it rest until I understand
it.

  Prior to my doing any of the above (w/ Cygwin root at
  'c:/_Programs/Cygwin'), I've had recurring instances of something
  (apps?, 'setup.exe?, what?) creating 'tmp' and more frequently 'var' on
  both my 'c:' and 'e:' drives. This problem seems to have subsided since
  I moved the Cygwin root directory from 'c:/_Programs/Cygwin' to
  D:/Cygwin'.
 
 I'd bet you were installing as one user and running as another.

 You'd lose that bet. Only one ID -- Administrator. Cygwin always
 *only* installed for/by Administrator.

Nope.  Services run as LocalSystem (aka SYSTEM). :-p

I'm not getting the joke, and more importantly the point! Could someone
else jump in here who is not as proud of their own sense of humor.

 One thing I do not understand, however, is the appearance of the
 owner/user SYSTEM on some files/directories when I do 'ls -l'.

There you go. :-D

There I go where? I am not installing anything as SYSTEM. Cygwin
setup (?) must be doing it? Why? How? How do I keep the mismatches
from occurring again?

  Also, after I moved Cygwin, despite changing all the references in the
  profile and Windows environment variables, *and* reinstalling the whole
  of Cygwin, Cygwin insisted on looking at the C/_Programs... : root
  rather than the D:/Cygwin... directory
 
  Anybody know what's causing this?
 
 Stale user mounts?  Your /, /usr/bin and /usr/lib mounts appear to
 be user mounts.  You should probably remount them as system (i.e.,
 'mount -f -s -b d:/Cygwin /', 'mount -f -s -b d:/Cygwin/bin /usr/bin',
 'mount -f -s -b d:/Cygwin/lib /usr/lib', and 'umount -U').

For the third time, why do I have to explicitly specify '-s' and '-b'
when the man page says they are each the default?

What other sub-root directories besides /usr/bin /usr/lib require mounting
for a valid Cygwin configuration?

 As far as I know, my only cygdrive prefix is 'cygdrive'.
^





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



Mount Confusion -- the tallest pique in the world? ;-)

2003-10-30 Thread Lee D. Rothstein
Either Cygwin or I be confused. (I'm betting on I. ;-))

I have deleted '/tmp' ('d:/Cygwin/tmp' -- using Explorer)
and issued: 'umount /tmp' and 'mount 'e:\tmp /tmp' repeatedly.

All the other mounts to '/' appear in an 'ls' of '/',
but '/tmp' ('e:/tmp'), does not.

While the apps seem to find 'e:/tmp', should I be worried?

Prior to my doing any of the above (w/ Cygwin root at
'c:/_Programs/Cygwin'), I've had recurring instances
of something (apps?, 'setup.exe?, what?) creating 'tmp'
and more frequently 'var' on both my 'c:' and 'e:' drives.
This problem seems to have subsided since I moved the
Cygwin root directory from 'c:/_Programs/Cygwin'
to D:/Cygwin'.

Also, after I moved Cygwin, despite changing all the
references in the profile and Windows environment variables,
*and* reinstalling the whole of Cygwin, Cygwin insisted
on looking at the C/_Programs... : root rather than the
D:/Cygwin... directory

Anybody know what's causing this?

Note that at the end of the attached 'cycheck -shv', there is
the following error message:

cygcheck: dump_sysinfo: GetVolumeInformation() failed: 1

which seems to be coincidental when it checks the 'a:/' floppy drive.

Thanks,

Lee


--
Lee D. Rothstein -- [EMAIL PROTECTED]
VeriTech -- 603-424-2900
7 Merry Meeting Drive
Merrimack, NH 03054-2934


profile#2003-10-30#09.33.51
Description: Binary data


cygcheck#2003-10-30#09.16.41.txt.bz2
Description: Binary data
--
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: setup hangs during postinstall

2003-10-14 Thread Lee D. Rothstein
---

My tray-based background tasks include:

 * APC UPS Power Chute monitor
 * MS chain interconnect hardware manager (for SCSI, FireWire)
 * MS speaker/audio control
 * NAV scanner (when not disabled)
 * Adaptec create CD
 
One other difference that may be relevant is that I install all
of Cygwin on my systems.

Attached is the cygcheck from the Athlon system.

--
Lee D. Rothstein -- [EMAIL PROTECTED]
VeriTech -- 603-424-2900
7 Merry Meeting Drive
Merrimack, NH 03054-2934



--
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: New package: libmcrypt-2.5.7-1

2003-10-03 Thread Lee D. Rothstein
Thought you might find this interesting:

Cygwin email list:

At 2003-10-03 08:45 AM, you wrote:
I have packaged the libmcrypt encryption library. Libmcrypt is a library that 
provides access to several symmetric block and stream encryption algorithms. 
The following algorithms are implemented: 3-Way, Arcfour, Blowfish, Cast-128 
(known as Cast5), Cast-256, DES, Enigma, Gost, Loki97, Panama, RC2, 
Rijndael-128 (AES), Rijndael-192, Rijndael-256, Safer-sk64, Safer-sk128, 
Safer+, Serpent, TripleDES, Twofish, Wake, XTea. The block algorithms can be 
used in the modes CBC, CFB, CTR, ECB, OFB, NOFB and NCFB. Separate runtime 
and development packages are available.


To update your installation, click on the Install Cygwin now link on the 
http://cygwin.com/ web page.  This downloads setup.exe to your system.  Once 
you've downloaded setup.exe, run it and select Libs and then click on the 
appropriate field until the above announced version number appears if it is 
not displayed already.

If you have questions or comments, please send them to the Cygwin
mailing list at: [EMAIL PROTECTED] .  I would appreciate it if you would
use this mailing list rather than emailing me directly.  This includes
ideas and comments about the setup utility or Cygwin in general.

If you want to make a point or ask a question, the Cygwin mailing list
is the appropriate place.


CYGWIN-ANNOUNCE UNSUBSCRIBE INFO:
=
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]


Stefan Hetzl 

--
Lee D. Rothstein -- [EMAIL PROTECTED]
VeriTech -- 603-424-2900
7 Merry Meeting Drive
Merrimack, NH 03054-2934



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



Looking for BIND utilities: dig, nslookup, etc. --

2003-10-02 Thread Lee D. Rothstein
http://bind8nt.meiway.com/download.cfm

--
Lee D. Rothstein -- [EMAIL PROTECTED]
VeriTech -- 603-424-2900
7 Merry Meeting Drive
Merrimack, NH 03054-2934



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



'fortune', 'strfile' binmode

2003-06-04 Thread Lee D. Rothstein
After significant searching, I
discovered that 'fortune' requires
'strfile' to create the index database
('.dat' file) for each text file of
fortunes.

('strfile' is not listed under See
also:  'man fortune' and hence does not
appear in the output of 'apropos
fortune'. The 'man' page needs to be
updated. I will do it myself, if someone
will explain how to submit the change.
This is a change to GNU fortune 'man'
page, not Cygwin anything.)

However, when I execute 'strfile' on a
fortune file -- say, 'fortune', to
produce an index file -- e.g.,
'fortune.dat', it doesn't quite get the
index right.

I've tried (I think) all combinations of:

 * 'strfile', 'strfile -r'
 * UNIX and DOS line endings and
   character sets (LF vs CRLF, ANSI vs
   DOS)
 * Cygwin=nobinmode ... vs.
   Cygwin=binmode ...
   
and no luck.

Suggestions?

--
Lee D. Rothstein -- [EMAIL PROTECTED]
VeriTech -- 603-424-2900
7 Merry Meeting Drive
Merrimack, NH 03054-2934



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



Running man by double clicking a man page, from Explorer?

2003-03-25 Thread Lee D. Rothstein


Since 'man' pages for commands all have the same extension
('.1'), it seems to me that it should be possible to write a
batch file that calls 'bash' that 'invokes' man for the page?

This would allow you to double click a 'man 1' page, and voila, a
'cmd.exe'/'bash.exe' window would appear with the man page
displayed.

As it turns out, there are several things like this that I want
to do. So far, haven't been able to figure out how to do it.

Anybody solved this problem or proved it is unsolvable?

--
Lee D. Rothstein -- [EMAIL PROTECTED]

VeriTech -- 603-424-2900
7 Merry Meeting Drive
Merrimack, NH 03054-2934  



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



'cygpath -ml posix_8.3_path' bug?

2003-03-19 Thread Lee D. Rothstein
My reading of the cygpath documentation and
embedded help is that:

  cygpath -ml /cygdrive/c/docume~1

or:

  cygpath --mixed --long-name /cygdrive/c/docume~1

should output:

  c:/Documents and Settings

Of course:

  cygpath --mixed $(cygpath --windows --long-name /cygdrive/c/docume~1)

does yields the correct results. 

Isn't this a bug in 'cygpath'?


--
Lee D. Rothstein -- [EMAIL PROTECTED]

VeriTech -- 603-424-2900
7 Merry Meeting Drive
Merrimack, NH 03054-2934  



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Cygwin + Oracle (Pro*C) + Your Mother

2003-03-15 Thread Lee D. Rothstein
From: Gary R. Van Sickle [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Cygwin + Oracle (Pro*C)
Date: Fri, 14 Mar 2003 23:26:46 -0600

At 22:34 2003-03-13, [EMAIL PROTECTED] wrote:

On 13 Mar 2003, günter strubinsky [EMAIL PROTECTED]wrote:

I am lost right now.

Maybe you can't see the way because all that html is in the way.


Right. And that silly ASCII business is overkill, too.

I'm starting a new campaign to go
back to Fieldata and Baudot. Who
needs all that fancy-pants punctuation?
If you can't get your meaning
across with letters, numbers, comma,
period and quotes (and, of course,
the all-important dollar $ign), you
just don't know how to communicate.
Oh, yeah, and parentheses, of course...
Hell, Fieldata has six unused
codes. What a waste! Better stick to Baudot.

RRS

Pfhht, Fieldata, Baudot!  Kids today
and their MIL-STD's and their letter
sets and their figure sets, bah!
Why, in my day, we had to press crude
wooden styli into wet clay tablets to
exchange information!  Me.  And when
the clay dried and turned rock-hard
before you were finished, you'd get
slivers from the stylus embedded in your
fingers.  And the slivers would get
infected, and pus would ooze all over
your clay tablet, and we'd exchange pus-
stained clay-tablet information and
that's the way it was AND WE LIKED IT!
We loved it. We couldn't get enough of
it.  Yeah, we liked it just fine.

Two 'important' points were left out of
this 'cogent' summary:

 * The data had to walk uphill in both
   directions on the transmission line
   
 * Rosanne Rosannadanna lives! 'If it's
   not one thing it's another ...'
   
Well stroked youse guys. ;-)

And, I apologize for not encoding my message
thusly:

ooo.
 o . ooo
  o.   o
oo . oo 
 oo.oo  
  o.o
o  .
 o .
.
.
.

--
Lee D. Rothstein -- [EMAIL PROTECTED]

VeriTech -- 603-424-2900
7 Merry Meeting Drive
Merrimack, NH 03054-2934  



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



.com other executable filename extensions

2003-03-12 Thread Lee D. Rothstein
Anybody know why under both cygwin.bat 
'cmd.exe', I must explicitly type the
'.com' extension in order to get a
'.com' file to execute.

I've tried adding the following line to
'cygwin.bat':


  set PATHEXT=%PATHEXT%;.sf;.ksf;.cmd;.com;.exe;.bat;.awk;.pl;.py
  
No help.

If this is covered anywhere in the
documentation, it's got me fooled.

Lee


--
Lee D. Rothstein -- [EMAIL PROTECTED]

VeriTech -- 603-424-2900
7 Merry Meeting Drive
Merrimack, NH 03054-2934  



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Lovable Cygwin the Enterprise

2003-02-25 Thread Lee D. Rothstein
Patrick,

Congratulations.

May I use the message below in
an article I'm writing on use of Cygwin
and related software (e.g., OpenOffice
-- OO) in the enterprise?

Also, if you'd care to comment further
on how you used PostgreSQL client (PGSC)
in this endeavor, please do so.

Patrick, et al., 

What did you use to do the push? PGSC?

Have you looked at 'rdist'
(http://rdist.org)? Will 'rdist'
compile  run under Cygwin?

Have you used 'ssh','sftp', 'scp',
'sshd', etc.?

('rdist' can use 'ssh' as transport.)

If you'd like to share any more of your
experiences, I'd appreciate it?

What is the range of use, for example,
of OO and other open source (including
Cygwin), by your users? (range == #
and pkg/app. E.g.: 9 users of WP in OO;
8, short documents, only; 1 some
technical reports graphics (Gimp for
Windows) with sections and
styles. 2 actually write shell scripts,
1 for the administration of a Linux
server)

Perhaps we should take this interchange,
offline? I'll post summaries, regardless.

Thanks, Lee



From: Patrick Nelson [EMAIL PROTECTED]
To: CygWin List (E-mail) [EMAIL PROTECTED]
Subject: I love cygwin
Date: Mon, 24 Feb 2003 10:41:44 -0800
MIME-Version: 1.0
Content-Type: text/plain;
  charset=iso-8859-1

OK it official... I love you cygwin!

Upgraded my company's remaining Windows
users off Office to OpenOffice.  Was
having a problem with datasources and
not having a Linux box handy I loaded up
cygwin (and postgresql client).  I was
able to trouble shoot all my problems.
It was great... so great that I pushed a
cygwin install out to all the remaining
Windows users.  I just love this stuff.


--
Lee D. Rothstein -- [EMAIL PROTECTED]

VeriTech -- 603-424-2900
7 Merry Meeting Drive
Merrimack, NH 03054-2934 



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: remapping Cygwin 'bash' readline functions to PC keys

2003-02-20 Thread Lee D. Rothstein
John, thanks for the C-V heads up! Others had
suggested, variations of 'cat  foo' and 'od -c'. (The
former I got to work, the latter remains a mystery.)
Your solution, besides being the most straight-forward,
is also a great tool to have around. Apparently, it's a
feature of Cygwin, or 'bash', since it doesn't work in
a naked 'cmd.exe' window. I'll be sure to add it to my
documentation.

Unfortunately the key combos I'm trying to map to
are: ^-- and ^-- (control- and the right and left
arrow keys). It turns out that the character string
outputs for both the:

* naked key
* shift - and the naked key
* control- and the naked key

are all the same.

Actually, I no longer consider these to be KIDs; these
are the character string graphemic outputs of hitting
the key. I'll continue to reserve KIDs for when one
represents these [and the key isomorphisms]
with '/e...', 'C-...', etc. notation.

Apparently (?), the only way to discriminate among these
three alternatives is with Scan Codes. Apparently, all
the -x-ish stuff I've used (Microemacs, Thompson shell
command line editing) that can discriminate among the
three alternatives all use Scan Codes (?).

 - Any way to map to Scan Codes to 'bash' 'readline'
   functions under Cygwin?
   + Or to key names like: 'CTRL-left-arrow',
 'CTRL-HOME'
 - Any interest among Cygwin developers in adding
   this?

At 2003-02-19 08:02 AM -0800, John Mapole wrote:
...
You can build your own KID table. Once at the cygwin
prompt you can type C-V, that's control-V, followed
by the key.  On my machine, if I type C-VINSERT, I
see ^[[2~.  This is the same as \e[2~.

Why these mapping are like this relates to how windows
maps them and then how cygwin maps them.  Something I
am now very clear on.

Hope this helps some.

John Mapoles

--- Lee D. Rothstein [EMAIL PROTECTED] wrote:
...
 Q1 -- When you remap a 'bash' Edit Mode function in
 .inputrc, it looks like this:

 \e[3~:  delete-char # DEL key

 The entity in double quotes (\e[3~), I'm calling
 the key ID (KID). In the above '.inputrc' declaration,
 the function 'delete-char' being remapped from its
 default key assignment to the KID -- \e[3~ -- the
 DEL key.

 What are the KIDs of the following IBM PC keys
 (specified below with facsimiles of the key caps
 contained in angle brackets -- '...')?

 Cursor control key pad
 --
 HOME
 END
 left-arrow
 right-arrow
 PAGE_UP
 PAGE_DOWN
 INSERT

 Numeric pad
 ---
 -
 +
 ENTER
 /

I should have included in the above lists, all variations
of the above with the control, alt and shift keys.

 In general, I'd like a table that maps the KIDs for all
 104 keys on the keyboard I use. Or, better still, is
 there a way to use scan codes?

 (Incidentally, what makes finding a table of these
 KIDs so difficult is the failure of the documentation
 to assign this concept a unique, or even a consistent
 word.)

 Q2
 --

 Is there a way to make the INSERT key a toggle
 between the insert and overwrite modes of 'bash'
 edit mode?

 I used to have these figured out for 'Microemacs',
 but that was half a lifetime ago, for me,  Microemacs
 supported scan codes, if I remember correctly.

--
Lee D. Rothstein -- [EMAIL PROTECTED]
VeriTech -- 603-424-2900
7 Merry Meeting Drive
Merrimack, NH 03054-2934  



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: remapping Cygwin 'bash' readline functions to PC keys

2003-02-20 Thread Lee D. Rothstein
re: using 'rxvt' to be able to discriminate
between C-left-arrow ^ left-arrow, etc. in
Cygwin 'bash' 'readline'

John Mapoles, et al.,

Are you saying that I should try using use 'rxvt'
in a console window as the interface to *Cygwin*?

Remember, I'm not interfacing to another host when
I run 'bash', in this instance. 'bash' is *not*
remote.  It's *not* running on *u*x. It's running
on the local W2K or WXP machine running Cygwin.

(BTW, I'm sorry if you knew this, but I've gotten
such strange responses from some folks to this
line of queries that I can't help but wonder how
many really understand what I'm asking.)

Can I only do that if I run the 'rxvt' server
(daemon) too?

And, if so, would I still be able to launch
windowed (GUI) Windows applications from a 'bash'
command prompt?

If this would actually work, what percentage of my
MPU, am I throwing down a rat hole? ;-)

If this were to work, wouldn't that mean that
'rxvt' server or client was looking at the scan
codes?  So 'rxvt' server operates at a lower
level than the console handler?

Or, is all of this a problem with the
implementation of the terminal (console) handler
(or, terminfo translator) in Cygwin?

Or, am I more confused than I thought I was?

BTW, running 'ssh' in a Cygwin window to a Linux
machine, does not fix the control/naked arrow key
discrimination problem and resetting the 'TERM'
environment variable on Cygwin to anything other
than 'Cygwin' generates errors in applications
like 'man' that use screen character cell control
and doesn't fix the problem for my terminal
window for the remote machine (I think).

See below.

Thanks,

Lee

At 2003-02-20 02:03 PM -0800, john mapoles wrote:
Lee,

This is very similar to a problem that I've had in
Vim.  I build a library of maps from the Vim actions
to simpler actions, i.e. I like to map F4 to delete
line ( F4 is usually ^[[[D on a windows box ).  On
most UNIX platforms things like right-arrow and
control right-error are different.  As you pointed out
this is not so on a windows box.  I've just begun to
play with rxvt.  This has the feel of a UNIX xterm but
is also similar to a command window.  But, rxvt uses a
more robust map.  On my machine I get:
--^[[C
   ^--^[Oc
rxvt can probably re-map any key by the correct choice
of termcaps (something I do not know how to do).  Try
rxvt.

BTW, my guess is the problem is not the map. but
whether some level of console handler looks at
the character output from the keyboard rather than
the scan codes, and whether the Cygwin DLL writers
want to go down to the right level?

At any rate what is the local 'terminfo' database
on Cygwin for? ssh in? rxvt in? Incoming 'telnet'
traffic?

jm  



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




.inputrc and command line edit mode function key remapping

2003-02-18 Thread Lee D. Rothstein
Think of this as a brief FUQ (a veritable 'Quickie', as
it were) -- Frequently Unanswered Questions

Disclaimer/Alibi

These are really questions for the 'bash' group, except
that they specifically deal with the PC and its
keyboard (*and* I'm using 'bash' on Cygwin).

I've searched for answers throughout the Cygwin,
'emacs' and 'bash' documentation, and the Web and even
bought the book, /Learning the bash shell/. Alas, no
FUQing help! ;-)

I plan to document this in some copylefted docs, so you
should be able to leverage the time of your answers.

Q1 -- When you remap a 'bash' Edit Mode function in
.inputrc, it looks like this:

\e[3~:  delete-char # DEL key

The entity in double quotes (\e[3~), I'm calling the
key ID (KID). In the above '.inputrc' declaration,
the function 'delete-char' being remapped from its
default key assignment to the KID -- \e[3~ -- the
DEL key.

What are the KIDs of the following IBM PC keys
(specified below with facsimiles of the key caps
contained in angle brackets -- '...')?

Cursor control key pad
--
HOME
END
left-arrow
right-arrow
PAGE_UP
PAGE_DOWN
INSERT

Numeric pad
---
-
+
ENTER
/

In general, I'd like a table that maps the KIDs for all
104 keys on the keyboard I use. Or, better still, is
there a way to use scan codes?

(Incidentally, what makes finding a table of these
KIDs so difficult is the failure of the documentation
to assign this concept a unique, or even a consistent
word.)

Q2
--

Is there a way to make the INSERT key a toggle
between the insert and overwrite modes of 'bash'
edit mode?

I used to have these figured out for 'Microemacs', but
that was half a lifetime ago, for me, and Microemacs
supported scan codes, if I remember correctly.

The discerning reader will have surmised both from
these questions and my earlier query 'on the humble
DEL key', that I am trying to make a PC, under the
estimable Cygwin, exploit those few niceties of the PC
(keyboard).

Thanks

Lee

P.S. In anticipation of the righteous among you being
 offended by the term 'FUQ', I shared your
 indignation; it occurred shortly after buying the
 ill-fated -- and referenced -- 'bash' book. (Yes,
 it's true; I'm bashing the 'bash' book.)

 And, please, whatever you do, don't kid a KIDer. ;-)


Lee D. Rothstein -- [EMAIL PROTECTED]
VeriTech -- 603-424-2900
7 Merry Meeting Drive
Merrimack, NH 03054-2934

--






--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




The humble DEL and other editing keys

2003-02-14 Thread Lee D. Rothstein
Since at least 1979, when I started using Warren Montgomery's
Emacs on System III UNIX, I have been annoyed with DEC's and
RMS's treatment of the DEL (or RUBOUT key as they called
it. In those days, I reconfigured my keyboard to fix this
abortion.

I want DEL to do what any self-respecting DEL should do,
namely delete the character at the cursor.

Anyone know how to do this with Cygwin command line editing?

Anyway, to get CTRLright-arrow or CTRLleft-arrow to
move a word at a time?

I am willing to accept RMS as my god, minus this one hamartia.
;-) Help.

Lest I forget:

To all the Cygwin developers out there:

- Thank you.
- Outstanding work.
- If you can fix Windoze, is there anything you can do about
  the weather? ;-|)

Thanks!

Lee

P.S. I learned interactive computing on a PDP-8, so I've faced
 this DEC DEL issue since at least 1970, but once I saw
 a real DEL, I could never go back to the weakling DEL
 of DEC. You don't suppose this caused their demise?

Lee D. Rothstein -- [EMAIL PROTECTED]
VeriTech -- 603-424-2900
7 Merry Meeting Drive
Merrimack, NH 03054-2934

--






--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: The humble DEL and other editing keys

2003-02-14 Thread Lee D. Rothstein
Elfyn,

Thanks.

See my comments and further questions, below.

At 2003-02-14 06:18 PM +, Elfyn McBratney wrote:


 I want DEL to do what any self-respecting DEL
 should do, namely delete the character at the cursor.

In bash you can add the following

# DEL key in bash
\e[3~: delete-char

to your ~/.inputrc or your /etc/inputrc file to get
a functioning DEL key.


* ~/.inputrc works. /etc/inputrc doesn't. Why?
* Is there documentation for this? Specific to Cygwin? Or,
  not necessary due to complete compatibility. Does
  terminfo, play a role, here?
* How does one go about writing documentation for Cygwin?
  I'm interested.
* What are the names of the forward and backward word  keys
  in 'bash', and how do I set them to CTRL-right-arrow and
  CTRL-left-arrow. (I have the environment variable,
  'EDITOR', set to 'TextPad.)



Lee D. Rothstein -- [EMAIL PROTECTED]
VeriTech -- 603-424-2900
7 Merry Meeting Drive
Merrimack, NH 03054-2934

--






--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




<    1   2