acloudfan/newsgroups-mini huggingface dataset:
Newsgroup: comp.windows.x

 Detecting read-only colorcells?
Reply-To: 
Organization: Colorado School of Mines
Lines: 27

[again, poseted for a friend]

Okay, I got such great response from my last question , 
lets try again:

How can I tell if a colorcell is read-only?

I want to use any read-only cells that are already in my colormap
once I start running out of allocatable cells, using some arbitrary
nearest color matching scheme to get those cells that come closest to
a requested color.

Once I determine if a cell is read-only, I assume I can then just request
an XAllocColor with the exact same color specifications and it will 
then be flagged as 'used' by my application so that it doesn't later get
freed by someone else and allocated again as read-write to another
application.

So far, the only way I've figured out to do this is to write my own
error handler and just go ahead and request the cells colors, once my
colormap is all full up.  It should error out if the cell is non-shareable.
But life would be much easier if I could just detect the
read-only/shareable stuff directly...

Any ideas?

Noel
Newsgroup: comp.windows.x

 **** CURSOR SIZE PROBLEMS ****
Organization: Computer Science, Liverpool University
Lines: 19
Nntp-Posting-Host: jed.csc.liv.ac.uk

/* Apologies for those who have read this before but no-one has solved this */
/* one yet so I'm posting again! Sorry :-)                                  */

I'm having problems creating a cursor bigger than 64x64, I'm using Motif 1.1
X11R4 running HP-UX 8.07 - all the functions return valid results but no
cursor appears when the bitmap is bigger than the aforementioned size. I tried

using the following code:

unsigned int w,h;
XQueryBestCursor(XtDisplay, XtWindow, 72, 71, &w,
&h);

to return the nearest size to what I require however it returns 72 and 71 as
the width and height respectively. What am I doing wrong? and if not how can I
get round the problem!!

Thanks in advance
Mike
Newsgroup: comp.windows.x

 Re: Animation with XPutImage?
Nntp-Posting-Host: suw3v.ess.harris.com
Reply-To: 
Organization: Sun Microsystems, Inc.
Lines: 39

> Hi, I'm new to this group so please bear with me!
> 
> Two years ago I wrote a Sunview application for fast animation
> of raster files. With Sunview becoming rapidly obselete, I've
> finally decided to rewrite everything from scratch in XView.
> I put together a quick test, and I've found that XPutImage
> is considerably slower  than the
> Sunview command pw_rop which moves image data from memory
> pixrects to a canvas. This was on a Sparc IPX. It seems that:
>  the X protocol communication is slowing things down; or
>  XPutImage is inefficient...or both! My question is, what
> is the fastest way in X11R5 to dump 8 plane image data to
> a window? Can I take advantage of the fact that the client is
> running on the same machine as the server? Or am I stuck with
> XPutImage ?
> 
> All help appreciated...thanks!
> 
> Derek
> 
>In article ,   writes:
 -----------------------------------------------------------
> | Derek C. Richardson    | Tel:  337548 x 37501     |
> | Institute of Astronomy | Fax:  337523             |
> | Cambridge, U.K.        |                                |
> | CB3 0HA                | E-mail:  |
> -----------------------------------------------------------
> 



Animation is most frequently done by copying the the client resident XImages into 
server resident Pixmap using XPutImage.  Once this is done, the original XImages
can be deleted and the animation loop can be performed using XCopyArea from the Pixmaps to the windows drawable.

Hope this is helpfull.

John
Newsgroup: comp.windows.x

 Fresco status?
Organization: NeoSoft Communications Services --  684-5900
Lines: 15

I've been hearing rumblings about Fresco, and it sounds like it may be
what I'm looking for, but how far is it from release, or at least some kind
of availability?  How similar is it to InterViews?  If I code to InterViews,
will my code work with Fresco?  How about Motif?  I've heard some mention
of versions of InterViews which support Motif.  Will it be feasible to use
Motif with Fresco?

Any information would be much appreciated.

- Brad
-- 
Brad Daniels		`	|  "If money can't buy happiness,
		|   I guess I'll have to rent it."
I don't work for NeoSoft, and	|		- Weird Al Yenkovic
don't speak for my employer.	|
Newsgroup: comp.windows.x

 Re: Title for XTerm
Keywords: XTerm
Nntp-Posting-Host: eos6c02.ericsson.se
Reply-To:  
Organization: Ericsson Telecom AB
Lines: 21

In article <>
  writes:
[...]
|> I have an
|> 
|> 	alias precmd echo -n '^[]2\;${HOST}:$cwd^G'
|> 
|> in my ~/.tcshrc. This is a special alias for tvtwm. 

I presume that you meant to say tcsh here ------^^^^^

-- 

Michael Salmon

#include	<standard.disclaimer>
#include	<witty.saying>
#include	<fancy.pseudo.graphics>

Ericsson Telecom AB
Stockholm
Newsgroup: comp.windows.x

 Xterm Problem With Input Focus / "Shuffle Up"
Keywords: Xterm, Tektronics, Input Focus, Shuffle up
Organization: Eastman Kodak Company, Rochester NY
Lines: 41
Nntp-Posting-Host: b56vxg
News-Software: VAX/VMS VNEWS 1.41


The situation: running a Fortran executable that creats an Xterm.  An option
in the menu contained in the Xterm runs a Fortran subroutine that creats
a Tektronics-mode Xterm for displaying some graphics.  Typing a <RET> while
the Tektronics-mode Xterm  is
active makes the Xterm read future keystrokes but does not shift input focus
to the Xterm   

The xterm can be brought to the top by clicking the mouse button on it.

Subsequent selections from the Xterm of the menu item that displays graphics 
highlihts the border and displays the updated graphics, but does not move 
the Tek-term to the top.  If the Tek-term has been iconized to conserve 
screen space, it stays an icon.


The desired behavior: one of two options - 

    1. Whichever of the windows that is active is always on top of the 
       inactive one.

    2. Whenever the Tek-term is inactivated, it should revert to a icon
       but when it is activated it should become a window on a higher 
       level than the Xterm.

What I think I need: a means of specifying that a Xterm or Tek-term will
be at the highest level and a way to iconify/expand a Xterm and Tek-term.
These commands, would, I'd guess, need to be in the Fortran or in the 
command that starts up the Xterm and Tek-term.

Other information: All this is taking place on a VT-1300  connected to a VAX running VMS and Motif.

Thanks for your time.  If you've got any words of wisdom , please send email to
Newsgroup: comp.windows.x

 RE: Sunview -> X
Organization: The Internet
Lines: 26
NNTP-Posting-Host: enterpoop.mit.edu
To: , 

#
#No doubt this is an old question, but I didn't find the answer in the
#FAQs I could find, so - here goes:
#
#I have a Sunview application that I want to convert to X . I remember hearing quite some time ago that there
#are tools to accomplish this task.
#
#	a) is that so?
#	b) are they public domain?
#	c) any good, i.e.
#	d) advantages over reimplementing the interface myself?
#

The simple answer is for you to obtain use XView to do this.  XView is a
one to one replacement for Sunview.  It should already be provided with
you Sun running OpenWindows.   It is also free available as part of the
contrib side of the MIT X11R5 release.

Patrick L. Mahan

--- TGV Window Washer -------------------------------  ---------

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
Newsgroup: comp.windows.x

 Re: creating a GIF file.
Lines: 29
Organization: Delft Hydraulics

In article <>   writes:
>Path: wldelft.nl!sun4nl!mcsun!uunet!gatech!enterpoop.mit.edu!INTERNET!news-mail-gateway
> 
>Newsgroups: comp.windows.x
>Subject: creating a GIF file.
>Date: 26 Apr 1993 10:43:28 -0400
>Organization: The Internet
>Lines: 12
>Sender: 
>Message-ID: <>
>NNTP-Posting-Host: enterpoop.mit.edu
>To: 
>
>	We are looking for a X client which can convert a xwd or a bitmap
>file into a gif file for use on a Macintosh.
>
>	Thanks
>
>		
>		Laurent MICHEL
>		CRN - GTI
>		BP 20
>		67037 STRASBOURG cedex 
>		Phone  88 28 62 76

Just look at the pbmplus package; it does everything you could ever ask
for in converting pbm to almost any format 

Arno Duijndam
Newsgroup: comp.windows.x

 Re: tvtwm & xsetroot, X11R5 and SPARCstation 10 keyboard
Organization: Personal Usenet site, Tujunga, CA USA
Lines: 89
Distribution: world
NNTP-Posting-Host: isolar.tujunga.ca.us

In article <1r1q5g$>   writes:
>In article <>  writes:
>>  Environment: Sun SPARC 10, SunOs 4.1.3.  X11R5 patch level 23.  My X
>>process is started by xdm.
>
>Okay, that's good.  I'm typing this from exactly the same setup.
>  I did install the sunkbd patch, though.
...
>> ii) When I open an Xterm on the Sparc 10, not all of the keys are recognised
>>     and some keys on the keyboard are not sending the correct characters.
>
>Did you install the sunkbd patch?  It's in the contrib directory on export.
>All the keys on my keyboard send events properly, except the following:
>The End, PageUp, PageDown on the 6-key cluster aren't recognized.
>Even the compose key works.  
>
>Anyone have a fix for the last two?

I don't know anything about a "sunkbd" patch, but I use the following
.Xmodmap file  for
my Type-5 UNIX keyboard:  

------------------------------------------------------------------------------
!
! Sun Type-5 UNIX keyboard remappings 
!
! This remaps the arrow keys properly
!
! By default, the arrow keys on the keypad  work, but the arrow keys are not
! assigned to any keysym
!
keycode 27 = Up
keycode 31 = Left
keycode 34 = Down
keycode 35 = Right

!
! Now we want the Back Space key to emit the "Delete" keysym
!
keycode 50 = Delete

!
! Other random mappings that aren't on by default
!
! SysRq/Print Screen key
keycode 29 = SunSys_Req Print
! Break/Pause key
keycode 28 = Break Pause
! Alt Graph key
keycode 20 = Mode_switch
! PageUp key
keycode 103 = Prior
! PageDown key
keycode 130 = Next
! Insert key
keycode 51 = Insert
!
! Home, End keys = ???
!
! Open Look Functions
!
! Stop key 
keycode 8 = SunStop
! Again key 
keycode 10 = SunAgain
! Props key 
keycode 32 = SunProps
! Undo key 
keycode 33 = SunUndo
! Front key
keycode 56 = SunFront
! Copy key
keycode 58 = SunCopy
! Open key
keycode 79 = SunOpen
! Paste key
keycode 80 = SunPaste
! Find key 
keycode 102 = SunFind
! Cut key
keycode 104 = SunCut

-- 
	- Greg Earle
	  Phone:  353-8695		FAX:  353-1877
	  Internet: 
	  UUCP: isolar! a.k.a. ...!elroy!isolar!earle
Newsgroup: comp.windows.x

 Re: tvtwm & xsetroot, X11R5 and Sparc 10 keyboard
Lines: 26
NNTP-Posting-Host: rainbow.in-berlin.de
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

  writes:

>Did you install the sunkbd patch?  It's in the contrib directory on export.
>All the keys on my keyboard send events properly, except the following:
>The End, PageUp, PageDown on the 6-key cluster aren't recognized.
>Even the compose key works.  

>Anyone have a fix for the last two?

fix the table in .../X11R5/mit/server/ddx/sun/ or
use xmodmap.

put
  stty pass8; setenv LC_CTYPE iso_8859_1; setenv LESSCHARSET latin1
in your .login. the first prevents the stripping of bit 7.
the second sets the locale. the third makes less show the character
instead of the octal representation.

rj

-- 
__________________________________________________
Robert Joop
  rj@{rainbow.in-berlin,fokus.gmd,cs.tu-berlin}.de
  s=joop;ou=fokus;ou=berlin;p=gmd;a=dbp;c=de
Newsgroup: comp.windows.x

 Searching CAD-software
Nntp-Posting-Host: vivian
Organization: SubNet - The NeXT Generation
Lines: 13

Hi out there!

I'm looking for CAD-software either PD-sources
or Sun 3-binaries .
Who knows _ANY_ package  ?

Thx, Fabian

-- 
Fabian Hoppe				Phone  : ++49 2332 12580
Elsternstr. 57				Fax    : ++49 2332 83741
W-5820 Gevelsberg			EMail  : 
Germany
Newsgroup: comp.windows.x

 Re: >>>>> MOUSE BUTTONS 1,2 & 3 <<<<<<<< urgent !
In-Reply-To: 's message of 5 Apr 93 10:10:23 GMT
X-Disclaimer: This is not the view of IXI Ltd unless explicitly stated.
Lines: 29
Nntp-Posting-Host: yorks.x.co.uk
Organization: Not a lot
X-Copyright: The author asserts the right of paternity in this message.

>>>>> On 5 Apr 93 10:10:23 GMT,   said:
IK> Nntp-Posting-Host: elm

IK> I know it sounds stupid, but....

IK> Does anyone know how to control individual mouse buttons.
IK> I am writing an application, which currently makes use of
IK> ButtonPressMask, however this is invoked by the pressing
IK> of any mouse button. I want to be able to restrict this
IK> to one of the 3 buttons. I tried Button1PressMask, but
IK> just get undefined errors. I know it can be done, and I
IK> am pretty sure theres an easy answer to it, but I just don't know
IK> what it is.
IK> "time is of the essence ..."

There is no event mask for a particular mouse button press. However in your
event handler you can use the event structure passed in and query it to find
which button was pressed i.e.

void
SomeEventHandler
{
    /* Catch the button 1  */
    if  {
        /* do some action */
    } else {
        /* do nothing and exit from function */
    } 
}
--
-Guy Singh,                 IXI            Internet: 
                            Vision Park    UUCP:     
                            Cambridge      Bang:     ...!uunet!ixi!guy
                            CB4 4ZR, UK    Tel:      +44 223 236 555
Newsgroup: comp.windows.x

susan+@andrew.cmu.EDU REGISTRATION:  Andrew Tutorial & Technical Conference
Organization: School of Computer Science, Carnegie Mellon, Pittsburgh, PA
Lines: 81
NNTP-Posting-Host: enterpoop.mit.edu
To: 

                          1993 Andrew Tutorial 
                                  and 
                          Technical Conference 


When:  Thursday and Friday, June 24 and 25, 1993 
     

Where:  Carnegie Mellon University in Pittsburgh, Pennsylvania.   

Sponsor:  Andrew Consortium of CMU's School of Computer Science.  

Schedule:  The Tutorial  will be on Thursday, followed by dinner and the
    Annual Meeting.  The Conference proper will be on Friday.  All
    Conference attendees are welcome at the Annual Meeting.  

    Wednesday, June 23 

        Check in:  After 4:00 PM 
        Informal Reception:  7:30 PM 

    Thursday, June 24 

        Tutorial:  9:00 A.M. - 5:00 PM 
        Conference Dinner:  6:30 PM 
        Annual meeting:  8:00 PM 

    Friday, June 25 

        Technical Conference:  9:00 AM - 5:00 PM 

Cost:  
    Tutorial fee includes breaks, lunch and tutorial materials:  $100 
    Conference fee includes conference dinner, breaks and proceedings: $100 
    Rooms :  $50 / night 

Housing is tight around the campus area, so please register soon.  If you 
prefer to stay in off-campus housing, please contact us for suggestions. 
Mary Anne Cowden will be handling registration.  You can contact her by
email,  mc8b+@andrew.cmu.edu,  or by phone,  268-6710.  
 Registration Form 

Please complete the attached form and return it to: 

Mary Anne Cowden 
Andrew Consortium Technical Conference 
Carnegie Mellon University 
Smith Hall 106 
5000 Forbes Avenue 
Pittsburgh, PA 15213-3890 

                                     <-       cut along here       -> 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - 



Name:              ______________________________________________ 

Address: 	______________________________________________ 

		______________________________________________ 

Organization: 	______________________________________________ 

Email:               ______________________________________________ 

Phone:              ______________________________________________ 




Tutorial		$ ___________     $100 
Conference		$ ___________     $100 
Housing		$ ___________      $50/night 

	TOTAL ENCLOSED     $ ___________ 


      Please make checks payable to Carnegie Mellon University.
Newsgroup: comp.windows.x

 Re: Forcing a window manager to accept specific coordinates for a window
Organization: Eindhoven University of Technology, The Netherlands
Lines: 38
Distribution: world
NNTP-Posting-Host: wsinfo03.win.tue.nl

  writes:
> 
> try this after XCreateWindow:
> -----------------------------
> ...
>
>   xsizehints->flags = USPosition | USSize;	/* or = PPosition | PSize */
>   ...
>   XSetWMNormalHints ;
>   ...
>
> These hints tell the window manager that the position and size of the window
> are specified by the users and that the window manager should accept these
> values. If you use xsizehints->flags = PPosition | PSize, this tells the window
> manager that the values are prefered values of the program, not the user.
> I don't know a window manager that doesn't place the window like you prefer
> if you specify the position and size like above.

Sorry, but olwm and tvtwm don't do it. They place the title at that position
and the window at a position below it.

This becomes a problem when you want a program to be able to save its current
configuration and restore is later.

Currently, my solution is:

	XCreateWindow;
	XSetWMProperties;
	XMapWindow;
	XFlush;
	XMoveWindow;


It works with olwm, but is less than elegant. All this leaves me wondering
if I'm overlooking something obvious.

Richard.
Newsgroup: comp.windows.x

 tvtwm & xsetroot, X11R5 and Sparc 10 keyboard
Organization: Sheffield Hallam University
Lines: 66
Reply-To: 
To: 

Hi,

  Please reply to me direct as I am not a member of this list.

  I am new to X, so please excuse my lax 
terminology!

  Environment: Sun Sparc 10, SunOs 4.1.3.  X11R5 path level 23.  My X process
is started by xdm.

  i) I want to setup the backgroud  of the tvtwm display to
     display the escherknot etc !

     The setup is as follows:

        lib/X11/xdm/Xsetup_0    -   xsetroot -bitmap ... etc
        ~user/.xsession         -   xsetroot .... etc
                                    tvtwm

     There are also .tvtwmrc and .Xdefaults files in the  home
     directory.

     The xsetroot in Xsetup_0 displays the appropriate bitmap in the xdm
     login window as expected - very nice!

     Unfortunately, when the users session is started, the background of the
     tvtwm window reverts to grey.  If I manually type xsetroot... in an
     xterm window when the session has started, the background is changed as
     expected.

     The question is: How do I retain the background from the login window
     and/or specify a new background on a per-user basis as part of the
     the users session startup?

 ii) When I open an Xterm on the Sparc 10, not all of the keys are recognised
     and some keys on the keyboard are not sending the correct characters.

     ie: real key       key shown on screen
         ------------   -------------------
         hash           back slash
         tilde          pipe
         double quote   at symbol
         pound          hash
         cursor key     not recognised

     This is very annoying!  Is X at fault here or the machine setup?  I have
     installed the xterm drivers that came with X11R5 in both terminfo and
     termcap as they seemed more uptodate.

     Typing set in an xterm window shows a terminal type of xterm - as
     expected!

  Any help on how to correct either of these problems much appreciated!

  Thanks,

Dave.
--------------------------------------------------------------------------
JANET   :       | Dave Haywood.
  or                         | Computer Services,
INTERNET:                    | Sheffield Hallam University
Telex   : 54680 SHPOLY G                        | Pond Street,
Tel     : +44 742-533-828                       | Sheffield. S1 1WB. ENGLAND.
FAX     : +44 742-533-840                       |
X.400:/I=D/S=Haywood/O=Sheffield-Hallam/PRMD=UK.AC/ADMD= /C=GB
X.500:@c==Sheffield Hallam =Computer =Dave Haywood
Newsgroup: comp.windows.x

 Re: compiling on sun4_411
Organization: NeoSoft Communications Services --  684-5900
Lines: 27

In article <>  writes:
>In article , Wilson Swee <ws8n+@andrew.cmu.edu>  writes:
>|>    I have a piece of X code that compiles fine on pmax-ul4, pmax_mach, as
>|>well as sun4_mach, but whenever it compiles on sun4_411, it gives me 
>|>undefined ld errors:
>|>_sin
>|>_cos
>|>_pow
>|>_floor
>|>_get_wmShellWidgetClass
>|>_get_applicationShellWidgetClass
>|>
>|>The following libraries that I linked it to are:
>|>-lXaw -lXmu -lXt -lXext -lX11
>|>
>|>The makefile is generated off an imake template.
>|>Can anyone give me pointers as to what I'm missing out to compile on
>|>a sun4_411?
>
>Well, the first 2 are easy.  You need the math library.  Try adding -lm after
>-lX11.  Don't know if that's the whole problem but it's a start.
>
>---
I "think" you should try linking to /usr/lib/libXmu.a instead of 
-lXmu. At least that solved the problem for me!
Newsgroup: comp.windows.x

 Re: how to put RPC in HP X/motif environment?
Nntp-Posting-Host: lichen
Reply-To: 
Organization: MPR Teltech Ltd.
Lines: 30

In article <>,   writes:
>In article <>   writes:
>>has anybody implements an RPC server in the HP Xwindows? In SUN Xview, there
>>is a notify_enable_rpc_svc call that automatically executes the rpc processes
>>when it detects an incoming request. I wonder if there is a similar function in
>>HP X/motif that perform the same function.
>
>I've been using the xrpc package for about a year now.  I believe I got it from
>export.  

Glad to hear that it's working for you!

I couldn't find it on "export".  However, Simon Leinen
<> has added an Imakefile and an Athena
version, and made it available for FTP in the file
liasun3.epfl.ch:/pub/X/contrib/xrpc.tar.z.    

If this doesn't work, send me a note and I'd be happy to mail you
a copy; but you probably won't get it until the start of May --
I'm on holidays as of tomorrow! :-)

-- 
Martin Janzen   
MPR Teltech Ltd.  8999 Nelson Way  Burnaby, BC, CANADA  V5A 4B5


P.S. Are there any Dublin X folks that want to go for a pint of
Guinness at, say, Mulligan's...?
Newsgroup: comp.windows.x

"Derrick J. Brashear" <db74+@andrew.cmu.edu>mouseless operation in ol{v}wm
Organization: Sophomore, Civil Engineering, Carnegie Mellon, Pittsburgh, PA
Lines: 11
NNTP-Posting-Host: po5.andrew.cmu.edu

Mouseless operation is documented in the man pages for olwm and olvwm...
However, I can't get it to work in either.
I have this line in my .Xdefaults:
OpenWindows.KeyboardCommands:           Full

That should do it...
I haven't rebound the keys.
Am I missing something?

-D
Newsgroup: comp.windows.x

 Sunview -> X
Originator: 
Nntp-Posting-Host: taacman
Organization: Vanderbilt University School of Engineering, Nashville, TN, USA
Distribution: usa
Lines: 16

No doubt this is an old question, but I didn't find the answer in the
FAQs I could find, so - here goes:

I have a Sunview application that I want to convert to X . I remember hearing quite some time ago that there
are tools to accomplish this task.

	a) is that so?
	b) are they public domain?
	c) any good, i.e.
	d) advantages over reimplementing the interface myself?

Thanks,

-- Alex
Newsgroup: comp.windows.x

Compiling X programs
Reply-To:  
Distribution: usa
Organization: Amdahl Corporation, Sunnyvale CA
Lines: 53


Hi Guys,

	It has been a long time since I wrote a program using X. I am trying to 
	get myself re-familiarize with X. I would appreciate your help regarding
	the following problem.

	I am trying to compile a simple X program on sun running sunOS 4.1.2. 
	using
	cc -o ex ex.c -lXaw -lXmu -lXt -lXext -lX11 -lm
	I am getting an error

	ld: Undefined symbol
		_get_wmShellWidgetClass
		_get_applicationShellWidgetClass


 The simple program I tried to compile is given below.

#include <stdio.h>
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Xaw/Form.h>

main
int 	argc;
char	**argv;
{
	Widget	topLevel;
	Widget	frame;

	topLevel = XtInitialize;
	frame = XtCreateManagedWidget;
	XtRealizeWidget;
	XtMainLoop;
}




	I got the same error when I tried to build "xpostit" using the Imakefile
	provided with the software.

	I have compiled X programs before . I did not get this error message
	Can anybody tell me why I am getting these messages.

	I would appreciate if you can email your responses to me at
	

	Thanks
	Anand