HDTenEightyP/NetNews huggingface dataset:
From: envbvs@epb9.lbl.gov (Brian V. Smith)
Newsgroups: comp.windows.x
Subject: Re: GXcopy and GXxor
Date: 24 Jul 1992 16:12:05 GMT
Organization: lbl
Distribution: world
NNTP-Posting-Host: 128.3.12.98

In article <MICHAEL.920724095149@maine.maine.EDU>, michael@maine.maine.edu (Michael Johnson) writes:


|> There's not really much you can do about it. When you XOR the pixels, the
|> resulting pixel value is going to yield whatever color that pixel maps to.
|> Do you understand what an XOR operation is?
|> 
|> I find that a useful value for rubber-banding with XOR is -1, cast to Pixel.
|> This usually yields a consistent color (usually black, though I've seen cases
|> where an application actually allocated pixels that high, resulting in a
|> different color).

This has been asked many times and is in the FAQ:

----------------------------------------------------------------------
Subject: 129)  Why doesn't GXxor produce mathematically-correct color values?

        When using GXxor you may expect that drawing with a value of black on a
background of black, for example, should produce white. However, the drawing
operation does not work on RGB values but on colormap indices. The color that
the resulting colormap index actually points to is undefined and visually
random unless you have actually filled it in yourself. [On many X servers Black
and White often 0/1 or 1/0; programs taking advantage of this mathematical
coincidence will break.]
        If you want to be combining colors with GXxor, then you should be 
allocating a number of your own color cells and filling them with your chosen
pre-computed values.
        If you want to use GXxor simply to switch between two colors, then you 
can take the shortcut of setting the background color in the GC to 0 and the
foreground color to a value such that when it draws over red, say, the result 
is blue, and when it draws over blue the result is red. This foreground value 
is itself the XOR of the colormap indices of red and blue.

[Thanks to Chris Flatters (cflatter@zia.aoc.nrao.EDU) and Ken Whaley 
(whaley@spectre.pa.dec.com), 2/91]

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

-- 
Brian V. Smith    (bvsmith@lbl.gov)
Lawrence Berkeley Laboratory
I don't speak for LBL; they don't pay me enough for that.
Newsgroups: comp.windows.x
From: stumpf@Informatik.TU-Muenchen.DE (Markus Stumpf)
Subject: Re: Writing your own Screen Saver under X???
Keywords: screen saver
Originator: stumpf@hphalle0.informatik.tu-muenchen.de
Organization: Technische Universitaet Muenchen, Germany
Date: Tue, 21 Jul 1992 08:30:30 GMT


In article <1992Jul20.142330.22230@panix.com>, miner@panix.com (Ed Miner) writes:
|> Yes I am wondering if anyone can help me? I am trying to write my own
|> screen saver under X to replace the blank screen that comes up. I know
|> with xset , you can turn on the screen saver, so that a X logo will
|> float around the screen. My question is how do you change this so that
|> a program that I write will be displayed instead? Any ideas or hints
|> will be helpful.

The answer is simple and maybe frustrating for you:
You can't!
At least you can't with the current implementation in the "standard" (MIT)
server and using the "standard" (MIT) Xlib calls! Maybe a vendor has put it
in his server code, but I don't know of one!
But you're welcome to write a server extension. (There has been some
discussion on this topic about one or two month ago, and someone said
"maybe I'll write an extension", but I don't know what's going on ...

Ciao
	\Maex
-- 
______________________________________________________________________________
 Markus Stumpf                        Markus.Stumpf@Informatik.TU-Muenchen.DE
From: pwh@bradley.bradley.edu (Pete Hartman)
Newsgroups: comp.windows.x
Subject: problems with console when using X
Date: 27 Jul 92 21:19:32 GMT
Distribution: usa
Organization: Bradley University

We have a Sun Sparcstation 2 running X11R5.

Periodically students manage to "lose" the console--I cannot get the
console to respond, even though there is a getty running, even if
I kill/restart the getty.  This is not like the problem solved by
typing "/usr/openwin/bin/kbd_mode -a"--I get *no* response from the
console keyboard rather than simply having every keypress translated
into a return.

I'd swear I've seen this problem and it's solution discussed before, but
it doesn't seem to be in the FAQ, and I'm lost.  If someone could tell
me if they know of a solution, I'd really appreciate it.
-- 
Pete Hartman		       Bradley University	pwh@bradley.bradley.edu
                 Love is blind, Love can tell a million stories
                   Love's unkind, spiteful in a million ways
From: lecom@slhp1.epfl.ch (Claude Lecommandeur)
Newsgroups: comp.windows.x
Subject: Re: Using the NonRectangular Window Shape Extension
Date: 24 Jul 92 07:01:02 GMT
Organization: Ecole Polytechnique Federale de Lausanne

In article <1992Jul23.163551.371@cine88.cineca.it>, marcello@deis16.cineca.it (Marcello Dalpasso) writes:
|> Hi netters,
|> 
|> I should implement an X application displaying a rectangular map divided in
|> many (actually about one hundred) nonrectangular zones.
|> 
|> The zone boundaries are non-orthogonal lines.
|> 
|> The application should get zone-enter/leave mouse event, and clicking.
|> 
|> The only solution I have figured out is to use the NonRectangular Window Shape
|> Extension provided by MIT X11R5.
|> 
|> Is it feasible?
|> Is it the unique solution?
|> 
|> Any help by skillful programmers?
|> 
|> Thanks in advance, please reply by e-mail and a summary will be posted.
|> 
|> -- 
|> 	Marcello Dalpasso (e-mail: marcello@deis16.cineca.it)
|> 	D.E.I.S. - Department of Electronics and Computer Science	
|> 	Viale Risorgimento 2, I-40136 Bologna, Italy			
|> 	Phone: +39-51-644-3015 (fax: +39-51-644-3073)

    It is perfectly feasible and pretty easy to do with the SHAPE
routines. Another solution is to just draw all the zones in the 
englobbing rectangular window an track the pointer motion events and
calculate manually in which zone the pointer is (to highlight it or
do whatever you want). You should probably try the first solution
first, but many X servers are a bit sluggish when dealing with
non-rectangular windows.

  Claude.

-- 


                    Claude Lecommandeur
                    Service Informatique Central
                    Ecole Polytechnique Federale de Lausanne
                    1015 LAUSANNE (SWITZERLAND)
                    E-Mail : lecom@sic.epfl.ch
                    Tel : (41 21) 693-22-97
Newsgroups: comp.windows.x
From: tony@sunrise.com (Tony Ip)
Subject: Motif and Open Window 3.0 Comparison
Organization: Sunrise Software International
Distribution: usa
Date: Thu, 23 Jul 1992 18:27:21 GMT

Is there any one who have a widget comparison 
between Motif and Open Window 3.0 Toolkits ?
Any information, booklist, or articles
are appreciated.

               tony@sunrise.com
From: mfg@castle.ed.ac.uk (M Gordon)
Newsgroups: comp.windows.x
Subject: Bug in editres
Date: 27 Jul 92 13:57:35 GMT
Organization: Edinburgh University

Sun 4, SunOs 4.1.1, X11R5 pl13.

Start editres and xfontsel, select "Get Widget Tree" and click on
xfontsel.  Select "Get Widget Tree" again and click on the editres
window.  Editres then displays a widget tree consisiting of a mixture
of the editres and xfontsel widgets.  Editres displays it's own
widgets correctly if no other clients have been displayed beforehand.

-- 
                                                         _   _   _    _   _	
Michael Gordon - mfg@castle.ed.ac.uk OR ee.ed.ac.uk     | |_| |_| |__| |_| |   
EE Dept, Edinburgh University                           | . . . .      . . |    
It's not an optical illusion, it just looks like one    |_________|~~|_____|    
Newsgroups: comp.windows.x,comp.windows.x.apps,alt.sources
From: ware@organ.cis.ohio-state.edu (Peter Ware)
Subject: Re: XPaint 2.0 Beta 2 Release Information
Originator: ware@organ.cis.ohio-state.edu
Organization: Ohio State Computer Science
Date: Tue, 28 Jul 1992 17:05:17 GMT

You didn't run "fixincludes" after installing gcc.  This, among other
things, changes stdlib.h so abort() & exit() have the same declaration
as the builtin versions.

--pete
--
Pete Ware / Ohio State University /
           ware@cis.ohio-state.edu
           (614) 538-0965
Too bad the Nike slogan isn't "Just Do It Right" instead of "Just Do It"
From: ksm@eniac.seas.upenn.edu (Ken MacFarlane)
Newsgroups: comp.windows.x
Subject: Problem with xkernel package
Date: 22 Jul 92 18:41:05 GMT
Organization: University of Pennsylvania


Our system has recently installed the Xkernel package from Columbia, and
we were gradually in the process of converting our Sun3's to X terminals
when we encountered the following problem:

While running twm, if a ghost window comes up on the display, and is left
idle without placing it somewhere, then after about 5 minutes, the entire
session is killed, and the terminal returns to the xdm login window.
This happens whether or not twm is the final process run in the user's 
.xsession.  This did *not* occur while running twm under the previous
Sun3 kernel.

Has anyone else had this problem?  Is there an easy solution?

Any help in this matter would be much appreciated.

--
Ken MacFarlane              | email:  ksm@eniac.seas.upenn.edu 
CETS Technical Staff        |         ksm@pender.ee.upenn.edu  
University of Pennsylvania  | phone:  (215)898-2476 (057 Moore) 
Philadelphia, PA  19104     |         (215)222-7967 (Home)
From: gordie@duts.ccc.amdahl.com (Gordon Freedman)
Newsgroups: comp.windows.x
Subject: Question: How can child of fork do XtAppAddInput?
Date: 29 Jul 92 23:18:48 GMT
Reply-To: gordie@duts.ccc.amdahl.com
Organization: Happy hacker bait and tackle shop

I have an application that forks a child process. What I want to do is close the
parent X Connection in the child proc, than get the child process set up so that
it can do XtAppAddInput (socket), and let XtAppMainLoop() handle events.

I keep getting an error EBADF from the select called (eventually) from XtMainLoop,
I'm guessing this is for the parent's X connection I closed, which the intrinsics
are still using for the select.

Here's (roughly) an example of what I am trying to do:
----------------------

void
SomeClass::memberFunc ()
{
	// XCon, XDisplay, and XApp are static member data in SomeClass
	// _id and _socket are member data for this instance of SomeClass

	// does a fork (), if parent or error returns pid
	// If child, continues on ...

	pid_t pid = ::fork () ;
	
	if (pid != 0)
	{
		// If parent also does ::XtRemoveInput and ::close for _socket
		// since only child is using it ...
		return pid ;
	}
	
	if (XCon >= 0)
	{
		// Close parent's X Connection
		::XtCloseDisplay (XDisplay) ;
		XCon = -1 ;
	}
	// Create an appcontext so we can use XtAppMainLoop/etc.
	XApp = ::XtCreateApplicationContext () ;

	// Add our socket to input list
	_id = ::XtAppAddInput (XApp, _socket, 
			(void*) XtInputReadMask, XSignal, (void*) this) ;

}

void
StaticMemberCallback (XtPointer client)
{
	SomeClass* p = (SomeClass) client ;
	p -> memberFunc () ;
}

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

StaticMemberCallback is invoked out of XtMainLoop, calls MemberFunc, and after
StaticMemberFunc returns to MainLoop I get the same message repeatedly:

Warning: Select failed; error code 9

This is from the child process, as I stopped the parent with a breakpoint.

Thanks in advance for any help.

Gordon Freedman
gjf00@duts.ccc.amdahl.com
Sigs are for kids
From: larsonb@taurus.cs.nps.navy.mil
Newsgroups: comp.windows.x
Subject: UIM/X 2.0 Manual and User Group?
Keywords: UIMS
Date: 23 Jul 92 05:04:33 GMT
Distribution: na

Does anyone know of any third-party user manuals for the UIM/X 2.0
product by Visual Edge SW Ltd. (dist. by Quest Windows Corp?)?

UIM/X is a User Interface Management System (UIMS) product.  Our copy
runs under UNIX on a Sun SparcStation.  Our manual is very
reference-oriented so we want to get a manual with a tutorial or some other
more friendly format.  (BTW, our version is for Motif.)

Also, I wasn't able to find a mailing list of users that work with this product.Is there such a group?

Thanks.


----------
Ben Larson, Captain, USAF
USSTRATCOM/J625DWG
Email:  larsonb@cs.nps.navy.mil
From: som@top.cis.syr.edu (Tapas Som)
Newsgroups: comp.windows.x
Subject: Graphics Package based on X11 - Help Needed
Date: 28 Jul 92 18:43:19 GMT
Organization: Syracuse University, CIS Dept.



	A question for the  X window experts. 

	I am looking for a graphics package based on X11 (something on the
	lines of the 'xgraph ' package). It should be able to read the 
	inputs and options from a text file and produce the display on 
	the screen (I use Sun/Unix platform) with hard copy options
	(I use a postscript printer). I have used the xgraph package which
	I found  has very limited number of options. Therefore, I am looking 
	for something more powerfull than xgraph.
	

	Please reply by email to:

	som@top.cis.syr.edu
Newsgroups: comp.windows.x
From: matt@das.harvard.edu (Matthew J. LaMantia)
Subject: X Network Graphics Toolkit... Anyone?
Keywords: Network Visualization, Anyone.
Organization: Aiken Computation Lab, Harvard University
Date: Fri, 31 Jul 1992 19:50:19 GMT


I have heard that there is an X Network Graphics Toolkit, but 
thus far have not been able to find any information on it, or
any references to it in Archie.  I am interested in working on
a visualizer for a network simulator.

Does anyone have any leads on what the files might actually be 
called, where they're available, and whether or not they're any
good?  Any replies would be great, emailed would be most helpful.

Thanks in advance,
	Matt LaMantia

	matt@harvard.edu




Newsgroups: comp.windows.x
From: jamesb@ee.mu.OZ.AU (james edward bonifazio)
Subject: RE: Binary File Viewer for X?
Organization: Electronic and Electrical Engineering - University of Melbourne 
Date: Tue, 21 Jul 1992 08:33:02 GMT



    I have just begun ( 2 weeks  ago ) writing the very thing. I too was
unable to find such a utility, so set about filling the VOID myself. It is
to be a Hex Viewer/Editor with a difference.

    Alas it remains in pre-BETA stages, as i have begun my 2nd Semester,2nd
year in Electrical ( Computer ) Engineering, and as such cannot devote it my 
undivided attention. (approx 3 hours /week)

    It will encompass many functions, least of which will be the GUI interactive
Byte/Byte editing, string searching and replacing etc. The intial platform
will be Sun's XView using OpenLOOK ( I have unlimited acces to SPARCS ), but i
have since begun porting the initial stages to DECstations as well (OSF/Motif).

    Eventually it will comply to ICCCM and the modifications for each GUI will
be neatly compiled into the SKELETON source.

    The Main FEATURE is the inclusion of a simple SCRIPT langauge interfaced to
the program. The SCRIPT's will serve as a modification procedure for a file on 
a BYTE level! Such routines as changing headers, revamping the file for picture
format conversions, editing out newline characters etc can be written in SCRIPT
and stored in database fashion to be called later. Headers can be 'learned' 
such as those of "BRAIN FILES" for virus checkers.
    The result is a "ONE STOP" converting program which can be universal and
grow with the additions of more SCRIPTS.

If someone feels this is a reasonably good idea and decides to write a utility
along these lines, i would very much like to be involved in the development.
Time may be on there side.

Eric: I do in fact have a HEX viewer i wrote myself, which works very much like
the UNIX 'more' command. Email me and i shall send it to you!

P.S
I am looking for VOCATIONAL ( WORK EXPERIENCE ) in the Compter(Engineering)
field during December 1992-February 1993 (3 - 6 weeks), or 3 weeks in June 
1993. (Preferably in the United States ).
If any one knows of such a position or has one available , please
email me;


email: jamesb@munagin.mu.OZ.AU
snail: 451 Brunswick Rd,
       Brunswick 3056,
       Melbourne VIC,
       AUSTRALIA.
VOICE: +61-3-380-6715
From: dph1kg@durham.ac.uk (Karl Glazebrook)
Newsgroups: comp.windows.x
Subject: Shifted keys
Date: 22 Jul 92 12:18:04 GMT
Reply-To: dph1kg@durham.ac.uk
Organization: Department of Physics, University of Durham


How on a sun-4 keyboard can I set it up so that pressing shift-uparrow in an xterm
gives me the proper vt 100 sequence for this key, while unshifted it works normally.

I've tried 

    ~Shift<Key>KP_9:          string(0x1b) string("Ox") \n\

But it doesn't seem to work. 

Thanks,

Karl.

---
------------------------------------------------------------------------------
| Karl Glazebrook,      |    JANET:   kgb@uk.ac.dur.star                     |
| Dept. of Physics,     | INTERNET:   kgb%star.dur.ac.uk@nsfnet-relay.ac.uk  |
| University of Durham, |       or:   Karl.Glazebrook@durham.ac.uk           |
| United Kingdom.       |     SPAN:   19463::DUVAD::KGB                      |
------------------------------------------------------------------------------
Newsgroups: comp.windows.x
From: nosmo@ximage.COM (Vince Kraemer)
Subject: Getting DIRT(y)
Reply-To: nosmo@ximage.com
Organization: The Internet
Date: Mon, 20 Jul 1992 17:07:12 GMT

I have seen references to the UI builder (??) DIRT in some of the files
associated with Wcl.  I am interested in finding out more about it or
other UI builders which support Wcl.

Thanks
vbk
From: klute@tommy.informatik.uni-dortmund.de (Rainer Klute)
Newsgroups: comp.windows.x
Subject: Re: X Font problem in x3270
Date: 27 Jul 1992 07:44:45 GMT
Organization: Dortmund University, Germany
Distribution: world
NNTP-Posting-Host: tommy
Keywords: X11R5, Fonts, Suns

In article <generous.712068390@nova>, generous@sti.nasa.gov (Curtis
Generous) writes:
|> I am getting the error: 'Warning: Cannot convert string "3270" to type
|> FontStruct' when
|> running x3270.  No characters appear on the window.  The procedure used
|> to install the
|> 3270 font was (taken from the Makefile):
|> 
|> 	    bdftosnf -t 3270.bdf >3270.snf
|> 	    for i in 3270.snf; do\
|> 		    (set -x; install -c  $i /usr/lib/X11/fonts/misc);;\
|> 	    done
|> 	    mkfontdir /usr/lib/X11/fonts/misc
|> 
|> The fonts.dir file was properly updated, and all permissions look okay. 
|> Any ideas?

After you have installed the 3270 font in /usr/lib/X11/fonts/misc the X
server does not know about it until you tell it to reread its font
directories: xset fp rehash.

-- 
  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
Newsgroups: comp.windows.x
From: mirek@unixg.ubc.ca (Miroslaw Piaseczny)
Subject: Local Bus X386 configuration - help needed
Organization: University of British Columbia, Vancouver, B.C., Canada
Date: Wed, 29 Jul 1992 18:17:34 GMT

Has anyone successfully completed the X386 installation    
for local bus video card? 

I have GA-200 Local Bus ET4000 card (1MB) installed on 50MHz 486,
and Aamazing monitor (Horizontal: 31.5/35KHz,
                      Vertical 60/70 Hz (31.5KHz)
                               56/87 Hz (35KHz).

My problem seems to be in finding the correct clock timings. 
The DOS utility program (dmode.com) shows the following:
       50 57 65 72 80 90 101 130

However, when I run clock.exe, for some reason I get different numbers.
What's even worse, each clock.exe run shows different readings.

I've tried some of them to get the horizontal and vertical timings, 
but couldn't get it right.
 
Any ideas?

Thanks in advance

Mirek Piaseczny
University of British Columbia
mirek@unixg.ubc.ca
From: thoth@wave.cis.ufl.edu (Robert Forsman)
Newsgroups: comp.windows.x
Subject: Re: Kills from Window Manager (not supported in Xt, bloody hell)
Date: 23 Jul 92 15:42:38 GMT
	<1992Jul18.132220.18254@thunder.mcrcim.mcgill.edu>
	<1992Jul19.104259.6128@pictel.com>
Organization: Church of Homogeneous Foods (Rev. Forsman founder)
In-reply-to: oj@pictel.com's message of 19 Jul 92 10:42:59 GMT


> If you're using OSF/Motif, OLIT, XVIEW, or OI, you don't have to worry
> about this--the toolkit handles it.  If you're using Athena, it takes
> less than a dozen lines of code to get this right.

  Actually, I modified the Shell.c source from Xt to support _all_
"protocols".  I wonder if MIT would be interested.  It would
definitely make it much easier to write polite programs.

  I find it a little strange that MIT documented it in the R4 ICCCM
and hasn't provided even the tiniest bit of support in their sample
toolkit yet.  (It's a real simple modification to the WmShell widget.
--
Eat now this hot-dog with ketchup, flesh of his flesh, blood of his blood.
I deal with Reality as you _don't_ understand it. 
blah = realloc(blah, sizeof(*blah)*(blahsize*=2)); /* (TM) */
Newsgroups: comp.windows.x
From: sinan@mtesol.boeing.COM (Sinan Karasu)
Subject: Memory leaks
Organization: The Internet
Date: Wed, 29 Jul 1992 17:38:24 GMT

 When is a memory leak a memory leak. If I do many malloc's with
no dalloc's , does the memory remain leaked when the program exits?
Is the answer different in different OSs such as Sun,SCO etc... ?
Sinan
Newsgroups: comp.windows.x
From: pfferrei@laplace.uwaterloo.ca (Paulo Ferreira)
Subject: X resources
Organization: University of Waterloo
Date: Tue, 28 Jul 1992 15:41:14 GMT


Could someone give be a brief explanation of resources.

Specifically, I don't  understand why some resources use a '*' and other
use '.' as separator characters.

Secondly, is the format for .Xresources and .Xdefaults files the same?

I read some books that talked about this topic but didn't explain the 
above well enough for me...

Thanks.

---
|    Paulo F. Ferreira                         | University of Waterloo |  
| E-MAIL: pfferrei@undergrad.math.UWaterloo.ca |    Waterloo, Canada    |
\______________________________________________|________________________/
From: mfg@castle.ed.ac.uk (M Gordon)
Newsgroups: comp.windows.x
Subject: SUMMARY: Building a server without PEX
Date: 22 Jul 92 07:44:03 GMT
Organization: Edinburgh University

Original problem:  I added "#define BuildPex NO" to site.def as the
release notes said and recompiled, but I still got a server with PEX.

Answer:  As several people said, I had to add the lines

    #ifdef BuildPexExt
    #undef BuildPexExt
    #endif

to site.def.  BuildPex just turns of the building of the PEX libraries and
clients.  Is this documented anywhere?

Thanks to
    gdrm@dcs.ed.ac.uk
    simon@lia.di.epfl.ch
    lfs@d62bonk.mitre.org
    khera@cs.duke.edu
    kaleb@thyme.jpl.nasa.gov
    spz@speklec.mpifr-bonn.mpg.de


-- 
                                                         _   _   _    _   _	
Michael Gordon - mfg@castle.ed.ac.uk OR ee.ed.ac.uk     | |_| |_| |__| |_| |   
EE Dept, Edinburgh University                           | . . . .      . . |    
It's not an optical illusion, it just looks like one    |_________|~~|_____|    
Newsgroups: comp.windows.x
From: ware@organ.cis.ohio-state.edu (Peter Ware)
Subject: Re: Xt and Signals Re-Re-Re-Revisited
Originator: ware@organ.cis.ohio-state.edu
Organization: Ohio State Computer Science
Distribution: usa
Date: Mon, 27 Jul 1992 19:21:18 GMT

It looks good.
1. I'd include a caveat about the process deadlocking if
   there are a lot of signals and the pipe fills up.  
2. Mention that you are using two file descriptors for the pipe.
3. Pass in the application context to x_signal() so you don't need a
   global TopLevel.
4. Consider making it more Xt'ish and allowing some private data to be
   associated with each signal handler.
5. Consider making it very Xt'ish and allow each signal to have a
   callback list associated with it so multiple functions can be
   called per signal.

--pete
--
Pete Ware / Ohio State University /
           ware@cis.ohio-state.edu
           (614) 538-0965
Too bad the Nike slogan isn't "Just Do It Right" instead of "Just Do It"
Newsgroups: comp.windows.x,comp.sys.sun.hardware