HDTenEightyP/NetNews huggingface dataset:
From: x910832@px4.stfx.ca (Tanya Adamsson)
Subject: Help!
Organization: The Internet
Date: Mon, 17 Aug 1992 16:28:46 GMT

Hello

I am new to X programming and am having several problems, I'm using X11R4 on 
Unix.

problem 1: This one I find very unusual.  My program begins by placing several
	   windows and some text (using XDrawImageString) on the screen.  This
	   works fine the first time it is run after compiling but on 
	   subsequent trials the text does not always appear.  I can't find
	   any pattern to when it does and does not appear, however it will
	   appear more often (almost always) if I pause the program before the
	   XFlush call.  Why is this happening, and what can I do about it?

problem 2: I tried to do a screen dump following the directions in the faq's
           ( csh% sleep 10; xwd -root > output.xwd & ) but I got a message that
	   xwd was unknown.  Is there either a simple way to fix this or some
	   other simple way to do a screen dump?

problem 3: This one isn't so much a problem (not yet anyway) as a call for ad
	   advice.  The project I'm working on will be using X as the user
	   interface for a data base running on another system.  I would like
	   to be able to display the results from the data base in a specific
	   window.  Right now any information that gets passed goes directly
	   to the decterm window from which my program is running.  Is there
	   some way to change the default for such output to a specified
	   window, and if not can anyone give me any ideas of how to display
	   the information?

Thank you in advance for your help, I really need it!

Tanya Adamsson
X910832@px1.stfx.ca
Newsgroups: comp.windows.x
From: wald@alfalfa.sps.mot.com (Steve Wald)
Subject: Re: xman garbled text question
Originator: root@mogate.sps.mot.com
Organization: Motorola, Paging and Telepoint Systems Group
Date: Mon, 17 Aug 1992 17:41:03 GMT

In article <1992Aug14.160948.25877@cis.ohio-state.edu> frank@cis.ohio-state.edu (Frank Adelstein) writes:
>Some man pages (for example, XtGetApplicationResources) will have
>various parts (like page headers, some bold italic things, and other
>stuff) of the text that's garbled.  Scrolling sometimes can make
>things worse.  Does anyone know if there's something (patches,
>different fonts, ??) that will fix this?  This is X11R5p12 on Sun SLCs
>running SunOS 4.1.

  It's not just a problem on SunOS... Read on.

  (Ultrix 4.2 contains Xman Version 3.1.4 - X11R4.)

  All I wanted to do was get rid of the annoying page headers & footers
in the middle of my xman window. So I linked tmac.an to tmac.an.nopage,
a macro distributed with ULTRIX 4.2 "for viewing ULTRIX reference pages
without pagination."

  Now xman dies on several man files, usually long files, after scrolling 
down several pages, with the message:

	Error: SBLW: cannot be both bold and italic.
	Process 4499 exited "xman"

  I tried several hacks to different man macros, but I always get the
problem on some man page or other unless pagination is in. xman also
tends to highlight random lines in bold font which shouldn't be. The man
program and nroff show none of these problems, so I don't think the
macros are bad.

  Has anyone else tried this? Am I the only one who hates large blank
spots and page numbers in the middle of my xman pages? Can anyone 
provide a fix or workaround?


-- 
Steve Wald, Motorola Inc.
wald@borg.sps.mot.com
From: converse@expo.lcs.mit.EDU (Donna Converse)
Newsgroups: comp.windows.x
Subject: Re: Many event handlers
Date: 12 Aug 92 15:41:21 GMT
Organization: X Consortium, MIT Laboratory for Computer Science


Problem with R4 Xt event handlers:

> I'm having a strange weirdness with event handlers and I was
> wondering if anyone out there could help.  I'm posting multiple
> event handlers onto a window and many of them will trigger at
> once.  If > 98 events trigger at one time, my application instantly
> seg faults before calling the first event handler.  With 98 events
> or less, each handler gets called properly.  It seems that the
> program is crashing inside the event dispatcher.  Does anyone out
> there know of an upper limit to the number of events allowed to be
> simultaneously dispatched by X.

Everywhere above, "events" should be replaced by "event handlers".

There should be no upper limit on the number of event handlers allowed to
be registered for a single window.  In the R4 Intrinsics library, registering
close to 100 event handlers for any single window will cause an internal Xt
data structure to overflow.  The implementation, in Event.c, assumed a
static maximum number of event handlers.  Fixed in R5.


Donna Converse
MIT X Consortium
Newsgroups: comp.windows.x
From: garyrich@qdeck.com (Gary Rich)
Subject: Re: X Windows on Non-UNIX systems
Organization: Quarterdeck Office Systems, Santa Monica CA
Date: Tue, 18 Aug 1992 20:55:59 GMT

In article <5700@osc.COM> george@osc.com writes:
>
>There are now a number of products which implement an X server for PCs
>and Macs.  They allow you to run an X windows application on a UNIX
>machine and display it on a PC or Mac.  Does anyone know of a product
>which allows you to develop a PC or Mac based X *client*?  Such a
>product would allow you to develop a PC or Mac based X windows application
>which could be displayed on a UNIX machine, PC, or Mac running an
>X server.
>
>Any info would be greatly appreciated.
>
>
>George
>george@osc.com

DESQview/X is the ONLY solution that will allow you to run an X client
under DOS.  Give us a call at (800) 354-3222 and we'll be happy to
send you more info.

Gary Rich	<support@qdeck.com>
Newsgroups: comp.windows.x
From: markkj@mullian.ee.mu.OZ.AU (Mark Johnston)
Subject: Extracting data from pixmaps...
Keywords: Pixmaps
Organization: Computer Science, University of Melbourne, Australia
Date: Tue, 18 Aug 1992 03:26:23 GMT


	Hi, I was wondering if anyone could give me some more information on
extracting the data stored in pixmaps after they are created?  What i am doing
is creating a pixmap with a pointer to some memory allocated with calloc().
After creating the pixmap, I draw lots of lines, and some images into it.  I
tried dumping the data in the original memory out to a file, but 'od' tells
me that there is nothing but 0's in the pixmap...

    As far as I can see, there are not appropriate X calls to get the data
out of the pixmap.  Once I have the data, I want to pass it to a routine
that converts it to a gif.

	Thanks in advance.


		Mark Johnston.

--------------------------------------------------------------------------------
#include "/dev/null"
--------------------------------------------------------------------------------
From: kettering@addvax.llnl.gov (Brett 'Volleyball Is My Game' Kettering)
Newsgroups: comp.windows.x
Subject: Translations for different keyboards (IBM to Sun)
Date: 19 Aug 92 16:37:00 GMT
Organization: Lawrence Livermore National Laboratory
News-Software: VAX/VMS VNEWS 1.40

I've seen some sets of translations that allow keyboards to be mapped to
different types of computers.  For instance, I have one that maps my Sun
keyboard to a VAX that I use here for editing news (which I read on a VAX,
via VNEWS).

I'm interested in some guidelines for creating my own mappings.  In particular,
I need one to map an IBM (X-Terminal, read PS/2) to the Sun4.  Of course, I'd
like to understand how these things are created so that I can make a bunch of
my own, like SGI to Sun4, Sun4 to SGI, Sun4 to IBM, etc., etc., etc.

Additionally, what are some good ways for having the terminal type properly
set when you jump from machine to machine?  For instance, SGI has a terminal
type called iris-ansi, which has to be changed to xterm or vt100 when one
logs into the Sun4.  IBM has their own type.  How do you cope with this?
Do you look for the term type in your .cshrc or what?

Thanks for any and all help.

-------------------------------------------------------------------------------
Brett M. Kettering
PaperNet: LLNL P.O. Box 808 L-437 Livermore, CA.  94551
InterNet: brettk@llnl.gov
TalkNet : (510) 423-3467
FaxNet  : (510) 423-4606

"No other success can compensate for failure in the home."
                   -- David O. McKay
-------------------------------------------------------------------------------
Newsgroups: comp.windows.x,comp.windows.x.intrinsics
From: daerb@vms.macc.wisc.edu (David Erb)
Subject: Question: what do I lose by using Xt?
Organization: University of Wisconsin Academic Computing Center
Date: 12 AUG 92 06:43:31    

As a software developer, what do I *LOSE* by using the
Xt "intrinsics toolkit" over raw Xlib calls in my code?
Efficiency? Larger executables?  Decreased reliability?
Reduced portability between platforms?  Do I cut myself
out of any platform vendors which might have Xlib
implemented but not Xt?  I need to balance losses against
obvious gains in functionality.

In my design considerations, portability is number
one since I can't possibly afford to purchase an
instance of each workstation on which I want my
software to run.  For the same reason, I must ship
source code, therefore, I need Xt to be consistently
implemented on all platforms.  Complexity for the
users to understand is not an issue because X is
completely hidden.  (In fact, X is only one of
several display technologies used by my code.)

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
From: jtsilla@damon.ccs.northeastern.edu (James Tsillas)
Newsgroups: comp.windows.x
Subject: Can't build certain clients due to missing libs with pl16
Date: 19 Aug 92 21:58:10 GMT
Article-I.D.: damon.JTSILLA.92Aug19165810
Distribution: comp
Organization: Northeastern University, Boston, MA


Hi, I've uncanned R6 and all the fixes through 16 and I've tried
building on ourt Sun4 using gcc-2.2.2. The only hack I've done is to replace
the "library" compiler with gcc and to use "-traditional" for
everything. The libraries build fine as do most clients but many of them
(twm, xauth, xkill,..) lack flags to add the libraries and therefore
fail to build:

rm -f xauth
gcc -fstrength-reduce -fpcc-struct-return -traditional -o xauth xauth.o
gethost.o process.o parsedpy.o -O2   ../.././lib/Xau/libXau.a
-L../.././lib/Xmu -lXmu -L../.././lib/Xt -L../.././extensions/lib
-L../.././lib/X -L/usr/X11R5/lib   -B/usr/bin/
ld: Undefined symbol
   _XGetVisualInfo
   _XFree
   _XInternAtom
   _XtMalloc
   _XGetAtomName
   _XQueryTree
	.
	.
	.

Has anyone experienced this? Is there a standard solution (beside going
in and editing all the Imakefiles).

-Jim.

--
	***                                                      ***
	***  James Tsillas  jtsilla@damon.ccs.northeastern.edu   ***
	*** "He is after me. Jim is after him."                  ***
	***          - Hop on Pop, Dr. Seuss                     ***
From: shengj@acf3.nyu.edu (Jia Sheng)
Newsgroups: comp.windows.x
Subject: Help X11r4(r5) server for HP9000/360
Keywords: X11
Date: 16 Aug 92 17:14:04 GMT
Organization: New York University


Hi, has anybody successfully compiled X11R4(R5) on HP9000/360 running HPUX-6.5,
or does anybody know if X11R4(R5) can be compiled on such platform with modest 
efforts?

Jonathan J. Sheng
Theoretical Chemistry, NYU
(212)998-8439
Newsgroups: comp.windows.x
From: chris@ods.com (Chris Atkins)
Subject: Re: Extracting data from pixmaps...
Organization: Optical Data Systems, Inc.
X-Newsreader: Tin 1.1 PL5
Date: Tue, 18 Aug 1992 15:53:59 GMT

Mark Johnston (markkj@mullian.ee.mu.OZ.AU) wrote:
: 
: 	Hi, I was wondering if anyone could give me some more information on
: extracting the data stored in pixmaps after they are created?  What i am doing
: is creating a pixmap with a pointer to some memory allocated with calloc().
: After creating the pixmap, I draw lots of lines, and some images into it.  I
: tried dumping the data in the original memory out to a file, but 'od' tells
: me that there is nothing but 0's in the pixmap...
: 
:     As far as I can see, there are not appropriate X calls to get the data
: out of the pixmap.  Once I have the data, I want to pass it to a routine
: that converts it to a gif.
: 
You need to use XGetImage to extract the data from the pixmap.  Pixmaps and 
windows  exist on the server side.  XGetImage transfers a specified reqion of 
the pixmap into an XImage on the client side.  Once the data is in the XImage 
structure, you can do what you wish with it in your application.  You would 
then use XPutImage to send the gif image across to a window or pixmap.

Chris Atkins
chris@ods.com
Newsgroups: comp.windows.x
From: ahj1@quads.uchicago.edu (andrew jaffe)
Subject: X and Emacs (faq? novice?)
Reply-To: ahj1@midway.uchicago.edu
Organization: University of Chicago Computing Organizations
Date: Thu, 13 Aug 1992 21:47:36 GMT

Hi. I am a novice X user and I have somne questions about using X with
Emacs. We have Emacs 18.58.2 which at least supports using the mouse and
the X arrow keys, so that's a start, but I want to be able to remap some
of the keyboard for easier use. The problem is, the terminal seems to
send codes that are too complex for the usual emacs key-remapping
functions. I'm using a Visual TX100M terminal, by the way.

Forgive me if this belongs in the emacs group. I'll check there if no
one responds here.

Thanks in advance,


-- 
Andrew Jaffe
Dep't of Astronomy and Astrophysics
University of Chicago
ajaffe@oddjob.uchicago.edu
From: ebina@void.ncsa.uiuc.edu (Eric Bina)
Newsgroups: comp.windows.x
Subject: X11R5 on and RT running AOS
Date: 19 Aug 92 22:30:49 GMT
Article-I.D.: news.Bt957F.GEo
Organization: Nat'l Center for Supercomputing Applications


I have the misfortune of having to compile X11R5 on and IBM PC RT running 
AOS 4.3

I've tried to use the ibm.cf file straight from the distribution tree, and
this did not work.  Has anyone done this before and can they tell me what
patches/adjustments they had to make?

Eric Bina
ebina@ncsa.uiuc.edu
Newsgroups: comp.windows.x
From: cap@rod.mitre.org (Craig Prall)
Subject: Need unobscurable window that moves obscuring windows
Keywords: Visibility, obscurable, XConfigureWindow
Organization: The MITRE Corporation
Date: Fri, 14 Aug 1992 13:43:33 GMT

I need to have a security classification banner at the top of my X display. Antisocial or not, it is a requirement that this window not be obscurable by other windows. I have added code to receive VisibilityNotify events and XRaiseWindow calls to bring the window back to the top when obscured. The problem is that since this banner is at the top of the display (with no resize bars or other [motif] decorations) it covers over the title bar of the window that previously obscured it. That makes it hard to move



 the offending window out from under the banner using the title bar. What I would prefer to do is to find out the ID of the window that is obscuring the banner and perform an XConfigureWindow to move the other window down automagically. Does anyone know of a relatively painless way to find out the ID of the window obscuring the banner?

Thanks for any help,

Craig

____________________________-------------------------__________________________
Craig Prall                               email: cprall@mitre.org
The MITRE Corporation                            cap@rod.mitre.org
McLean, VA
----------------------------_________________________--------------------------
From: thomas@mathematik.uni-Bremen.de (Thomas Eberhardt)
Newsgroups: comp.windows.x
Subject: Re: compression of pcf fonts?
Date: 23 Aug 92 06:05:19 GMT
Organization: Univ. Bremen, Informatik

scowen@wfpc3.la.asu.edu (Paul A. Scowen) writes:

>In the R4 world I used to have all my snf fonts compressed.  I have tried this 
>with the pcf fonts in R5 and found that mkfontdir craps out.  Is this true,

I've added support for compressed bitmap fonts to X11R5 by integrating some
stuff I found in mit/server/os/decompress.c into the font library.  One
can find the necessary patches on export.lcs.mit.edu in
contrib/compressed-fonts-patches.Z
--
thomas@mathematik.uni-Bremen.de  | Institut fuer dynamische Systeme
Thomas Eberhardt                 | Universitaet Bremen, FB 3, Postfach 330 440
Koelner Str. 4, W-2800 Bremen 41 | W-2800 Bremen 33, Germany
Phone: +49 421 472527            | FAX: +49 421 218-4236
Newsgroups: comp.windows.x
From: witr@rwwa.COM (Robert Withrow)
Subject: WrapHelp.c
Keywords: FAQ
Reply-To: witr@rwwa.com
Organization: R.W. Withrow Associates
Distribution: usa
Date: Wed, 12 Aug 1992 22:57:24 GMT

Ok.  Just where do I get Wraphelp.c from?  It isn't at UUNET...

I read the FAQ.  It seems like instructions on how to get this
file could be included in the FAQ without hoplessly compromizing
U.S. security...   ;-)

-- 
---
 Robert Withrow, R.W. Withrow Associates, Swampscott MA 01907 USA
 Tel: +1 617 598 4480, Fax: +1 617 598 4430, Net: witr@rwwa.COM
From: jwz@lucid.COM (Jamie Zawinski)
Newsgroups: comp.windows.x
Subject: xscreensaver 1.0 now available
Date: 17 Aug 92 14:47:51 GMT
Organization: Lucid, Inc., Menlo Park, CA

Get it from export.lcs.mit.edu in the file contrib/xsaver.tar.Z.

The xscreensaver program waits until the keyboard and mouse have been idle
for a period, and then runs a graphics demo chosen at random.  It turns off
as soon as there is any mouse or keyboard activity.

This is not a screen locker, like xlock -- it does not prevent others from
using your terminal.  Its purpose is to display pretty pictures on your
screen when it is not in use, in keeping with the philosophy that unattended
monitors should always be doing something interesting, just like they do in
the movies.

The benefit that this program has over the combination of the xlock and
xautolock programs is the ease with which new graphics hacks can be
installed: you don't need to recompile this program to add a new display
mode, you just change some resource settings.  Any program which can be
invoked in such a way that it draws on the root window of the screen can
now be used as a screensaver without modification [*].  The programs that
are being run as screensavers don't need to have any special knowledge
about what it means to be a screensaver.

The XIdle extension will be used if you have it (win win.)  If you haven't
installed XIdle, you need to change a line in the Imakefile.

Also included are several graphics hacks for use as screensavers.  There's
nothing magic about these: they're just programs that draw on the root
window, which are pointed at by the screensaver's default resource settings.

   qix		- My own implementation of this, with many more options
		  than you would have thought qix could have.
   helix	- Generates spirally "stringart" patterns.
   rorschach	- Random inkblot patterns.
   attraction	- A bouncing ball demo, or a qix-like demo, or a wild
		  color-cycling thing, with some odd rules.
   greynetic	- Random colored/stippled rectangles.
   rocks	- Flying through an asteroid field.
   pyro		- Fireworks.  Looks a lot like the version in xlock.
   hopalong	- Fractals.  I snarfed this code from xlock.
   noseguy	- A guy with a big nose wanders around the screen saying
		  things.  I snarfed this code from xnlock.

All of these will pop up their own window unless given that -root option.
See their man pages for more details.

Other reasonable things to use as screensavers, if you have them, are

  xdaliclock -root -builtin2	- melting digital clock
  xswarm -r 2>&-		- swimming sperm
  xwave -root			- random 3d graphs
  xbouncebits			- bounce arbitrary bitmaps around
  ico -r			- it's dull, but it's there
  xv -root file.gif -quit	- they don't all have to animate!

You can get all of these from export.lcs.mit.edu.  If you know of (or write)
any other interesting programs that can be used as screensavers, please let
me know!

	-- Jamie Zawinski <jwz@lucid.com>

[*] It may be necessary to include "vroot.h" in the program, but that would
be necessary for it to work with virtual-root window managers anyway.
From: schwager@cs.uiuc.edu (Mike Schwager)
Newsgroups: comp.windows.x
Subject: Odd Mwm behavior... Motif version 1.1
Summary: Mwm is weird
Keywords: behavior, behaviour
Date: 14 Aug 92 18:23:51 GMT
Article-I.D.: mike.schwager.713816631
Organization: University of Illinois, Dept. of Comp. Sci., Urbana, IL

Or is that "behaviour" to you?  Well, whatever side of the Great Pond you
are on, Xpert, could you please answer this:

Whenever I move or resize a window, I want to have it report to me the x,y
position of the window or the size of the window.  It will do this only if
I first push the window to the back.  I can bring it to the front or leave
it back there, it doesn't matter what I do after that, as long as I push it
to the back once.  The window x, y position report or resize report will
come up foreverafter.

Any ideas?  A weird setting in my .mwmrc file?  I can't imagine what it
could be.
-Mike
Xref: sparky comp.windows.x:15509 comp.windows.open-look:3556
From: kemnitz@netcom.com (Greg Kemnitz)
Newsgroups: comp.windows.x,comp.windows.open-look
Subject: Re: "Insufficient resources for operation"  ??
Date: 21 Aug 92 22:14:19 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest)

In article <1992Aug21.160245.12916@cs.tulane.edu> kam@tulmath.math.tulane.edu (Katherine Hosch) writes:
=Greetings.  I just installed X11R5 on a 4/380 and have been having
=problems of various sorts ever since.  In running X on a sparc ELC,
=and running some openlook applications, bad things occasionally
=happen.  For instance, a click of the left mouse button in a window
=has made the window disappear; or trying to respond to mail has caused
=the mail tool to disappear.  Today I was running a mail tool remotely,
=and finally got an error message:
=
=tulmath% X Error of failed request:  BadAlloc (insufficient resources
=for operation)
=  Major opcode of failed request:  12 (X_ConfigureWindow)
=  Serial number of failed request:  715
=  Current serial number in output stream:  764
=
=I am guessing that this may mean that I need to reconfigure kernels
=that are running X so that there is a larger number of max_processes.
=Does anyone have any good advice?
=
=-- katherine hosch

It is a malloc error which means you are running out of memory.
So either increase your DRAM or swap space(disk space) will
solve the problem(I hope :-).)
Newsgroups: comp.windows.x
From: klute@tommy.informatik.uni-dortmund.de (Rainer Klute)
Newsgroups: comp.windows.x
Subject: Re: Imake documentation
Date: 14 Aug 1992 20:00:55 GMT
Organization: CS Department, Dortmund University, Germany
Distribution: world
NNTP-Posting-Host: tommy

In article <9208131742.AA00406@g5.rmc.ca>, buckholtzg@rmcnet.rmc.ca writes:
|>    Could someone point me in the proper direction as to where some
|> documentation
|> on Imake could be found. All I have to go on is a skimpy man page that
|> says
|> how Imake works but nothing on how to create imake files for building
|> an
|> application.


Fulton, Jim, Configuration Management in the X Window System, X Consortium,
MIT Laboratory for Computer Science (included in the X11R5 source
distribution as file mit/doc/config/usenixws/paper.ms)

Mark Moraes, An Imake tutorial, Computer Systems Research Institute,
University of Toronto, 1989 (included in the X11R4 source distribution as
file contrib/doc/imake/imake.tex)

DuBois, Paul, Using Imake to Configure the X Window System Version 11,
Release 4, Wisconsin Regional Primate Research Center, 1991

DuBois, Paul, Using Imake for Multiple Projects, Wisconsin Regional Primate
Research Center, 1991

Klute, Rainer, Das Meta-Make / I make, you make / Schwerelos, iX
Multiuser-Multitasking-Magazin, 1992


-- 
  Dipl.-Inform. Rainer Klute      klute@irb.informatik.uni-dortmund.de
  Univ. Dortmund, IRB
  Postfach 500500         |)|/    Tel.: +49 231 755-4663
D-W4600 Dortmund 50       |\|\    Fax : +49 231 755-2386