HDTenEightyP/NetNews huggingface dataset:
From: thp@westhawk.UUCP (Timothy H Panton)
Subject: Re: Xt and CPU usage
Organization: The Internet
Date: Tue, 29 Dec 1992 11:06:49 GMT


> Each application is driven by both the GUI and serialized data using
> XtInputCallbackProc's.

> 2 applications will put CPU usage of a Sparc 2 at 97%, even when
> completely idle with no serialized data input and no X events (GUI input).

At a guess I'd say you have your XtInputCallbackProc reading from a file.
(as opposed to a socket or pipe or stream).
The action of XtAppAddInput is deliberately loosely defined, on most UN*X
systems it calls select() or poll(). If select()  replies "ready" for a given
file descriptor then your XtInputCallbackProc will get called.

On most Un*X's select() for readability on an open file gives "ready" even
if you are at the end of file. A (hack) way around this is to 
popen("tail -f filename"); 
and use the returned pipe instead of your file descriptor.

Other things to check for are timers and work procs. 

Tim.
+----------------------------------------------------------------------------+
|Tim Panton, Westhawk Ltd.  "Couldn't you make this a little easier for me?" |
|Phone: +44 244 314800          "Nope. This is as easy as it gets."          |
|Email: thp%westhawk.uucp@uknet.ac.uk                                        |
|Paper: Westhawk Ltd. Archway House, Station Road, Chester. CH1 3DW. UK      |
+----------------------------------------------------------------------------+

Newsgroups: comp.windows.x
From: graaff@IS.TWI.TUDelft.NL (Hans de Graaff)
Subject: Re: setting DISPLAY env variable
Reply-To: graaff@IS.TWI.TUDelft.NL
Organization: Delft University of Technology
Date: Mon, 21 Dec 1992 13:33:33 GMT

In article 1h4bp2INNi8u@sol.deakin.OZ.AU, rns@deakin.OZ.AU (Robert Sturrock) writes:
>I don't think this solves the problem.  My difficulty is not starting
>up an xterm.  My problem is logging into a remote machine and having the
>DISPLAY variable appropriately set on this machine to "wkstn:0.0".

I got this from the net some time ago, and I've used it for some time now.
I use this in my .login

--

# make it so that the DISPLAY points to the machine I'm sitting at...
set callerid=`who am i | sed -e 's/^.*(//' -e 's/)$//' -e 's/\.[-a-zA-Z]*$//' `
 
# callerid is either the current display (:0.0), or the host (foo.bar)
set test = `echo $callerid | sed -e 's/^.*:.*//'`
 
if ($#test == 1) then
    setenv DISPLAY $callerid\:0.0
else
    setenv DISPLAY `hostname`:0.0
endif
 
unset test
---
Hans de Graaff                  | I want someone to follow,
J.J.deGraaff@IS.TWI.TUDelft.NL  |   who doesn't lead the way
Department of Informatics       | I want someone to listen,
Delft University of Technology  |   who won't repeat what I say
               Room: 2.003, Telephone: +31-15-78-5811
From: straw@cam.nist.gov (Mike_Strawbridge_x3852)
Newsgroups: comp.windows.x
Subject: selecting in Motif ScrolledList causes core dump
Date: 24 Dec 92 13:54:50 GMT
Organization: National Institute of Standards & Technology, Gaithersburg, MD

I posted this to comp.windows.x.motif but have received no responses yet ...

I am running this on a Sun 4, SunOS 4.1.3, MIT X11R4 and Motif 1.1.

In my application I have a List contained inside a Scrolled Window. The list
has selectionPolicy set to BROWSE_SELECT. Sometimes, but not always, the
following action will cause the application to dump core ...

- Press the select mouse button and drag the cursor off the bottom of the
  list. The list scrolls to the bottom of the list and the last item is
  highlighted. ( i.e. the cursor is now outside of the scrolledList widget
  and the last item in the list is highlighted).

- Now release the select key.

The application dumps core with the following status from dbx:

  program terminated by signal SEGV (no mapping at the fault address)
  ClickElement() at 0x65e64
  BrowseScroll() at 0x66214
  DoOtherSources() at 0xf778174c
  XtAppNextEvent() at 0xf7781938
  XtAppMainLoop() at 0xf77799cc

Note that it does not crash every time you do this. Most of the time
it calls the XmBrowseSelectionCallback as expected.

Does anyone know what going on here? I don't have Motif source. Is this
a bug in Motif 1.1 or have I forgotten to configure something in the
List/ScrolledWindow combination?

Thanks.

Mike

-----------------------------------------------------------------------
NAME:   Michael Strawbridge                     TELE: (301) 975-3852
USMAIL: National Institute of Standards         ARPA: straw@cam.nist.gov
                and Technology                  UUCP: uunet!cme-durer!straw
        Rm. B-146, Bldg. 225
        Gaithersburg, MD  20899
From: hstroyan@hpfcso.FC.HP.COM (Howard Stroyan)
Date: Wed, 23 Dec 1992 17:40:43 GMT
Subject: Re: Help with Colormaps
Organization: Hewlett-Packard, Fort Collins, CO, USA
From: demo181@ibmpcug.co.uk (Sarah Johnes)
Subject: X source (x11r5 distrubition)
Organization: The IBM PC User Group, UK.
Distribution: connect
Date: Sun, 3 Jan 1993 04:05:56 GMT

Hi all,,
   can someone suggest a ftp site where i can FTP all the X11r5 distribution
source and if possible a site which i can FTP the source (including 
installation stuff) for Unix (SCO or BSD) ...and i want to run all that
on a 486 platform....can anyone help..

 if possible can people reply via.
                                    ac116@city.ac.uk

   thankyou in advance..


Newsgroups: comp.windows.x
From: sledge@zelator.in-berlin.de (Matthias Gruber)
Subject: REcognize login of other users
Organization: Puplic-Access-Xenix-System
Date: Sat, 26 Dec 92 11:56:12 GMT

Hi,

I'm searching for a program, which should act like xbiff, but with the
difference it should notice if an other user logs onto my sparc.

Does anybody know such a program ??

thanks in advance & merry xmas    

	 Matthias


-- 
 __|__                                                              __|__
(_____)------------------------------------------------------------(_____)
|  /  | Matthias Gruber         Email: sledge@zelator.in-berlin.de |     |
|  /  |     Berlin              -- student of computer science  -- |     |
|  /  |     Germany             ---------------------------------- |     |
|__/__| Voice: +49-30-396-83-28    I'm immortal........ so far.    |_____|
(_____)------------------------------------------------------------(_____)
   |                                                                  |
From: rns@deakin.OZ.AU (Robert Sturrock)
Newsgroups: comp.windows.x
Subject: Re: setting DISPLAY env variable
Date: 21 Dec 1992 23:02:42 +1100
Organization: Deakin University
NNTP-Posting-Host: sol.deakin.oz.au

dwight@geohub.gcn.uoknor.edu (Dwight D. Moore) writes:

>Try using "xterm -display wkstn:0" instead of depending on the
>DISPLAY environment variable.  There are scripts around that
>will do an rsh and allow you to do the above command without
>explicitly logging into the machine.  We have setup window
>manager menus with pulldowns to do just this and popup
>a remote window.

I don't think this solves the problem.  My difficulty is not starting
up an xterm.  My problem is logging into a remote machine and having the
DISPLAY variable appropriately set on this machine to "wkstn:0.0".


Rob
Newsgroups: comp.windows.x
From: aad@siemens.com (Anthony Datri)
Subject: Re: REcognize login of other users
Organization: Siemens Corporate Research, Princeton (Plainsboro), NJ
Date: Sun, 27 Dec 1992 22:57:47 GMT

>I'm searching for a program, which should act like xbiff, but with the
>difference it should notice if an other user logs onto my sparc.

>Does anybody know such a program ??

Try using tcsh for your shell.  tcsh is a superset of csh that incorporates
many TOPS-20 features.
-- 

======================================================================8--<
Newsgroups: comp.windows.x
From: thp@westhawk.UUCP (Timothy H Panton)
Subject: Re: An Open Challenge (it can't be done!)
Organization: The Internet
Date: Wed, 23 Dec 1992 10:58:07 GMT


> Here's the short form:
>  - 8 bit image in backing pixmap used to update window
>  - Image drawn in 8 bit X window
>  - Want to draw diagonal lines on top of image that can
>    be removed quickly (i.e. replace them with the data they so
>    recently covered)
>  - Can't do server extensions (too many platforms to support)
> Betcha can't do it!

You don't say that the image changes quickly, so you could try creating
a child window on top of your image, with window the background_pixmap
as none. This window will copy the bits of the image. You can now draw
in this window. When you want to erase the line just destroy the
window, the main image will then be exposed.

I don't know if this will work well enough, but it might be worth trying.

Yet another thing NeWS has - transparent canvases. Sigh.
Tim.
Newsgroups: comp.windows.x
From: anand@qualix.com (Vinay Anand)
Subject: Help: Limit filesize in xview.
Keywords: xview
Reply-To: anand@qualix.com
Organization: QUALiX Group, Inc.
Distribution: na
Date: Thu, 31 Dec 1992 17:10:54 GMT


Greetings !

We have an xview based network management software that(among other things)
does the following:

It collects packet data from the network and scrolls the same in a window on 
the console. It also saves this data to a file in /tmp. The problem is that 
eventually, /tmp is full and I get a write error. Also, the window system
freezes, i.e., the mouse can be moved, but no window will accept focus.
Once the application is killed, the system is back to normal.

What I want to know is: 
Is there a way to limit the size of the file being written to /tmp ? I 
would like to do this from within the application itself. 
Ideally, I would like the user to be able to specify the size of the file
at the time of invocation of the application.

We run this application on SPARCstations in OpenWindows version 3.0.

Any pointers to solve this problem appreciated.
Please send your reply to anand@qualix.com

Cheers !
Vinay.

-----------
Vinay Anand                                        Tel: (415) 570-2999
anand@qualix.com                                   FAX: (415) 572-1300
From: jeff@visix.com (Jeff Barr)
Newsgroups: comp.windows.x
Subject: Re: interface library toward X-windows, MsWindows, Macintosh
Date: 21 Dec 92 23:55:18 GMT
Organization: Visix Software Inc., Reston, VA

>>>>> On 16 Dec 92 23:01:47 GMT, grp@Unify.com (Greg Pasquariello) said:

Greg> In article <1992Dec14.114316.163297@ipgaix.unipg.it>, glm@ipgaix.unipg.it (Gianfranco Galmacci) writes:
> 
> I'm going to start a project which consists of a sw tool
> to be used in different platforms( eg: X-windows, ms windows
> and Macintosh). So I'm looking for some library which can
> operate as an interface between a c-program and the various
> windows environment avoiding to build a different program
> for each standard. Does anyone knows something about
> such a library? 

Greg> Buon giorno, Gianfranco,

Greg> Take a look at Galaxy by Visix.  Their library and development environment
Greg> supports Open Look, Motif, MS-Windows and (supposedly) Mac.  It is the richest,
Greg> most extensible cross platform toolkit available today.  It supports user
Greg> interface objects (buttons, windows, text, sliders, lists, etc.), a path
Greg> based drawing model (similar to postscript), file system and OS abstraction,
Greg> a wonderful geometry manager, multibyte static and dynamic strings, multi
Greg> style text, distributed application services (client/server, peer-to-peer,
Greg> RPC, etc), hashed names, platform independent object storage, etc.  If you
Greg> need more information, you can contact Visix at:

Greg> Visix Software, Inc,
Greg> 11440 Commerce Park Drive
Greg> Reston, Va 22091
Greg> (703) 758-0233

**** (703)-758-8230 	will get you voice (Greg posted our FAX number)	****
**** info@galaxy.com 	if you can't stand to leave your terminal ;-) 	****

Greg> And no, I don't take kickbacks from Visix or represent them in any way.  I
Greg> have just been looking for such a toolkit for years, they provide it, and
Greg> I'm very happy with it.

> Thanks a lot.
> Gianfranco Galmacci
> Dept. of Statistics
> Perugia - ITALY 
> -- 

Greg> --
Greg> Greg Pasquariello   	grp@unify.com 	        I've trained my chia pet to use
Greg> Unify Corporation	   or			my clapper...
Greg> (916) 928-6258	    ...!uunet!unify!grp

Jeff;

\\\ Jeff Barr      \\\	  "If you reinvent the square wheel, you 
/// Visix Software ///     will not benefit when someone else
\\\ 703.758.2740   \\\	   rounds off the corners."
/// jeff@visix.com ///	  		-- Henry Spencer
Newsgroups: comp.windows.x
From: rnovak@netcom.com (Robert E. Novak)
Subject: Re: What's the best PC X terminal software? Deskview X, Windows X?
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Tue, 29 Dec 1992 07:22:28 GMT

In article <1992Dec21.141835.4570@miki.pictel.com> oj@miki.pictel.com (Oliver Jones) writes:
>2) The Xremote release notes say, and my experience verifies, that
>   your PC should have a 16550 serial controller chip (the one 
>   with a character silo) instead of a '450 if you're going 
>   to be running serial communications at >= 9600bps
>   on MS Windows.  Most PCs come with not-good-enough serial 
>   controller chips.   You can probably buy the appropriate
>   serial card in a computer store for < $50.

I am using a 14.4 kbps modem and was having problems with transfers until I
bought a 16550 chip.  Like most people that bought early serial boards I
had added a 16450 several years ago.  When it came to upgrading, replaing
the socket chip was a breeze and inexpensive ( <$10 ).
Newsgroups: comp.windows.x
From: lwv26@cas.org (Larry W. Virden)
Subject: Re: what font is my xterm using?
Followup-To: comp.windows.x
Reply-To: lvirden@cas.org (Larry W. Virden)
Organization: Nedriv Software and Shoe Shiners, Uninc.
Date: Tue, 22 Dec 1992 12:43:14 GMT

Isn't there an escape sequence one can use to set the font?  A script could
ask the user if they would like the shell to set things into an 
appropriate font for them...
-- 
Larry W. Virden                 UUCP: osu-cis!chemabs!lvirden
Same Mbox: BITNET: lvirden@cas  INET: lvirden@cas.org
Personal: 674 Falls Place,   Reynoldsburg, OH 43068-1614
From: wolfson@cme.nist.gov (Mike Wolfson)
Newsgroups: comp.windows.x
Subject: FAQ list please.
Date: 21 Dec 92 21:37:37 GMT
Organization: National Institute of Standards and Technology, Gaithersburg, MD


Could somebody please point me to this lists's FAQ list, or an 
appropriate location to get an answer to my question?

I am attempting to get OpenWin's Calendar Manager (cm) to display
properly on an xterminal.  
Our site has a few xterminals strewn here and there.  The problem 
is that our xterminals can only display 8 possible fonts, and none
of them fit the bill for cm.
I am trying to either a: substitute the fonts that cm uses with
ones available for the xterminal, or b: figure out how to make 
the xterminal recognize the standard fonts for OpenWin.

Any ideas or suggestions would be appreciated,
Thank you very large.
  -- Mike Wolfson
Newsgroups: comp.windows.x
From: CFRAZIER@hdsc.ssc.af.MIL (C | C Code | C Code Run, please!)
Subject: keybindings for Motif
Organization: The Internet
Date: Mon, 28 Dec 1992 15:26:00 GMT

Does anyone know where I can find a listing of the
keybindings for Motif.  I want to know how to use
Motif without a mouse.  Thank you.

cfrazier@hdsc.ssc.af.mil
From: dmurray@xihu.inria.fr (Don Murray)
Newsgroups: comp.windows.x
Subject: XView and colormaps
Date: 26 Dec 92 17:55:02 GMT
Organization: INRIA, Sophia-Antipolis (Fr)

I have had a devilish time with XView 'colormap segments' (Cms).
So, I have been using XLib calls and building my own
'Colormap's to handle my colors in the canvas...

But, now I would like to alter the colors of my buttons and
panels, and I find that there is no documentation in
O'Rielly about using 'Colormap's, only 'Cms'.

I can't get the damn button to change color using the O'Rielly
examples (without a cms).

I am using the default colormap for everything.
If anyone has any ideas on this, I'd really appreciate it.

Don

(dmurray@sophia.inria.fr)
From: amit@point.cs.uwm.edu (Amit Srivastava)
Newsgroups: comp.windows.x
Subject: How do you do Tinting on portions of a window
Date: 21 Dec 1992 19:07:54 GMT
Organization: University of Wisconsin, Milwaukee
Distribution: world
NNTP-Posting-Host: 129.89.2.5
Keywords: Multiple colormaps, trnasparent windows, tinting, masking

Hi!
	All you smart people out there. Happy Holidays!

Here is the problem I am facing:
I have an image in a window, specified by a mask.  The image   gets
tinted in the masked area, rapidly. I modify the colormap to affect the
tinting, rapidly, however it updates the whole window.
	Is there anyway to achieve this effect, such that the masked region
is only affected? Can it be done using multiple colormaps, and transparent
window's (windows with transparent background's)? If so, how can one create a
transparent window?
			-amit.
From: jpd@discovery.cl.msu.edu (Joe P. DeCello)
Newsgroups: comp.windows.x
Subject: Re: Can't make XPM - help
Date: 30 Dec 92 15:38:00 GMT
Reply-To: jpd@discovery.msu.edu
Organization: Michigan State University
NNTP-Posting-Host: discovery.cl.msu.edu

In article 1hsfmqINNbkg@msuinfo.cl.msu.edu, jpd@discovery.msu.edu (Joe P. DeCello) writes:
]When I try to make xpm I get the following:
]
]rm -f sxpm
]gcc -fstrength-reduce -fpcc-struct-return -o sxpm sxpm.o -O   libXpm.a -lXt -lXext -lX11   -B/usr/bin/
]ld: Undefined symbol 
]   strcasecmp 
]   *** Error code 1
]   make: Fatal error: Command failed for target `sxpm'
]
]This is in X11R5 on a sun386i w/16 mg running 4.0.2
]---
]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
]Joseph P. DeCello III                      e-mail:  jpd@cad.msu.edu
]Michigan State University                      ph:  (517) 353-3027 
]Specialized Computing Support Services           1:00pm - 5:00pm EST
]rm -f sxpm
]gcc -fstrength-reduce -fpcc-struct-return -o sxpm sxpm.o -O   libXpm.a -lXt -lXext -lX11   -B/usr/bin/
]ld: Undefined symbol 
]   strcasecmp 
]   *** Error code 1
]   make: Fatal error: Command failed for target `sxpm'
]
]


The first post has the wrong e-mail in the header!!!!!!!
---
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Joseph P. DeCello III                      e-mail:  jpd@cad.msu.edu
Michigan State University                      ph:  (517) 353-3027 
Specialized Computing Support Services           1:00pm - 5:00pm EST
Newsgroups: comp.windows.x
From: hiren@teknetix.com(Hiren Shah)
Subject: xmail fails on compilation: get_wmShellWidgetClass error - Help
Keywords: _get_wmShellWidgetClass, _get_applicationShellWidgetClass
Organization: Teknetix
Date: Wed, 30 Dec 1992 22:24:31 GMT
X-Posted-From: teksun.teknetix.com
NNTP-Posting-Host: sol.ctr.columbia.edu


 
Hi:
 
I am trying to compile xmail on a Sun IPX.
 
I am running version X11R4
 I recevied the source files via ftp and used xmkmf to create the makefile


make
cc -O   -I/usr/include             -target sun4 -c  Mailwatch.c
cc -O   -I/usr/include             -target sun4 -c  HelpText.c
cc -O   -I/usr/include             -target sun4 -c  actions.c
cc -O   -I/usr/include             -target sun4 -c  callMail.c
cc -O   -I/usr/include             -target sun4 -c  callbacks.c
cc -O   -I/usr/include             -target sun4 -c  confirm.c
cc -O   -I/usr/include             -target sun4 -c  directory.c
cc -O   -I/usr/include             -target sun4 -c  environs.c
cc -O   -I/usr/include             -target sun4 -c  handler.c
cc -O   -I/usr/include             -target sun4 -c  mail.c
cc -O   -I/usr/include             -target sun4 -c  parser.c
cc -O   -I/usr/include             -target sun4 -c  utils.c
cc -O   -I/usr/include             -target sun4 -c  windows.c
cc -O   -I/usr/include             -target sun4 -c  xmail.c
rm -f xmail
cc -o xmail Mailwatch.o HelpText.o actions.o callMail.o callbacks.o  confirm.o directory.o environs.o
 handler.o mail.o parser.o  utils.o windows.o xmail.o -O   -lXaw -lXmu -lXt -lXext -lX11 -lm
ld: Undefined symbol
   _get_wmShellWidgetClass
   _get_applicationShellWidgetClass
*** Error code 2
make: Fatal error: Command failed for target `xmail'


If I do a
nm libXmu.a | more
I get :
 
         .
         .
         .
         .
         .
         .
         U _free
         U _malloc
         U _realloc
         U _strncmp
 
sharedlib.o:
         U _applicationShellWidgetClass
00000000 T _get_applicationShellWidgetClass
0000000c T _get_wmShellWidgetClass
         U _wmShellWidgetClass
 
which means that _get_applicationShellWidgetClass
and _get_wmShellWidgetClass
are available.  But even then it gives the error on compilation.
I tried to change the position of libXmu on the compile line, but that doesn't help.
 
Any ideas/suggestions would be appreciated.
 
Thanks in advance
 
Hiren
hiren@teknetix.com
 






Newsgroups: comp.windows.x
From: bentrup@cs.uiuc.edu (John Bentrup)
Subject: minimum X11R3 files
Organization: University of Illinois, Dept. of Comp. Sci., Urbana, IL
Distribution: na
Date: Tue, 29 Dec 1992 03:07:45 GMT

What are the minimum files needed to run X?  We have very limited disk
space on a machine (IBM RT) on which we would like to run X.  It is already
running on another of our RTs.  I tried moving over, what I thought, were
the necessary files.  X windows will open and I can get xclock to run but
nothing useful (like pull downs or the unix shells to appear).  

Any suggestions?  Thanks.

John

-- 
John Bentrup                                INTERNET: bentrup@CS.UIUC.EDU
Department of Computer Science              BITNET: bentrup%uiucdcs.BITNET
University of Illinois at Urbana-Champaign
1304 W Springfield Ave			  
Urbana, IL 61801  USA
Xref: sparky comp.windows.x:20618 comp.windows.x.motif:8251
From: kevin@pyrtech.mis.pyramid.com (Kevin Smith)
Newsgroups: comp.windows.x,comp.windows.x.motif
Subject: Need Big Fonts
Date: 30 Dec 92 03:58:31 GMT
Reply-To: kevin@pyrtech.pyramid.com.pyramid.com (Kevin Smith)
Distribution: us
Organization: Pyramid Technology Corporation


Hi,
	Im trying to find some big fonts for our system 62 points
or better, can anyone direct me to an ftp site that has the .bdf files
for these fonts.
Thanks, kevin@pyramid.com
From: 4carroll_j@spcvxb.spc.edu
Newsgroups: comp.windows.x
Subject: How to get Expose events
Date: 31 Dec 92 22:20:12 GMT
Organization: St. Peter's College, US


 Hi,
 
	I am having some  difficulties  with  XMapWindow  amd  receiving  Expose 
 events.  I have a window heirarchy that consists of four windows, where the 
 first window is  root.  I  have  tried  every  combination  of  XMapWindow, 
 XMapSubwindows,  and  XMapRaised,  but  cannot seem to get the lowest level 
 window to display. 
 
	Effectively  the  way  I  create  the  window  heirarchy  is  with   the 
 XCreateWindow() function call, where the window parameter that I  pass, is 
 the returned value from  the previous call. Ie:

  
 	Window a, b, c;
 
 	a = XCreateWindow( display,  root, ... );
 	b = XCreateWindow( display,  a,    ... );
 	c = XCreateWindow( display,  c,    ... );
 
 	XMapRaised( display, c    );
 	XMapWindow( display, b    );
 	XMapWindow( display, a    );
 	XMapWindow( display, root );
 
 
 	In the code  above,  I have  found that windows 'a' and 'b' receive 
 Expose events, but I cannot seem to get Expose events for 'c'. Is their 
 something very obvious that I am overlooking.
 
 Thanks
 Jim Carroll
 
Newsgroups: comp.windows.x