RE: RE: RE: Two issues with Xwin

2007-08-29 Thread Thorsten Kampe
* Ronald Fischer (Wed, 29 Aug 2007 10:20:18 +0200)
  Thorsten wrote:
  I have two issues that I've been experiencing for quite a long time:
  
  * using a terminal and a shell I often have to enter Enter or Tab
  twice to get the desired effect. How come?
[...]
 At the time the OP had just mentioned the problem, I thought that indeed
 the differences could be cygwin related: When I run my X11 rxvt (from
 startxwin.bat), different dot files in my home directory are sourced
 than when I start a shell from the command line (outside X). There is
 no mystery about this and has to do with the rules according to which
 the shells (bash, zsh,...) read their dot-files.
 
 But in the last mail, the OP said he has ONLY one dot-file, i.e. .zshrc,
 (meaning it will be read in every interactive shell, be it login shell
 or not) AND he is using zsh in both cases, AND he has no settings
 related to
 completion, AND still completion works in a different way in both cases.
 To track down this mystery, I think it is worth digging down what other
 configuration files (besides those in $HOME) might affect zsh. Since
 I am not that big an zsh expert, and since no other posting so far
 (unless
 I missed one) gave any information about zsh, I think it was a
 reasonable advice to post this issue to the zsh mailing list as well -
 don't you think so?
 
  Fine,
  they COULD have different zsh binaries sourcing different environment
  files, but it's far more likely that Cygwin/X is misbehaving than that
  Thorsten somehow managed to find a zsh binary that sometimes eats the
  enter key.  
 
 As for the enter key, you are right. In his first posting, Thorsten
 mentioned the Enter or Tab key on the first try. Since both keys 
 are used in the context of completion, I guessed it was a completion 
 issue - and  Thorsten at least did not directly contradict this.
 
 You seem to suggest that he meant that in *every* usage of enter
 and tab, the first one has been eaten? If this were the case, it
 would indeed change the picture, and maybe Thorsten could clarify
 this issue.

It's not Zsh that's eating my Enter (or Tab) key but X (or maybe the 
terminal emulator). It doesn't happen all the time but often. I 
can't find any pattern in this.

Sometimes I think that I'm just stupid and don't press that Enter key 
hard enough but that can't be the reason. Why would Konsole require 
the Enter key to be pressed harder?!

I'm using Konsole (either via X forwarding or the Konsole Cygwin exe) 
so I don't whether it happens with other terminals. I don't use Rxvt 
under X because I looks very ugly and I can't make it display my 
preferred font (Dejavu Mono).


Thorsten


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



RE: RE: RE: RE: Two issues with Xwin

2007-08-29 Thread Ronald Fischer
 It's not Zsh that's eating my Enter (or Tab) key but X (or maybe the 
 terminal emulator). It doesn't happen all the time but often. I 
 can't find any pattern in this.

I sometimes find that I have to wait 10-40 seconds or so until the
completions 
are shown. Or, when I do a ls /usr/bin (for instance), sometimes I see
the result 
immediately, sometimes it takes 10-15 seconds after pressing 
the enter key, until the files are displayed. Could be attributed 
in my case to networking issues (my $HOME is on a Samba-mounted 
netdrive), so it could be a timing/caching issue.

But this does, of course, not explain why your two terminals should
behave
differently. You did not say how frequent this occurs. Could it be that
it happens rarely enough, that just by accident you have observed it
only
with one terminal type, but not with the other? Does the X terminal
sometimes
eat other keys too when you are typing fast? And I still would find it
worth a try - despite what has been suggested earlier in this thread -
to see whether 
the same behaviour exists with bash (or other applications reading
keystrokes).

Ronald
-- 
Ronald Fischer [EMAIL PROTECTED]
Phone: +49-89-452133-162

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



RE: RE: RE: Two issues with Xwin

2007-08-28 Thread Ronald Fischer
 * Ronald Fischer (Mon, 27 Aug 2007 15:57:34 +0200)
  This suggest that different dot-files are sourced in the two cases.
  When I run bash (in my case) either from cmd or started by XWin, I
  also have differences in which dot-files are sourced, so this is the
  first place you might want to look.
 
 There is just one configuration file in this case: ~/.zshrc. 

H this should be sourced every time you have an interactive
shell.

 And I 
 don't have any setting that would have the do nothing on the first 
 enter; wait for the second enter effect.

I guess you mean: wait for the second *tab* etc.

In this case, the correct behaviour should *always* be (I think) to show
that
part of the completion, which is unique, on the first press of tab, and
show
a list of all possible completions on the second press of tab.

If it is not due to different settings in your shells, I have no idea
why
anymore why both shells behave different (stupid question: You are sure
that
you have the same zsh called in both cases? What does echo $ZSH_VERSION
say
in rxvt, respectively CMD window?) 

Maybe this is the point where you should repost this problem to the zsh
folks. 
Not only it doesn't look that much like a Cygwin issue to me, but I
remember 
that on the zsh mailing list
(http://zsh.dotsrc.org/Doc/Release/zsh_2.html#SEC6), 
there are also quite a few Cygwin users hanging around, so your problem
will
for sure be understood there.

Ronald
-- 
Ronald Fischer [EMAIL PROTECTED]
Phone: +49-89-452133-162

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



Re: RE: RE: Two issues with Xwin

2007-08-28 Thread Matt Wozniski
Thorsten wrote:
I have two issues that I've been experiencing for quite a long time:

* using a terminal and a shell I often have to enter Enter or Tab
twice to get the desired effect. How come?

Ronald wrote:

Which effect do you desire? (Filename completion, command completion, ...)?

Thorsten wrote:

The desired effect for the Enter key would be to normal enter function
of a shell. Tab should do file and command completion.
...
I don't think the content of $INPUTRC is relevant when talking about
Enter and Tab having no effect on the first try.
...
And I don't have any setting that would have the do nothing on the
first enter; wait for the second enter effect.

Ronald wrote:
I guess you mean: wait for the second *tab* etc.


SO, my question to Ronald is:  Have you read anything in this thread,
or just posted to it a lot?  It's obviously NOT a zsh problem if it
doesn't happen in Windows RXVT but does happen in X11 RXVT.  Fine,
they COULD have different zsh binaries sourcing different environment
files, but it's far more likely that Cygwin/X is misbehaving than that
Thorsten somehow managed to find a zsh binary that sometimes eats the
enter key.  If you can't take the time to read a thread, you really
oughtn't post to it.

 Maybe this is the point where you should repost this problem to the zsh
 folks.
 Not only it doesn't look that much like a Cygwin issue to me, but I
 remember
 that on the zsh mailing list
 there are also quite a few Cygwin users hanging around

Again, read better, or at least research.  Thorsten IS one of the
Cygwin people who hangs around the zsh mailing lists.

The only thing worse than no answer to a question is a wrong answer
that keeps being repeated.  Do Thorsten a favor and stop talking.

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



RE: Two issues with Xwin

2007-08-27 Thread Ronald Fischer
 * using a terminal and a shell I often have to enter Enter or Tab 
 twice to get the desired effect. How come?

Which effect do you desire? (Filename completion, command completion,
...)? Which
shell? How did you configure it? (i.e. if you are talking about readline
functionality,
what's the content of your .inputrc, and did you make sure it gets
read?).

Ronald

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



Re: Two issues with Xwin

2007-08-27 Thread Larry Hall (Cygwin X)

On 08/25/2007, Thorsten Kampe wrote:
* I regularly lose the mouse pointer and I'm unable to the the cursor 
anymore in applications like Konsole (either natively or running as X 
client on a Linux host). The mouse still works if I blindly click 
somewhere, just the cursor is gone. This happens with -lesspointer or 
without. Any ideas?


Known issue.  Use the option off the context menu of the X icon in your
status bar to show the cursor again.  That's the current work-around.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 429-6305 - FAX
Holliston, MA 01746

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



Re: Two issues with Xwin

2007-08-27 Thread Thorsten Kampe
* Larry Hall (Cygwin X) (Mon, 27 Aug 2007 09:10:28 -0400)
 On 08/25/2007, Thorsten Kampe wrote:
  * I regularly lose the mouse pointer and I'm unable to the the cursor 
  anymore in applications like Konsole (either natively or running as X 
  client on a Linux host). The mouse still works if I blindly click 
  somewhere, just the cursor is gone. This happens with -lesspointer or 
  without. Any ideas?
 
 Known issue.  Use the option off the context menu of the X icon in your
 status bar to show the cursor again.  That's the current work-around.

Okay, thanks, worked. Do you have some background information why this 
happens and when? Because I have the feeling that sometime it happens 
after a few minutes and sometimes after hours or not at all.

Thorsten


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



RE: Two issues with Xwin

2007-08-27 Thread Thorsten Kampe
* Ronald Fischer (Mon, 27 Aug 2007 09:42:20 +0200)
  * using a terminal and a shell I often have to enter Enter or Tab 
  twice to get the desired effect. How come?
 
 Which effect do you desire? (Filename completion, command completion,
 ...)?

The desired effect for the Enter key would be to normal enter function 
of a shell. Tab should do file and command completion.

 Which shell?

zsh

 How did you configure it? (i.e. if you are talking about readline
 functionality, what's the content of your .inputrc, and did you make sure it 
 gets
 read?).

I don't think the content of $INPUTRC is relevant when talking about 
Enter and Tab having no effect on the first try. Anyway, I have no 
problem with that in rxvt or cmd - only in X.


Thorsten


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



Re: Two issues with Xwin

2007-08-27 Thread Larry Hall (Cygwin X)

Thorsten Kampe wrote:

* Larry Hall (Cygwin X) (Mon, 27 Aug 2007 09:10:28 -0400)

On 08/25/2007, Thorsten Kampe wrote:
* I regularly lose the mouse pointer and I'm unable to the the cursor 
anymore in applications like Konsole (either natively or running as X 
client on a Linux host). The mouse still works if I blindly click 
somewhere, just the cursor is gone. This happens with -lesspointer or 
without. Any ideas?

Known issue.  Use the option off the context menu of the X icon in your
status bar to show the cursor again.  That's the current work-around.


Okay, thanks, worked. Do you have some background information why this 
happens and when? Because I have the feeling that sometime it happens 
after a few minutes and sometimes after hours or not at all.



No, I don't.  You can check the email archives for more, though I don't
recall if there was more in the way of specific details or not.  It is
definitely a random occurrence.  I don't see it very much myself but I
do use the Xming server more regularly than the Cygwin version.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 429-6305 - FAX
Holliston, MA 01746

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



RE: RE: Two issues with Xwin

2007-08-27 Thread Thorsten Kampe
* Ronald Fischer (Mon, 27 Aug 2007 15:57:34 +0200)
 This suggest that different dot-files are sourced in the two cases.
 When I run bash (in my case) either from cmd or started by XWin, I
 also have differences in which dot-files are sourced, so this is the
 first place you might want to look.

There is just one configuration file in this case: ~/.zshrc. And I 
don't have any setting that would have the do nothing on the first 
enter; wait for the second enter effect.


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