HDTenEightyP/NetNews huggingface dataset:
From: lehors@koala.inria.fr (Arnaud Le Hors)
Newsgroups: comp.windows.x
Subject: Re: XPM Question
Date: 20 Aug 92 12:25:23 GMT
Organization: Koala Project, Bull Research France

In article <9208191402.AA26738@uahcs2.cs.uah.edu>, ldawes@uahcs2.cs.uah.EDU
(Lisa Dawes, Computer Science Dept., Univ. of Alabama-Huntsville) writes:
> 
> When using the Xpm function XpmReadFileToPixmap, does this function modify the
> colormap
> to support the requested colors in the xpm file?  Or does one have to specify
> a colormap
> with the appropriate colors?  Is there more documentation on xpm besides the
> PS file
> on export?
> 
> Thanks ahead.

Yes, XpmReadFileToPixmap modify the colormap to support the requested colors in
the xpm file. The documentation reads :

---------
XpmReadFileToPixmap **allocates** colors, as read from the file or possibly
overridden as specified in the XpmColorSymbols attributes. The colors
are allocated dependently on the type of visual and on the default colors.
[...]
If required it stores into the XpmAttributes structure the list of the used
pixels [...]. When finished the caller must free [...] the colors using
XFreeColors.

---------

The only documentation of XPM resides as a TeX file called xpm.tex which is
part of the Xpm distribution (tar file) and its postscript version called
xpm.ps both available on export.

-- 
 Arnaud LE HORS - lehors@sophia.inria.fr - BULL Research France, Koala Project
Newsgroups: comp.windows.x,comp.windows.x.apps,comp.windows.x.intrinsics
From: daerb@vms.macc.wisc.edu (David Erb)
Subject: Summary: how to wake up XNextEvent for pipe/socket input pending?
Organization: University of Wisconsin Academic Computing Center
Date: 12 AUG 92 06:39:25    

Original text of query follows responses.

Responses were:

1. See Bloomer, J, "Power Programming with RPC" O'Reilly & Associates.

2. Use Intrinsics Toolkit XtAppAddInput.

3. Put display->fd in select with socket of interest (not recommended).

4. Same but use ConnectionNumber(display) not display->fd.

5. A forked child should not have the same display connection as the parent.

6. Signals and X do not mix terribly well.

7. There's been a lot of traffic in this group about NOT doing Xlib or
   any X thing inside a signal handler.

8. XNextEvent will get interrupted, but since the X libraries
   are not reentrant, you won't like the results...

Thanks and gratitudes to all who replied.  Hope I didn't forget anyone.

nh@cbnewsg.cb.att.com
jhd@irfu.SE
david@ora.com
jrutledg@cs.ulowell.edu
dob@inel.gov
janzen@mprgate.mpr.CA
bateman@cs.utk.edu
eldred@hare.udev.cdc.com
gnb@bby.com.AU

----------------------------------------------------------

Original text of query was:

How do I get XNextEvent to wake up when input has
become available on some pipe (fifo) or socket?  As far
as I can tell, Xlib only wakes up on a fixed set of
user-oriented events which does not include input pending.

I hope there is an elegant solution!  Any help would be
greatly appreciated.  Please respond by e-mail and I will
post a summary.  Thanks in advance.

Dave

Background: I have a bunch of programs which do all their
plotting by sending messages over sockets to a central
plotting server.  I'd like this plotting server to control
an X window.  While the plotting server is sitting there
waiting for regular X events, such as mouse, keyboard, and
expose, I'd also like the plotting server to be able to
respond to drawing requests over the socket.  For those
who know SunView, the analogy would be notify_set_input_func().

A bunch of yucky solutions come to mind:

Yucky solution number 1:
Open the window and the socket, then fork, with the parent
putting a select() on the socket, and the child doing a
normal XNextEvent() loop.  When the socket has data,
the parent then does an XSendEvent() to the window.  The
child doing the XNextEvent() wakes up on the event from
the parent, then reads the socket to get the plotting 
requests.

Yucky solution number 2:
Use the operating system's asynchronous I/O option to take
a SIGIO signal when input is pending.  Limited to those
OS's with asynchronous I/O.

Yucky solution number 3:
Use alarm to get a SIGALRM every one second and check the
input socket for data.  Thus the XNextEvent loop works
normally except it gets alarmed every second and data
gets plotted from the signal handler.  Does Xlib do
some things during plotting that are illegal for signal
handlers?  Does XNextEvent even get interrupted by signals
such as SIGALRM?

Newsgroups: comp.windows.x
From: sledge@rama.informatik.rwth-aachen.de (Thomas Bueschgens)
Subject: Need Xconfig Help / Roell-Server / NEC 3D 
Keywords: SVGA, NEC 3D, Xconfig
Organization: Rechnerbetrieb Informatik  /  RWTH Aachen
Date: 16 Aug 92 17:01:50 GMT

Hello out there,

need some help configuring my Xconfig to get anything else than 1024x768
in interlaced mode at home :-((
My graphic-card is some  ULTRA VGA GRAPHICS ADAPTER wich contains the following
clocks:
   	25	28	32	36	40	45	50	65
given by CLOCK.EXE shipped with X11R4/ROELL

The monitor is a NEC3D Multisync, not needing any further explanation as
a good Multisync monitor.

Has anybody out there a Xconfig setting for this configuration allowing another
resolution than 640x480, 800x600, 1024x768i.

If so, plse contact me via email or post it, 
any help would be appreciated.

Thanks in advance      Thomas
From: rsmith@proteus.arc.nasa.GOV (Roger Smith -- IAS)
Newsgroups: comp.windows.x
Subject: program breaks when moving it from R5 (Ultrix) to R4 (Sun)
Date: 13 Aug 92 00:13:22 GMT
Organization: The Internet

I am moving a fairly large program from a DEC 5500 running Ultrix and R5
to a Sparc 2 running R4. The Makefiles all work to completion and everything
compiles and builds without complaint. However, when I try to run the program
I get:

ld.so: Undefined symbol: __XtInherit

Can anyone explain this to me? Any help would be greatly appreciated.

------------------------------------------------------------------
Roger Smith
Sterling Software at
NASA-Ames Research Center
rsmith@proteus.arc.nasa.gov
- 
If change is -- inevitable -- predictable -- beneficial -- 
doesn't logic demand that you be a part of it?
One man cannot summon the future. But one man can change the present!
    -- Kirk and the Alternate Spock, "Mirror, Mirror," stardate unknown
+
Newsgroups: comp.windows.x
From: mwette@csi.jpl.nasa.gov (Matt Wette)
Subject: wanted: widget lib's for real-time computing
Originator: mwette@mr-ed
Organization: Jet Propulsion Lab
Date: Wed, 12 Aug 1992 18:45:37 GMT


I'm looking for commercial or free widget libraries for putting
together GUI's for real time data aquisition and control experiments.
I only know of Dataviews.  Do any others exist?

I don't care much about fancy gauges and such.  I just want some good
stripcharts, X-Y plots, histograms, sliders, etc.

I'll be using VxWorks and Suns. 

There is a app' called "Stethoscope" sold by Wind Rivers, but this is
an application and not a library => no room for a customized GUI.

Matt Wette
-- 
mwette@csi.jpl.nasa.gov
From: azhao@cs.arizona.edu (Qiang Alex Zhao)
Newsgroups: comp.windows.x
Subject: Receiving "DestroyNotify" for a window itself?
Keywords: DestroyNotify
Date: 18 Aug 92 07:34:27 GMT
Followup-To: comp.windows.x
Organization: Computer Science Dept, Univ of Arizona, Tucson


Hi,

If my program only creates a single top-level window, and wants to
receive "DestroyNotify" event for the window itself, how to do that?

I checked with a book I have:
	X Window System, The Complete Reference to Xlib, X Protocol,
	ICCCM, XLFD, 3rd ed. R. W. Scheifler, J. Gettys; Digital Press

It says, that "To receive DestroyNotify events, set the
StructureNotifyMask bit in the event-mask attribute of the window..."
In my program, I did that in XSelectInput; but when I used twm (SunOS
4.1.1 with X11R5) to kill that window, the program didn't receive any
DestroyNotify event, although the X server did generated one (I found
one using "xev").

How to solve the problem of "getting DestroyNotify for a window itself
-- not any child of it"?

Thanks in advance.
________________________________________________________________
= Qiang Alex Zhao		   Computer Science Department
  azhao@cs.arizona.edu             University of Arizona
  (602) 621-2759                   Tucson, AZ 85721
From: hermann@RZ-Berlin.MPG.DE
Newsgroups: comp.windows.x
Subject: PLEASE: Unsubscribe me
Date: 18 Aug 92 07:37:49 GMT
Organization: The Internet

Please unsubscribe me from this mailing-list.  Thank you.
========================================================================
 Prof.Dr. K. Hermann                             Tel.: (Ger)-30-8305-526
 Abt. Theorie, Fritz-Haber-Institut                    (Ger)-30-8305-522
 Faradayweg 4-6                                  Fax.: (Ger)-30-8305-531
 D-1000 Berlin 33
 Germany                                e-mail: hermann@RZ-Berlin.MPG.DE
========================================================================
Newsgroups: comp.windows.x
From: gms@hpcvxrc.cv.hp.COM (George Sachs)
Subject: Additional file for HP X server
Organization: The Internet
Date: Fri, 14 Aug 1992 18:15:36 GMT

An announcement was made several days ago that the sources for
building the X11 R5 server on HP Series 700 machines was
available.  One file was inadvertently omitted from the archive
that was placed on export.lcs.mit.edu.

If you have retrieved that archive, please get it again.  export
has now been updated with the corrected archive.

The missing file was config/imakemdep.h, which contains a preprocessor
definition needed to cause the #define for BuildServer to become true.
As a workaround, you could also edit config/hp.cf to force BuildServer
to be Yes.

I apologize for any inconvenience this may have caused.

George Sachs
Hewlett-Packard
gms@cv.hp.com
From: ndd@sunbar.mc.duke.edu (Ned Danieley)
Newsgroups: comp.windows.x
Subject: X11R5-based vt100 emulator needed
Date: 12 Aug 92 13:57:51 GMT
Organization: Basic Arrhythmia Laboratory, Duke Univ. Med. Center, Durham, N.C.
Originator: ndd@bal1

in order to use a local database, we have to be able to emulate
a vt100, complete with function keys. we'd like to use something
like xvttool, or tooltool, but xvttool is written for xview and
tooltool is written for sunview, and we don't run openwindows.
I have tried running a binary version of xvttool that was compiled
elsewhere, but it's not quite right under pure X11R5.

does anyone know of an R5 vt100 emulator?

(an alternative solution would be to remap the keyboard, but we'd
only want to do that for the one window that's using the database.
it seems that xmodmap remaps the server, so that's not suitable.)

-- 
Ned Danieley (ndd@sunbar.mc.duke.edu)
Basic Arrhythmia Laboratory
Box 3140, Duke University Medical Center
Durham, NC  27710   (919) 660-5111 or 660-5100
Newsgroups: comp.windows.x
From: envbvs@epb9.lbl.gov (Brian V. Smith)
Newsgroups: comp.windows.x
Subject: Re: xfig file -- Postscipt??
Date: 21 Aug 1992 21:51:31 GMT
Organization: lbl
Distribution: usa
NNTP-Posting-Host: 128.3.12.98

In article <1992Aug21.210815.26143@vuse.vanderbilt.edu>, liuxu@vuse.vanderbilt.edu (Xudong Liu) writes:
|> Anybody can tell me where to get a package named "transfig"?
|> I need it for transfering xfig file to Postscript file.
|> 
|> Thank you in advance.

As it says in the man pages for xfig, it is available from several sources.

1) ftp.cs.cornell.edu   (directory   /pub/fig)
2) sun.soe.clarkson.edu (directory /pub/transfig)
3) export.lcs.mit.edu in /contrib/transfig.tar.Z

Probably the most recent is on (3), export.lcs.mit.edu.

-- 
Brian V. Smith    (bvsmith@lbl.gov)
Lawrence Berkeley Laboratory
I don't speak for LBL; they don't pay me enough for that.
From: 6500mack@ucsbuxa.ucsb.edu (Michael P. Mack)
Newsgroups: comp.windows.x
Subject: Re: need help with images
Date: 16 Aug 92 00:43:04 GMT

In article <BsILsB.E3D@wpi.WPI.EDU> danielg@oconnor.WPI.EDU (Daniel Matthew Gaines) writes:

>i've got a greayscale  image made up of 16 bit pixels that i want
>to convert to an XImage.  the problem is that when i go
>to XPutImage i have a drawable of 8 bits (i am not able to
>get a depth of 16)  so when i do the XCreateImage i try 
>using 8 for a depth but, as expected, the image is trashed when it appears.

You will need to rescale your image data so that each value is in
the range 0..255 (ie 8 bits) and convert to unsigned char.
A simple way is to just remove the lower byte of each pixel value, but if
the result is lousy (because of poor contrast) then you could try an approach
like this:

  int min,max;
  float scale;

  max = findmax(shortImageData,n);
  min = findmin(shortImageData,n);
  scale = (float)(255.9/(max-min));
  for (i=0; i<n; i++)
    ucharImageData[i] = (unsigned char)(scale*(shortImageData[i]-min));

Then call XCreateImage with ucharImageData as the image data.

You probably won't notice any degradation due to the compression since the
human eye can distinguish only roughly 40 grey levels anyway.


Mike Mack
6500mack@ucsbuxa.ucsb.edu
From: rmurphy@Tymnet.COM (Ron Murphy)
Newsgroups: comp.windows.x
Subject: Help! SunOS 4.1.2/Xmu linking problem
Date: 14 Aug 92 21:40:55 GMT
Reply-To: rmurphy@Tymnet.COM (Ron Murphy)
Organization: BT Tymnet Inc.; San Jose, CA

Greetings X window Xperts,

I have just installed Sun OS 4.1.2/OpenWindows 3 on my system.  A problem now
arises in linking one of my programs using X11R4 (pure MIT) libraries.  (The
same thing happens whether I use the ones I got myself from MIT or the ones
with OW 3.)  This problem occurs when linking the shared library versions.

Since I use facilities in libXExt.a, the symbol references
_get_wmShellWidgetClass and _get_applicationShellWidgetClass occur,
but they never get resolved!

The library resolving these symbols is libXmu.sa.4.0 on my system, as
you can see:

fusco% nm /usr/lib/X11/libXmu.sa.4.0

sharedlib.o:
         U _applicationShellWidgetClass
00000000 T _get_applicationShellWidgetClass
0000000c T _get_wmShellWidgetClass
         U _wmShellWidgetClass

I gave the linker every chance to load libXmu, by specifying 

-lXaw -lXt -lXmu -lX11 -lXext -lXmu -lm -lg -lc -lXmu

Can't be too careful!

I used cc -v to determine the linker command that was issued, and then I 
executed this command with -M to figure out what the linker was doing.  Here
is a summary of the interesting stuff:

...(lots of my modules and libraries)

/usr/lib/X11/libXaw.so.4.0
/usr/lib/X11/libXt.so.4.1
/usr/lib/X11/libXt.sa.4.1
        sharedlib.o
/usr/lib/X11/libXmu.so.4.0
/usr/lib/X11/libXmu.sa.4.0
/usr/lib/X11/libX11.so.4.3
/usr/lib/X11/libX11.sa.4.3
/usr/lib/X11/libXext.a
        XShape.o
        extutil.o
/usr/lib/X11/libXmu.so.4.0
/usr/lib/X11/libXmu.sa.4.0

...(math and C libraries)

/lib/libdl.so.1.0
/usr/lib/X11/libXmu.so.4.0
/usr/lib/X11/libXmu.sa.4.0
ld: Undefined symbol
   _get_wmShellWidgetClass
   _get_applicationShellWidgetClass

So, on every pass, libXmu.sa.4.0 was ignored!  Is this a known bug, and how
would I get a patch for it?  Or am I missing something?

If you post an answer, please also reply by e-mail.  I don't normally read this
group since there's so much stuff on it.

Cheers,

Ron Murphy
BT North America Inc.
Newsgroups: comp.windows.x
From: elton@cbnewsb.cb.att.com (elton.huang)
Subject: Request of X papers
Organization: AT&T
Date: Sun, 16 Aug 1992 20:40:24 GMT


Dear Netters,

I am looking for some X internal information such as data structure, how
"region" is implemented and so on. I went through the database of
our company but didn't find anything.

I think MIT must published some papers when X first emerged. And
particular paper on how X works behind protocols aside to how
to work with it.

Could some kind soul direct me to some information of this sort ? Thanks,

Elton
From: laichi@mist.CS.ORST.EDU (Chih Lai)
Newsgroups: comp.windows.x
Subject: X on PC ?
Date: 22 Aug 92 07:53:43 GMT
Article-I.D.: CS.1992Aug22.075343.17616
Organization: Oregon State University, Computer Science Dept.



   Is there any way I can run X window system on my home's PC (or Mac) by a
19200 modem and telephone line to connect to a UNIX host ?

   Thanks in advance.

--Lai, Chih (laichi@mist.cs.orst.edu)
Newsgroups: comp.windows.x,comp.windows.x.intrinsics
From: daerb@vms.macc.wisc.edu (David Erb)
Subject: Question: should I use the ConnectionNumber() macro?
Organization: University of Wisconsin Academic Computing Center
Date: 12 AUG 92 06:46:28    

I would like to use the following technique, but have heard
mixed rumblings about its advisability:

  use "ConnectionNumber(display)" in a select() call with some
  other sockets to wait for messages from the X server while
  also waiting for messages on the other sockets.

What's the party line on this technique?

Is this portable across all Unix-like X client platforms?

Is this portable across all X client platforms which support the
select() mechanism?

Are there examples of platforms where there is more than one
socket used to implement the connection between a client and the
server?

Do I stand a chance of a race condition where I lose contact
with the server?

Any other wierd gotchas to watch out for?

I'd love to hear any specific comments or advice.

Any help and advice would be appreciated.  Pointers
to sources of other info would be great.  Please
e-mail me directly and I will post a summary.
Thanks in advance.

Dave
daerb@macc.wisc.edu
Newsgroups: comp.windows.x
From: dankoski@leland.Stanford.EDU (Paul Dankoski)
Subject: Does a mathematical symbol generator exist for LaTeX ??
Keywords: LaTeX
Organization: Stanford University
Distribution: ba
Date: Mon, 17 Aug 92 20:48:30 GMT


   Perhaps this isn't the best newsgroup to post this question
to, so if anyone is aware of gurus in some other newsgroup then
please let me know.

   What I am looking for is some sort of tool (perhaps based
upon X windows), that will allow me to visually create
mathematical symbols and then have it generate the corresponding
LaTeX ascii-based code to print out these symbols.

Thanks

-- 
Paul Dankoski
email: dankoski@isl.stanford.edu
W1: (415) 723-3024
W2: (415) 725-6948
Newsgroups: comp.windows.x,comp.windows.ms,comp.lang.c++
From: rct@fulcrum.bt.co.uk (Richard Taylor)
Subject: Liant C++/Views - any good?
Organization: Fulcrum Communications
Date: Fri, 21 Aug 1992 10:28:21 GMT

Liant C++/Views - any good?
---------------------------

I have just received a one-page-wonder from Liant on C++/Views, and it looks
like it may be good. does anyone have any experience of it? From the sales
literature it seems biased towards Windows 3 rather than X. I would be using
it to generate a Motif application under X Windows on a Sun.

How does it compare with ViewCenter/OI, for example?

I will summarize if I get any useful replies.

Thanks in advance,
============================================================================
Richard Taylor                 DoD #981               (rct@fulcrum.bt.co.uk)
"Gentlemen, starta your engines... 2 minutes, to the hills." Massimo Laverda
============================================================================
Fulcrum Communications Ltd., Fordrough Lane, Birmingham, B9 5LD, ENGLAND.
From: beynon@nnn.NoSubdomain.NoDomain (Michael D. Beynon)
Newsgroups: comp.windows.x
Subject: R5 Build on 386
Date: 20 Aug 92 13:27:57 GMT
Reply-To: beynon@nnn.crd.ge.com
Organization: GE Corporate R&D Center, Schenectady, NY

We have Interactive Unix 3.0 (SV386 3.2), and their Xserver 2.0.  We are 
porting a package written in Common Lisp, and their is a bug in the Xserver
that causes Lisp to immediately abort.  It is Interactive bug #30086.  They
went against standard X protocol and used the top 3 bits of visualid.

Interactive told me to get the X11R5 release from somewhere else, since they
had no plans to fix this bug.  We had a problems building this.  Has anyone
done this?  Any help would be appreciated, or perhaps where to get binaries, or
even a correctly setup x386.cf file for our version of Unix.

Thanks,

Michael D. Beynon
beynon@nnn.crd.ge.com
Newsgroups: comp.windows.x,comp.windows.x.motif
From: ghawkins@unix1.tcd.ie (George C. Hawkins)
Subject: is there a nicer Grip widget than the Athena one?
Keywords: Grip handle widget
Organization: Trinity College, Dublin
Date: Mon, 17 Aug 1992 21:34:07 GMT


I am just looking for a nice Grip widget (handle for all you normal
people).  The one supplied in the Athena widget set is fairly
minimal. Is there any way for example to write a widget that can
move cleaning up after it and so avoid generating expose events
that get sent to the widget it's on top of (this is very iritating
with the Grip, it's tiny but as I move it about the DrawingArea
widget, I have below, a redraw routine has to be called for each
little tiny square it leaves behind, and I don't want to double
buffer my DrawingArea).

Thanks for your time, yours,


George.

--
george lives at:
___________________________________________________________________________
|   ghawkins@unix1.tcd.ie (mostly)  |   ghawkins@vax1.tcd.ie (sometimes)  |
---------------------------------------------------------------------------
Newsgroups: comp.windows.x
From: tracy@bluenote.b23b.ingr.com (Robert Tracy)
Subject: Re: Wanted - digital clock
Reply-To: tracyre@infonode.ingr.com
Organization: DAZIX, An Intergraph Company
Date: Thu, 6 Aug 1992 19:58:38 GMT

In article <AA24575.9208051150.Euston@uk.ac.city>, da188@city.ac.UK writes:
|> >] Subject: Re: Wanted - digital clock
|> >
|> >] "xclock -digital" ?
|> >
|> >Oh, don't be silly.  There are all these fancy dial clocks available;
|> >why would someone be asking for a way to display the output of the
|> >"date" command in a tiny text window?  I presume the requestor was asking
|> >for a digital clock with a real number display that "looks" like a
|> >digital clock.

Well, I wrote a digital clock which uses the server's SHAPE extension.
It's based on xclock, so it uses all of the toolkit options.  If you
want a copy, let me know.


-- 
------------------------------------------------------------------------------
Bob Tracy                    |
DAZIX, An Intergraph Company |      "Do not speak for other people.
Huntsville, Alabama          |       Speak for yourself."
tracyre@infonode.ingr.com    |                         H.D. Thoreau
205/730-8588                 |
------------------------------------------------------------------------------
Newsgroups: comp.windows.x
From: amir@matis.UUCP (Amir Katz)
Subject: xcdplayer woes
X-Unparsable-Date: Sun, 16 Aug 92 12: 29:08 EET DST
Reply-To: matis!matis.ingr.COM!amir
Organization: SEE Technologies Ltd.
Date: Mon, 17 Aug 1992 20:31:31 GMT

Xperts,
Has anyone succeeded in running xcdplayer successfully? IMHO, it's full of
bugs. For example, if no disk is inserted, it says:
   open: /dev/rsr0: No such device or address
instead of saying that no disk is inserted. Also, the clock is completely
screwed up, and many other things. 
For now, I'm using Sun's x_cdplayer (an XView application), but as a diehard
X11 supporter, I'd like to use pure X apps.

Any ideas?
-- 
/* ----------------------------------------------------------- */
/*  Amir J. Katz             |   amir@matis.ingr.COM           */
/*  System Specialist        |   Voice:  +972 52-584684        */
/*  SEE Technologies Ltd.    |   Fax:    +972 52-543917        */
/* ............ Solaris 2.0 - The Final Frontier ? ........... */
From: koolish@BBN.COM (Richard M. Koolish)
Newsgroups: comp.windows.x
Subject: resizing a window?
Date: 13 Aug 92 14:25:22 GMT
Reply-To: koolish@BBN.COM (Richard M. Koolish)
Organization: Bolt Beranek and Newman Inc., Cambridge MA
NNTP-Posting-Host: bbn.com


I'm using X11R5, twm, Sun-3/50.

I create a window using xlib.  I can draw in it just fine.
I resize it with the window manager and I can't draw in the
new space if I make it bigger.  What do I have to do to clear
and draw in the new space?