Re: Problem with function keys codes with vt100 emulation

2002-11-07 Thread Christopher Faylor
On Thu, Nov 07, 2002 at 10:45:54AM -0800, Reza Roodsari wrote: >This email is about your expressed opinion that the cygwin key bindings >could have been better than they currently are. I have been thinking about >what you are saying, and it seems to me that this is very much like the >vs. issue.

Re: Problem with function keys codes with vt100 emulation

2002-11-07 Thread Reza Roodsari
t; To: <[EMAIL PROTECTED]> Sent: Thursday, November 07, 2002 8:06 AM Subject: Re: Problem with function keys codes with vt100 emulation > On Thu, Nov 07, 2002 at 04:57:00PM +0100, Corinna Vinschen wrote: > >On Thu, Nov 07, 2002 at 10:33:18AM -0500, Chris Faylor wrote: > >>On

Re: Problem with function keys codes with vt100 emulation

2002-11-07 Thread Corinna Vinschen
On Thu, Nov 07, 2002 at 11:06:35AM -0500, Chris Faylor wrote: > Why are we having this discussion again? Discussion? What discussion? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:cygwin@;cygwin.com Re

Re: Problem with function keys codes with vt100 emulation

2002-11-07 Thread Christopher Faylor
On Thu, Nov 07, 2002 at 04:57:00PM +0100, Corinna Vinschen wrote: >On Thu, Nov 07, 2002 at 10:33:18AM -0500, Chris Faylor wrote: >>On Thu, Nov 07, 2002 at 08:11:33AM +0100, Corinna Vinschen wrote: >>>On Wed, Nov 06, 2002 at 10:36:09PM -0500, Chris Faylor wrote: I see what I was missing. F1 ==

Re: Problem with function keys codes with vt100 emulation

2002-11-07 Thread Corinna Vinschen
On Thu, Nov 07, 2002 at 10:33:18AM -0500, Chris Faylor wrote: > On Thu, Nov 07, 2002 at 08:11:33AM +0100, Corinna Vinschen wrote: > >On Wed, Nov 06, 2002 at 10:36:09PM -0500, Chris Faylor wrote: > >> I see what I was missing. F1 == ^[[[A, Up arrow == ^[[A. F1 has one > >> extra bracket. > >> > >

Re: Problem with function keys codes with vt100 emulation

2002-11-07 Thread Christopher Faylor
On Thu, Nov 07, 2002 at 08:11:33AM +0100, Corinna Vinschen wrote: >On Wed, Nov 06, 2002 at 10:36:09PM -0500, Chris Faylor wrote: >> I see what I was missing. F1 == ^[[[A, Up arrow == ^[[A. F1 has one >> extra bracket. >> >> I think this is also kind of lame but changing it now would probably bre

Re: Problem with function keys codes with vt100 emulation

2002-11-06 Thread Corinna Vinschen
On Wed, Nov 06, 2002 at 10:36:09PM -0500, Chris Faylor wrote: > I see what I was missing. F1 == ^[[[A, Up arrow == ^[[A. F1 has one > extra bracket. > > I think this is also kind of lame but changing it now would probably break > too many things. I'd like to make it the same as termcap but it's

Re: Problem with function keys codes with vt100 emulation

2002-11-06 Thread Randall R Schulz
Reza, RXVT has been specially ported for Cygwin and can operate both under XFree86/Cygwin and "stand-alone" (without an X server). If the DISPLAY environment variable is set, RXVT will try to connect to the server it designates. If there's no DISPLAY environment variable, then RXVT will create

Re: Problem with function keys codes with vt100 emulation

2002-11-06 Thread Reza Roodsari
Thank you both for the explanations. The differnece between a "terminal" (as in cygwin console) and a "terminal emulator" (as in hyperterm) finally clicked for me. I am interfacing (using telnet) to an application that expects an ansi terminal and this is just not possible with the cygwin console.

Re: Problem with function keys codes with vt100 emulation

2002-11-06 Thread Christopher Faylor
On Wed, Nov 06, 2002 at 07:21:03PM -0800, Randall R Schulz wrote: >I'm still missing something. > >Here's one line from my .inputrc: > >"\M-[[A""fg %1\C-M" > >This does not interfere with up-arrow doing history selection. It does what >I expect it to: Insert "fg %1". I see what I was missing.

Re: Problem with function keys codes with vt100 emulation

2002-11-06 Thread Randall R Schulz
Chris, I'm still missing something. Here's one line from my .inputrc: "\M-[[A""fg %1\C-M" This does not interfere with up-arrow doing history selection. It does what I expect it to: Insert "fg %1". Randall Schulz Mountain View, CA USA At 19:03 2002-11-06, you wrote: On Wed, Nov 06, 2002

Re: Problem with function keys codes with vt100 emulation

2002-11-06 Thread Christopher Faylor
On Wed, Nov 06, 2002 at 09:42:15PM -0500, Christopher Faylor wrote: >On Wed, Nov 06, 2002 at 06:23:37PM -0800, Randall R Schulz wrote: >>Chris, >> >>At 18:07 2002-11-06, you wrote: >>>On Wed, Nov 06, 2002 at 04:50:12PM -0800, Randall R Schulz wrote: The terminal emulation available under Cygwin

Re: Problem with function keys codes with vt100 emulation

2002-11-06 Thread Christopher Faylor
On Wed, Nov 06, 2002 at 06:23:37PM -0800, Randall R Schulz wrote: >Chris, > >At 18:07 2002-11-06, you wrote: >>On Wed, Nov 06, 2002 at 04:50:12PM -0800, Randall R Schulz wrote: >>>The terminal emulation available under Cygwin is not programmable, so it's >>>up to the software to adapt to it, not vi

Re: Problem with function keys codes with vt100 emulation

2002-11-06 Thread Randall R Schulz
Chris, At 18:07 2002-11-06, you wrote: On Wed, Nov 06, 2002 at 04:50:12PM -0800, Randall R Schulz wrote: >The terminal emulation available under Cygwin is not programmable, so it's >up to the software to adapt to it, not vice versa. I will note that it is very weird that F1 - F4 in cygwin are ge

Re: Problem with function keys codes with vt100 emulation

2002-11-06 Thread Christopher Faylor
On Wed, Nov 06, 2002 at 04:50:12PM -0800, Randall R Schulz wrote: >The terminal emulation available under Cygwin is not programmable, so it's >up to the software to adapt to it, not vice versa. I will note that it is very weird that F1 - F4 in cygwin are generating the same sequences as up/down/l

Re: Problem with function keys codes with vt100 emulation

2002-11-06 Thread Christopher Faylor
On Wed, Nov 06, 2002 at 03:06:43PM -0800, Reza Roodsari wrote: >Randall, thanks for the quick response. > >So the TERM environment variable is somewhat broken, in that setting it >to something else is a no-op. The first question that comes to mind is >whether this is characterized as a bug or a fe

Re: Problem with function keys codes with vt100 emulation

2002-11-06 Thread Randall R Schulz
ough TERM is set to vt100, in which case it would be nice to know what the role of /etc/termcap is. Or there really is a bug and all I need then is a workaround. Regards, Reza - Original Message - From: "Randall R Schulz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> S

Re: Problem with function keys codes with vt100 emulation

2002-11-06 Thread Reza Roodsari
t;[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 06, 2002 3:31 PM Subject: Re: Problem with function keys codes with vt100 emulation > Reza, > > The TERM variable is most certainly _not_ broken. You're misunderstanding > what it's for. The

Re: Problem with function keys codes with vt100 emulation

2002-11-06 Thread Randall R Schulz
Reza, The TERM variable is most certainly _not_ broken. You're misunderstanding what it's for. The TERM variable is how programs that must adapt to different terminal types (emulators or physical hardware) find out how to properly drive the terminal's display and respond to characters sent by i

Re: Problem with function keys codes with vt100 emulation

2002-11-06 Thread Reza Roodsari
ring the findings so far, this is probably unrelated to the topic of the discussion. Thanks again, Reza - Original Message - From: "Randall R Schulz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 06, 2002 1:19 PM Subject: Re: Problem wit

Re: Problem with function keys codes with vt100 emulation

2002-11-06 Thread Randall R Schulz
Reza, The terminal emulation model is what it is. There's one for the Cygwin console window, another for RXVT and yet another for xterm (under XFree86/Cygwin). The TERM variable serves to convey the indication of which terminal emulator is active to software such as Vim, Emacs, programs linked

Problem with function keys codes with vt100 emulation

2002-11-06 Thread Reza Roodsari
Hi I've spent two days investigating this and sorry if this has been answered already. I was not able to find any references. The problem I have is that the cygwin terminal window which runs the bash shell is generating the wrong key codes when function keys, such as f1, f2, etc, are pressed. Or