HDTenEightyP/NetNews huggingface dataset:
From: bet@sbi.com (Bennett E. Todd @ Salomon Brothers Inc., NY )
Newsgroups: comp.windows.x
Subject: Re: 256 grayscale levels with standard colormap
Keywords: Colormap Grayscale
Date: 4 Sep 92 17:12:53 GMT
Organization: Salomon Brothers, Inc.

In article <1992Sep2.040959.16164@walter.cray.com> vincent@cadillac.cray.com (Vincent LE BARAZER) writes:
>[...]
> I'd like to create an X application that draw lines of pixels, with
>color level from 0 to 255 in a Grayscale visual.
> This application has to work either on 8 planes grayscale servers or
>on 24 planes color server.
>[...]

I did some image processing program development in my last job. We were
running MIT X11R4 on Suns, with 8-bit color framebuffers plugged into
greyscale monitors.

We could only find two alternatives for greyscale image display. We could
allocate a 256-color grey ramp, and have the colors get all hosed whenever
the mouse moved in or out of the application. Or we could allocate a smaller
one and leave room in the system colormap for the rest of the applications.

We ended up using a 128 entry greyramp for our image display, and it worked
fine. More important than halving the interval between adjacent colors, was
making sure the available range is well used. A gamma slider is
_terrifically_ useful in an image display program. In fact, we had
previously done contrast enhancement with ``window/level'' controls ---
rescaling the greyscale so only a portion of the whole image's range is
expanded out to cover black to white, truncating anything outside that
range. When I added the gamma slider the window and level controls saw very
little use.

I wrote my programs originally in sunview, then ported to XView.

-Bennett
bet@sbi.com
Newsgroups: comp.windows.x
From: oaf@vingmed.no (Ole Asbjorn Fadum)
Subject: (none)
Organization: The Internet
Date: Tue, 8 Sep 1992 11:07:09 GMT


Hi

Is it possible to listen to the information excanged between
xrdb and an application?

My problem is that I want to customize a popup window in a
given application but I don't know what the name is.

My thought was that if you could see what resources the
application requests it's easier (not easy) to find the
resource responsible for the wanted popup.

ole asbjorn fadum (oaf@vingmed.no)
Newsgroups: comp.windows.x,comp.windows.x.apps
From: bzs@ussr.std.com (Barry Shein)
Subject: Re: Attention Earthlings -- Cross-Vendor X11 Server Mess!
Organization: The World
	<1992Sep3.230804.16736@thunder.mcrcim.mcgill.edu>
Date: Mon, 7 Sep 1992 23:28:35 GMT


I think a lot of your comments amount to ``I don't need this to be
right, so what's the BFD?'' Well, you have to put yourself into a
position where an application does need this right, read on.

From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
>The keyboard doesn't generate both a and A.  It generates events for
>the shift key and events for the A key.  It is the client's job,
>typically via XLookupString, to convert A-key-with-shift-down into an
>"A" character and A-key-with-shift-up into an "a" character.  If it
>wants to convert them to characters at all, that is; not all
>applications do.

From xev tracing (RS6000):

KeyRelease event, serial 15, synthetic NO, window 0x1000001,
    root 0x8006b, subw 0x0, time 2939252975, (7,71), root:(18,105),
    state 0x0, keycode 39 (keysym 0x61, a), same_screen YES,
    XLookupString gives 1 characters:  "a"


KeyPress event, serial 15, synthetic NO, window 0x1000001,
    root 0x8006b, subw 0x0, time 2939255405, (7,71), root:(18,105),
    state 0x1, keycode 39 (keysym 0x41, A), same_screen YES,
    XLookupString gives 1 characters:  "A"

[I realize this varies from server to server, that's another
indication of the nature of the problem.]

Notice that although LookupString() returns "a" and "A" respectively,
as you predicted, and the shift key is noted (state 0x0 vs 0x1) it
still thought that the KeySym needed to be changed for each event for
the same keycode (0x61 vs 0x41.)

I think you might be missing the subtlety of the botch, you need to
turn the problem around. It's not "do I get a reasonable response when
I push this key", it's "can I anticipate what I will get when keys are
pressed".

The latter is a problem for a different kind of application than the
former solves. The former mostly works, the latter is mostly a mess,
fuzzy and indeterminate.

If you're still having trouble with the distinction, imagine that what
your application is trying to do is set the XLookupString() for all
the possible keysyms (e.g. change the type-in font.) If you tried this
(particularly across a few servers) you'd find that it's a mess unless
you applied heuristics of various types.


--
        -Barry Shein

Software Tool & Die    | bzs@world.std.com          | uunet!world!bzs
Purveyors to the Trade | Voice: 617-739-0202        | Login: 617-739-WRLD
Newsgroups: comp.windows.x
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Subject: Re: fastest way to OR a bitmap to the screen?
Organization: McGill Research Centre for Intelligent Machines
Date: Thu, 10 Sep 92 19:30:09 GMT

In article <1992Sep8.031815.21703@bohra.cpg.oz.au>, als@bohra.cpg.oz.au (Anthony Shipman) writes:

> I have an application that draws text on the screen from a custom
> font represented as a set of bitmaps.  For speed I cache the font as
> a collection of pixmaps in the server and copy them to the screen.  I
> need to be able to overprint so I want to "OR" the foreground pixels.

> If bg=0 and fg!=0 then I can do this by copying with GXor.  If bg!=0
> and fg=0 I can use GXand.  Otherwise what?

It is not, in general, possible to do this with a single operation.
That's why xdvi has a -thorough option.  To get it right you have
multiple options.

1) Work in a bitmap, not the window, doing everything the easy way, but
   when you change the bitmap you use XCopyArea to copy from the bitmap
   to the window, expanding to full depth and drawing in the correct
   colors at once.

2) Draw characters by setting them as clip-masks, or as stipples with a
   fill-style of FillStippled, in the GC.  As you point out, this means
   changing the GC for every character.

3) Do two operations instead of one.  For example, first do GXand with
   fg = 0 and bg = ~0, then GXor with fg = your foreground color and
   bg = 0.  (This does *not* mean changing your GC for every character;
   you can just keep two GCs around, since neither one needs changing
   per-character.)

Note also that fg=0 and bg=0 are not the only cases where you can do
the drawing with a single call: you can do it whenever either fg&~bg is
zero or bg&~fg is zero.

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
Newsgroups: comp.windows.x,comp.human-factors,alt.religion.computers,comp.editors
From: mahan@TGV.COM (Patrick L. Mahan)
Subject: RE: Problem with Xlib
Organization: The Internet
Date: Tue, 15 Sep 1992 17:40:01 GMT

#
#I'm suddenly into XLIB programming. I'm getting a simple 
#graph out, but I would like to control the size of the window
#by a statement like *Xlib*Geometry: 300x300+0+0 in my
#.Xdefaults file . I would like this to override the WIDTH and
#HEIGHT values I supply in the XCreateSimpleWindow call, but this
#is not happening when I print out the values of width, height
#returned by XGetGeometry. Instead the values returned are what
#I specify in my XCreateSimpleWindow call. What do I need to do
#to have the window size specified in the .Xdefaults file
#override that in the program.  I don't think there is a
#mistake in my .Xdefaults file, the name of the application is
#Xlib as specified in a call to XSetStandardProperties. I'm 
#using Openwindows 3. THANKS.
# 

This is becauses resouces are NOT automatically handled for you at the
Xlib level.  Resouces where basically developed for use with Xt based 
applications but the routines where moved into the Xlib to help with
some problems with the error database.  You will need to explicitly 
call the Xrm routines yourself to access these values.

Patrick L. Mahan

--- TGV Window Washer ------------------------------- Mahan@TGV.COM ---------

Waking a person unnecessarily should not be considered  - Lazarus Long
a capital crime.  For a first offense, that is            From the Notebooks of
							  Lazarus Long
Xref: sparky comp.windows.x:16454 comp.windows.x.motif:6104 comp.windows.x.intrinsics:255
From: klute@heike.informatik.uni-dortmund.de (Rainer Klute)
Newsgroups: comp.windows.x,comp.windows.x.motif,comp.windows.x.intrinsics
Subject: Re: Colormap stuff
Date: 10 Sep 1992 10:06:59 GMT
Organization: CS Department, Dortmund University, Germany
Distribution: world
NNTP-Posting-Host: heike
Keywords: color

In article <1992Sep10.081257.29422@SSD.intel.com>, bernhard@ssd.intel.com
(Bernhard Ries) writes:
|>For example, if I run ghostscript, the number of
|> colorcells available for my application is reduced by quite a bit. The
|> only
|> way to fix this that I know of is to restart the X-window server.
|> 
|> Does anybody know what the reason for this behavior is or if there is
|> any
|> way to work around it?

I suppose you run Ghostscript via GhostView, right? GhostView by default
installs a standard colormap, which can be removed by "xstdcmap -delete
default". There's a GhostView resource to circumvent the standard colormap
installing.

-- 
  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: tom@uts.cc.wayne.edu (Thomas Richard Stevenson)
Subject: Re: Release of aXe 3.1
Organization: Wayne State Univ.
Date: Tue, 15 Sep 1992 15:11:14 GMT

I installed the lastest version of aXe 3.1 from export.lcs.mit.edu,
and I am still having the same problem as I have with every other
version of aXe I've tryed. The variable CLASS(show_menu) is always
set to 0, which causes aXe not to work correctly (core dumps after
starting). I'm at X11R4, and am running SVR3.something, so this might
be my problem. The vendor will have SVR4 out sometime very soon, but 
not yet. My C-programming is very poor, and my X-programming is even
less, so I'm having a hard time determining why CLASS(show_menu) isn't
getting reset. I've put some traces in, and I can tell that MakeMenu
was called to reset CLASS(show_menu), I haven't been able to determine
if MenuMake (called by MakeMenu) is called, but assuming it has, a return
of 0 from MenuMake would also return a 0 from MakeMenu, which would explain
why CLASS(show_menu) has a value of 0. Could someone explain what MenuMake
is doing, and explain why it would fail (I assume a return of 0 means it
failed)? One other question, MenuMake references a variable popup_list. 
I've done a grep on every program in aXe, and nothing initializes this 
varaible. How can MenuMake reference a variable that was never initialized?
This might be the X11R4/SVR4 problem the author was talking about. Thanks!
Newsgroups: comp.windows.x
From: witr@rwwa.COM (Robert Withrow)
Subject: Xauth and remote applications
Reply-To: witr@rwwa.com
Organization: R.W. Withrow Associates
Distribution: usa
Date: Tue, 15 Sep 1992 18:15:50 GMT

I've read the faq and the manual pages but I'm stumped.  I want to run
application A on host B and use the display on host C.  Can someone
tell me:

  1) What Xauth machinations I need to perform on hosts B and C,
  2) What else I need to do (e.g., options to the applications, etc...), and
  3) What references whould discuss this adequately.

Thank you kindly!

-- 
 Robert Withrow, Tel: +1 617 598 4480, Fax: +1 617 598 4430, Net: witr@rwwa.COM
 R.W. Withrow Associates, 21 Railroad Ave, Swampscott MA 01907-1821 USA
From: klute@tommy.informatik.uni-dortmund.de (Rainer Klute)
Newsgroups: comp.windows.x
Subject: Re: Xlib - C Language X Interface, where?
Date: 11 Sep 1992 07:58:30 GMT
Organization: CS Department, Dortmund University, Germany
Distribution: world
NNTP-Posting-Host: tommy

In article <1992Sep11.010408.17625@mailhost.ocs.mq.edu.au>,
s8923098@macnab.mqcs.mq.oz.au (Josef WIDJAJA) writes:
|> In article <18n56rINN2df@fbi-news.Informatik.Uni-Dortmund.DE>
|> klute@heike.informatik.uni-dortmund.de (Rainer Klute) writes:
|> |
|> |Two quotes from "Xlib - C Language X Interface, MIT X Consortium
|> Standard,
|> |X Version 11, Release 5" should answer your questions:
|> 
|> Can anyone tell me where I can get this by anon. ftp? I read somwhere
|> that this should be available in the standard X release from MIT.

The current X11 release including all the documentation is available in an
unpacked form at export.lcs.mit.edu. Look into /pub/R5untarred/mit/doc and
its subdirectories! Within Xlib you will find the document I quoted from.

-- 
  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: quandt@mcs213e.cs.umr.edu (Brian Quandt)
Subject: X11R5 binaries
Date: Sat, 5 Sep 1992 02:17:50 GMT
Organization: University of Missouri - Rolla

gain I'm looking for binaries for some strange machine.  

Has anyone seen X11R5 binaries for Lynx (a PC running Lynx)?

The Lyns OS comes with X11R4,  i.e., they have not upgraded their release
yet.  

				Brian Quandt
Newsgroups: comp.windows.x
From: BEN@zis.ziff.COM (Ben Alexander)
Subject: Looking for an expedient method to select multiple items in a list box
Organization: The Internet
Date: Wed, 9 Sep 1992 19:30:00 GMT


I'm trying to isolate the source of a problem, and would appreciate
any assistance.

I'm using DEC's X-Window implementation (DECWindows, VMS 5.4), and I'm
experiencing some difficulty.  I'm trying to select every item in a
reasonably small list box (less than 400 items), and the process is
extremely slow (maybe 5 or 10 minutes).  I've tried using toolkit
level routines, as well as using XtSetValues, but I have yet to 
find a technique that provides a useable response time.  My question:
Is DEC's implementation at fault, or is X simply very slow at selecting
multiple items in a big list box, or am I doing something stupid?

                                  -Ben
                                  ben@zis.ziff.com
From: mramos@dtc.uvigo.es (Manuel Ramos Cabrer)
Subject: Unsubscribe
Organization: The Internet
Date: Mon, 7 Sep 1992 20:22:19 GMT


	Please unsubscribe me. Thank you.
From: kk@hpl-opus.hpl.hp.com (Konstantinos Konstantinides)
Newsgroups: comp.windows.x
Subject: Re: Tree Layout/Display Algorithm(?)
Date: 9 Sep 92 22:25:17 GMT
Organization: HP Labs, High Speed Electronics Dept., Palo Alto, CA

In comp.windows.x, savchenk@cgi.COM ("Alex Savchenko") writes:

> 
> Did anybody come across an article about (or source  code of :) an
> algorithm that allows efficient layout/display/editing of a grahical
> presentation of a tree-like structures in the window?
> 
> Thanks in advance,
> 
> 	- Alex.
> 
> 
Check the tree widget in Young's Book "X window system programming
and applications"

KK
From: mark@ucsb.edu
Newsgroups: comp.windows.x
Subject: Can you run X over a serial line?
Date: 11 Sep 92 02:37:54 GMT
Distribution: usa
Organization: University of California, Santa Barbara

Has anyone out there experimented with running an X application on a SPARC 2
using modems?  My boss wants me to connect a pair of SPARCs together with a pair
of 19.2K modems using ppp.  My first thought is that there isn't enough
bandwidth.  Any thoughts?

Thanks,
Mark Probert
From: taylor@foraker.tivoli.com (Eric Taylor)
Newsgroups: comp.windows.x
Subject: Re: XPutPixel and and XGetPixel and image layout
Date: 11 Sep 92 14:00:54 GMT
Organization: TIVOLI Systems, Inc.

In article <1992Sep9.130723.9938@city.cs>, lionel@cs.city.ac.uk (Lionel Tun) writes:
|> Re: The discussion about using images directly rather than going
|>     through XPutPixel.
|> 
|> I also would like to simply load the raw data into an array and
|> display it in a window - simple no?
|> 
|> I tried the following but got structured garbage instead of my
|> graphic:
|> 
|> 	xi = XCreateImage(display, DefaultVisual(display, screen_num),
|> 		1, XYBitmap, 0, image, width, height, 8, 0);
|> 
|> 	XPutImage(display, win, gc, xi, 0,0, 0,0, width, height);
|> 
|> image is an array holding the data
|> the platform is a b+w Sun 4 running OpenWindows
|> 
|> 
|> I have tried dozens of combinations and permutations - am I doing
|> something totally silly? I have scoured Adrian Nye vols 1 and 2 but
|> they don't give much away.

Look at the code for XCreateBitmapFromData in the X library.
It will give you a hint.

You have to worry about byte and bit ordering and change their
values in the XImage structure AFTER you have created the XImage.
From: bhilt@amd-1s.hac.COM (Brian Hiltscher (DSS))
Newsgroups: comp.windows.x
Subject: Unsubscribe
Date: 10 Sep 92 14:52:52 GMT
Article-I.D.: amd-1s.9209101452.AA12610
Organization: The Internet

Please unsubscribe me.  Thank You
From: rjc@cogsci.ed.ac.uk (Richard Caley)
Newsgroups: comp.windows.x
Subject: Re: Questions regarding TVTWM
Date: 8 Sep 92 18:36:24 GMT
	<1992Sep6.061200.14854@thunder.mcrcim.mcgill.edu>
	<amoss.715949819@falafel>
Organization: Human Communication Research Center
In-reply-to: amoss@huji.ac.il's message of 8 Sep 92 10:56:59 GMT

In article <amoss.715949819@falafel>, Amos Shapira (as) writes:

as> What I would really like to have in tvtwm is that it wouldn't
as> obscure the real root so no-one should know about it and so I get
as> the same image no matter what part of the virtual root is visible
as> currently (I was thinking while writing this [I sometimes do that
as> :)] and though that maybe a transperant window as the virtual root
as> might do that? What do you think?)

If the virtual root was created with the relevant backing pixmap
setting (ParentRelative?) this will happen I think. It would be easy
to add it as an option if there was a demand. I tried it once, didn't
like it since I like the repeating of the background image as a cue to
where I am on the virtual desktop.

--
rjc@cogsci.ed.ac.uk			_O_
					 |<
From: sinan@Mtesol.boeing.COM (Sinan Karasu)
Newsgroups: comp.windows.x
Subject: how do I load .bmp images ??
Date: 9 Sep 92 17:31:48 GMT
Organization: The Internet


 xloadimage or snapshot says unrecognized image type....
sinan
Newsgroups: comp.windows.x
From: sinan@Mtesol.boeing.COM (Sinan Karasu)
Subject: Re: tutorial of imake
Organization: The Internet
Date: Tue, 15 Sep 1992 19:48:41 GMT

> From: cs000hf@selway.umt.edu (Hong Fan)
> Organization: University of Montana
> Subject: tutorial of imake
> 
> Hi: everybody:
> 
> Does anyone know where to get some tutorials of how to write imake and 
> makedepend file from X? I hereby thank you for the hint. Please mail me
> at cs000hf@selway.ut.edu or hf@huckle.cs.umt.edu
> 

 Many whitepapers are avilable from

 listserv@sunup.west.sun.com

That is the list server that I usually get whitepapers from.

 Try help in the subject line and in the body of message and then
follow instructions....

Sinan
Newsgroups: comp.windows.x
From: jruiz@wm.estec.esa.nl (Jose Ruiz -Student-)
Subject: WANTED (again): function to load an Image file in to a pixmap 
Reply-To: jruiz@wm.estec.esa.nl
Organization: ESA/Estec/WMS, Noordwijk, The Netherlands
Date: Wed, 9 Sep 1992 10:43:47 GMT


Related to my revious request on the subject:

What I need as well is to avoid as much as possible the colormap clash that may result
from loading an bits-color image into my application.

So I suppose compacting the colormap and installing it properly would do the job,
but I have trouble finding out what to do exactly.

Help|Hints|Clues wanted...
Newsgroups: comp.windows.x
From: yuri@physics.heriot-watt.ac.UK (Yuri Rzhanov)
Subject: Text in XView
Organization: The Internet
Date: Sun, 6 Sep 1992 09:06:19 GMT


Hi, Xperts,

I'd like to process the text in Textsw in my own way,
(in other words, to write my own textsw_store_file procedure).
But I can not figure out where the text is stored. Of course
I can maintain my own string containing all the characters
but it will require processing of all arrow keys, delete and
keyboard accelerators, which is nontrivial.

Any pointers are greatly appreciated.

E-mail replies are preferred: yuri@uk.ac.hw.phy

	Thanks in advance, Yuri
Newsgroups: comp.windows.x,comp.windows.open-look
From: andr@elvis.sovusa.com (Andrei Arkhipov)
Subject: "Could not get keyboard type" error. What is it?
Reply-To: andr@elvis.sovusa.com
Organization: ELVIS Corp.
Date: Thu, 10 Sep 92 16:43:03 GMT

Hi.

Sometimes my cron job generates the following message:
"could not get keyboard type US keyboard assumed"

SS1+ with SunOS 4.1.1, type-4 keyboard, OpenWindows 3 running.

Any help appreciated,
               Andrei.
Newsgroups: comp.windows.x,comp.windows.misc,comp.human-factors
From: joet@dcatlas.dot.gov (Joe Trott)
Subject: Re: GUIs Considered Harmful
Keywords: n
Organization: U.S Dept. of Transportation
Date: Fri, 4 Sep 1992 14:23:24 GMT

ematias@dgp.toronto.edu (Edgar Matias) writes:

>The *real* problem is that the keyboard is a two-handed device.
>Engelbart's original intent was that the mouse be used in conjunction
>with a one-handed keyboard.  Unforturnately, most systems do not come
>with one-handed keyboards.  Fortunately, you don't need to buy one to
>achieve the same thing.  There is a software solution to this problem...

I suppose this could work, and fairly well.  I've read about a number of
one-handed alternate input methods.  Unfortunately, it has been a dozen
years since I might have tried something like that.  I have lost
_considerable_ coordination in my left hand (although I still manage 40-50
wpm even on a bad day).  The point of this is something that I am finally
beginning to see in this thread.  *People are Different*.  It may be 'fun'
to enjoy a good flamefest from time to time, but some of the arguments here
are of random validity, depending on to whom they are applied.

This of course won't stop me from a mild slam at the gooey proponents.  I
don't think anyone is attempting to defend the use of GUIs in *applications*
that warrant them, such as graphics tools.  It seems pretty clear to me
that the argument concerns the _operating system_ interface; i.e. how we
run our computers, _not_ individual applications.  Who knows; maybe there's
an application out there whose "best" interface would be a row of
thumbwheels.  I don't think anyone would argue that thumbwheels should
thus also be used as the operating system interface (now watch somebody
try...:-)).  So you needn't waste bandwidth defending the GUI as the
appropriate interface to a Paint program.  

It also seems you are picking on the CLI for faults not of CLIs in general,
but of the lack of standards across CLIs.  That problem is true of GUIs
too, so that one ought to be a wash.  It isn't a CLI problem just because
one uses "erase", another: "kill", and a third uses "destroy" when what they
all mean is "delete (a file)".

-JTT

There can be no undefeated Evil when Reason prevails.

Newsgroups: comp.windows.x
From: oj@miki.pictel.com (Oliver Jones)
Subject: Re: (none)
Organization: PictureTel Corporation
Date: Wed, 9 Sep 1992 17:47:49 GMT

In article <9209081107.AA11744@vingmed.no> oaf@vingmed.no (Ole Asbjorn Fadum) writes:
>
>Is it possible to listen to the information excanged between
>xrdb and an application?

Use xscope or xmon ... ,but I don't think this is what you want.

>My problem is that I want to customize a popup window in a
>given application but I don't know what the name is.

Are you looking for the application class name?
Try this:

    xprop WM_CLASS
    (click on the popup in question)

Out come two strings, the name and class.

>My thought was that if you could see what resources the
>application requests it's easier (not easy) to find the
>resource responsible for the wanted popup.

Try this:

    appres Appclass
Newsgroups: comp.windows.x