Re: Why does nedit complain about these missing fonts?

2012-05-21 Thread Ronald Fischer
On Sun, May 20, 2012, at 14:19, Yaakov (Cygwin/X) wrote:
 On 2012-05-20 05:07, Ronald Fischer wrote:
  The question remains, why nedit looks at *those* fonts. I'm perfectly
  happy to specify in the preferences of nedit only those fonts which are
  actually installed with Xming. However, nedit seems to look at certain
  fonts, which I certainly have not mentioned in my preferences
 
 Fonts are also required for rendering the interface (menus and dialog 
 boxes).

True, but this does not apply here (I think), because I when I instruct
nedit to
use specific fonts (those which are installed on my system) for the
interface,
nedit indeed uses these fonts, but still displays the error message.

Meanwhile I found something in the Cygwin/X FAQs about this problem (I
had
overlooked it the first time): This seems to be a well known problem
with some
X applications, and it was recommended to install certain adobe fonts
via Cygwin
setup.

So I run setup again to install the required fonts, and also (via xset)
did a refresh
of the font path. The problem still persisted. Looking at the installed
fonts, I found
my fonts being present only in /usr/share/fonts/100dpi and
/usr/share/fonts/75dpi
as a bunch of gz-files. I'm not sure whether this is correct (i.e.
whether the X server
is supposed to unpack them on demand), or whether the Cygwin setup
script is
supposed to do this. I think it is the latter, because when I did a 

  xset fp+ /usr/share/fonts

I got the error message

xset:  bad font path element (#90), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax

Could it be that part of the installation is missing on the Cygwin side?
In a correct installation,
where are these fonts supposed to be stored?

Ronald
-- 
Ronald Fischer rona...@eml.cc
+  If a packet hits a pocket on a socket on a port, 
+  and the bus is interrupted and the interrupt's not caught,
+  then the socket packet pocket has an error to report.
+   (cited after Peter van der Linden)


--
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: Why does nedit complain about these missing fonts?

2012-05-21 Thread Ronald Fischer
On Sun, May 20, 2012, at 14:19, Yaakov (Cygwin/X) wrote:
 On 2012-05-20 05:07, Ronald Fischer wrote:
 Fonts are also required for rendering the interface (menus and dialog 
 boxes).

Update:

Yaakov, I just found out that you were right in your assumption that
there *is* at least one part in the nedit user interface which DOES use
preset fonts (which can't be changed): It's how the file names are
rendered in the open file dialogue. So this indeed explains the
warning I get.

What still reminds to do is to install the missing fonts properly - see
my previous posting to see what I attempted for this task.

Ronald
-- 
Ronald Fischer rona...@eml.cc
+  If a packet hits a pocket on a socket on a port, 
+  and the bus is interrupted and the interrupt's not caught,
+  then the socket packet pocket has an error to report.
+   (cited after Peter van der Linden)


--
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: Why does nedit complain about these missing fonts?

2012-05-20 Thread Ronald Fischer
On Sat, May 19, 2012, at 23:18, Yaakov (Cygwin/X) wrote:
 On 2012-05-19 05:20, Ronald Fischer wrote:
 In fact, it is.  nedit, like other old Motif (and Xaw) applications, 
 depends on server-side fonts.  (Modern GUI toolkits, such as GTK+ and 
 Qt, use client-side fonts via fontconfig or a wrapper thereto.) 
 Therefore, you must install fonts where Xming will find them, and hence 
 this is not an issue per se with nedit or Cygwin/X.

I understand, and I'll have a look there! Actually, I thought that fonts
are independent of the acutal implementation of the X-Server. I now see
that I was wrong.

The question remains, why nedit looks at *those* fonts. I'm perfectly
happy to specify in the preferences of nedit only those fonts which are
actually installed with Xming. However, nedit seems to look at certain
fonts, which I certainly have not mentioned in my preferences

Ronald
-- 
Ronald Fischer rona...@eml.cc
+  If a packet hits a pocket on a socket on a port, 
+  and the bus is interrupted and the interrupt's not caught,
+  then the socket packet pocket has an error to report.
+   (cited after Peter van der Linden)


--
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: Why does nedit complain about these missing fonts?

2012-05-19 Thread Ronald Fischer
On Fri, May 18, 2012, at 13:37, Yaakov (Cygwin/X) wrote:
 On 2012-05-18 07:42, Ronald Fischer wrote:
  I'm using Xming as X server.
 
 This is not a support forum for Xming.
 

But for the cygwin X applications. I think nedit must have a reason to
look for these fonts which I have never specified somewhere  As far
I can see, Xming is not involved here (and I just mentioned it in *case*
it is important).

Basically, I could imagine two approaches to solve this: Either tell
nedit not looking for these fonts, or installing these fonts in a place
that nedit can find them. In both cases I don't know how to do it;
that's why I posted it her.

Posting it to a Xming forum doesn't make that much sense (I think),
because the response there would likely be This is not a support forum
for Cygwin


Ronald
-- 
Ronald Fischer rona...@eml.cc
+  If a packet hits a pocket on a socket on a port, 
+  and the bus is interrupted and the interrupt's not caught,
+  then the socket packet pocket has an error to report.
+   (cited after Peter van der Linden)


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



Why does nedit complain about these missing fonts?

2012-05-18 Thread Ronald Fischer
I'm using Xming as X server. 

xlsfonts lists the following fonts as available:

-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
6x13
cursor
fixed

In the nedit preferences, I set the primary font to 

   -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1

and then clicked on Fill highlight fonts from primary.

However, when I invoke Cygwin's 'nedit', I get the error messages:

 Cannot convert string
 -*-helvetica-medium-r-normal-*-*-120-*-*-*-iso8859-1 to type
 FontStruct
Cannot convert string
-*-helvetica-bold-r-normal-*-*-120-*-*-*-iso8859-1 to type FontStruct
Cannot convert string
-*-helvetica-medium-o-normal-*-*-120-*-*-*-iso8859-1 to type
FontStruct
Cannot convert string
-*-courier-medium-r-normal-*-*-120-*-*-*-iso8859-1 to type FontStruct
Cannot convert string -*-courier-bold-r-normal-*-*-120-*-*-*-iso8859-1
to type FontStruct
Cannot convert string
-*-courier-medium-o-normal-*-*-120-*-*-*-iso8859-1 to type FontStruct

I wonder why nedit is searching for helvetica and courier fonts.
What's the best to do in this case?

Just for completeness (though it likely doesn't matter here): I also
searched the Xming documentation. There is a command (mkfontscale) which
makes Windows fonts available to X. I have executed it, and it created a
file c:\windows\fonts\fonts.dir, which seems to be a mapping between
Windows font files (.TTF,  .FON) and X font names. I don't know if or to
what extend this could help me with the nedit problem; in any case, this
list also doesn't contain helvetica or courier.

Ronald
-- 
Ronald Fischer rona...@eml.cc
+  If a packet hits a pocket on a socket on a port, 
+  and the bus is interrupted and the interrupt's not caught,
+  then the socket packet pocket has an error to report.
+   (cited after Peter van der Linden)


--
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: ssh -X : connect /tmp/.X11-unix/X0: No such file or directory

2012-04-23 Thread Ronald Fischer
On Fri, Apr 20, 2012, at 19:53, Jon TURNEY wrote:
 On 20/04/2012 11:43, Ronald Fischer wrote:
  My setup so far (which is working well), was to use Xming as X-Server
  and putty for logging into our Solaris hosts via ssh. Since I have
  Cygwin installed, I thought I could use its ssh equally well, so I
  exported the ssh key from putty to the format understood by ssh, and
  used the following bash command to login to the Solaris host:
  
DISPLAY=:0.0 TERM=xterm  ssh -p 22 -K -X -i MyPrivateKeyFile 
MyUserName@SolarisHost
  
  When I now try to start an X application, I get an error message like
  this 
  
   connect /tmp/.X11-unix/X0: No such file or directory 
   XIO:  fatal IO error 131 (Connection reset by peer) on X server
   SolarisHost:239.0
 after 0 requests (0 known processed) with 0 events remaining.
 
 I think I know what's going on here.
 
 The solution should be to use DISPLAY=localhost:0.0 instead, which means
 to
 connect to the X server for display 0 via TCP/IP, which the Xming X
 server
 should be listening on.

Nice idea, but the result is, that I just get a different error message.
Now it becomes:

 connect localhost port 6000: Connection refused 
 X connection to SolarisHost:217.0 broken (explicit kill or server
 shutdown).

From the FAQ, I see that port 6000 is the default. Could it be that I
need to specify somehow a non-standard port? 

Ronald
-- 
Ronald Fischer rona...@eml.cc
+  If a packet hits a pocket on a socket on a port, 
+  and the bus is interrupted and the interrupt's not caught,
+  then the socket packet pocket has an error to report.
+   (cited after Peter van der Linden)


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



ssh -X : connect /tmp/.X11-unix/X0: No such file or directory

2012-04-20 Thread Ronald Fischer
My setup so far (which is working well), was to use Xming as X-Server
and putty for logging into our Solaris hosts via ssh. Since I have
Cygwin installed, I thought I could use its ssh equally well, so I
exported the ssh key from putty to the format understood by ssh, and
used the following bash command to login to the Solaris host:

  DISPLAY=:0.0 TERM=xterm  ssh -p 22 -K -X -i MyPrivateKeyFile 
  MyUserName@SolarisHost

When I now try to start an X application, I get an error message like
this 

 connect /tmp/.X11-unix/X0: No such file or directory 
 XIO:  fatal IO error 131 (Connection reset by peer) on X server
 SolarisHost:239.0
   after 0 requests (0 known processed) with 0 events remaining.

Further investigation reveals the following:

(1) I start my putty login, and find that on the remote host DISPLAY is
set to (say): SolarisHost:261.0
Starting X applications works fine.

(2) I start my open ssh login from Cygwin, and find that the DISPLAY
variable is set to a different value, for example SolarisHost:239.0 .
Starting X applications does not work.

(3) In the latter shell, I export DISPLAY=SolarisHost:261.0 . Starting X
applications now works. 

The fact that each login produces a different value for DISPLAY, is
normal behaviour. Even when starting several putty sessions, each gets a
different value for DISPLAY, and X apps work in all of them.

It seems that by doing the ssh connection via putty, something is done
which is missing from my ssh started from Cygwin. 

BTW, I also tried to use -Y instead of -X in my ssh invocation, but with
no effect.

Ronald
-- 
Ronald Fischer rona...@eml.cc
+  If a packet hits a pocket on a socket on a port, 
+  and the bus is interrupted and the interrupt's not caught,
+  then the socket packet pocket has an error to report.
+   (cited after Peter van der Linden)


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



link broken

2009-03-26 Thread Ronald Fischer
The FAQ link on http://x.cygwin.com/, pointing to
http://x.cygwin.com/docs/faq/, always gives error 504 (gateway timeout).
-- 
Ronald Fischer rona...@eml.cc
+  If a packet hits a pocket on a socket on a port, 
+  and the bus is interrupted and the interrupt's not caught,
+  then the socket packet pocket has an error to report.
+   (cited after Peter van der Linden)


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



startxwin.bat causes unnecessary configuration issue

2009-03-26 Thread Ronald Fischer
Not strictly speaking a bugreport (everything works as described), but a
proposal how to make life easier:

startxwin.bat currently contains the line

SET CYGWIN_ROOT=\cygwin

Unless your Cygwin Root happens to be at that location, this has to be
edited manually.

This would not be necessary in nearly all cases if we observe that

(1) CYGWIN_ROOT is very often set system-wide anyway, after Cygwin has
been installed, and

(2) in the rare cases where it is unset, it is usually the same
directory where startxwin.bat is located.

Therefore, startxwin.bat can find out by itself where its root is:

if defined CYGWIN_ROOT goto :OK
set CYGWIN_ROOT=%~dp0\..
:OK


Ronald
-- 
Ronald Fischer rona...@eml.cc
+  If a packet hits a pocket on a socket on a port, 
+  and the bus is interrupted and the interrupt's not caught,
+  then the socket packet pocket has an error to report.
+   (cited after Peter van der Linden)


--
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: xterm

2007-08-31 Thread Ronald Fischer
 Cole Radcliffe wrote:
  When I try to run xterm -e /usr/bin/bash -l from the 
 cygwin shell I
  get an error that says xterm Xt error: Can't open 
 display DISPLAY
  is not set
 
 
 Make sure the X server is running first (run 'startxwin').

This might not sufficient - at least it is not in my system: 
Even when you start the X server (in my case in multiwindow
mode), but then try to start xterm from a CMD Cygwin shell
(such as from the shell you get when opening the Cygwin
icon which is created by default when you setup Cygwin initially),
you get the above error message.

The trick is that in your startxwin, you have to create at
least one xterm (or rxvt) initially. From this, you can then 
open others.

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



Windows fonts usage?

2007-08-27 Thread Ronald Fischer
Is there a way to use/convert the fonts which come with Windows, for
usage
with Cygwin/X, when running XWin.exe in Multiwindow mode?

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: shell properties

2007-08-16 Thread Ronald Fischer
 when I do a startx, I get a new window shell with properties different
 from the one on which I typed startx. The problem is I want to change
 the font size on this new window and I do not know how. 

I guess that in this case, you should put your startup code for the
terminals into ~/.xinitrc, where you can then specify the font to
be used (man xterm, or whatever terminal you are going to use).

 Also, is it
 possibly to directly open x11 without opening normal cygwin first?

This is how I am doing it. 

For this, I copied /usr/bin/X11/startxwin.bat into my autostart folder
(I prefered to copy it instead of creating a link, but this is a matter
of taste), and modified it. There is already one xterm to be started
in startxwin.bat, so you can add/modify yours according to your taste.

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/



oclock color bug?

2007-08-10 Thread Ronald Fischer
I'm using XWin -multiwindow to run Cygwin/X

When I start the oclock with:

oclock -minute blue -hour black -bd green -transparent -jewel red
-geometry 322x322+500+400

I get a clock with green border, but minute hand, hour hand and jewel
all being in blue.

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/