Operating System - HP-UX
1819791 Members
3166 Online
109607 Solutions
New Discussion юеВ

Setting Cursor size,shape,color on CDE, HP-UX 10.20?

 
Mike Shryne
Occasional Contributor

Setting Cursor size,shape,color on CDE, HP-UX 10.20?

I would like to know the file to modify, and the #syntax# to make the changes. I want to do this on the "ROOT" screens, not in applications or windows.
Some of the files I am leaning towards are:
## $HOME/.Xsessions,
## $HOME/.dt/sessions/home/dt.resources
or Globaly in:
/etc/dt/config/C/sys.resources
or ????
I'm interesed in both the global and individual solution.
I'm burnt out on man pages and "CDE Advanced User's & System Administrator's Guide"
Thanks for your thoughts on this problem!!
Mike Shryne

4 REPLIES 4
Alex Glennie
Honored Contributor

Re: Setting Cursor size,shape,color on CDE, HP-UX 10.20?

the root window is more closely related to X than to CDE resources .... hence maybe your search was around CDE and not X man pages etc etc ?

Anyway how to do it : man xsetroot looks good ?

eg xsetroot -cursor_name arrow -fg yellow -bg red & is my favorite.

On a per user basis you could be clever and vi $HOME/.dt/sessions/sessionetc and add the above line to it and make the file executable. Refer to CDE Advanced User guide for more details :(

Ot try something similar system wide with an xsession script : useful ref =>

Xwindows System Administrators Guide (O'Reilly & Assocs)
Edward Sedgemore
Trusted Contributor

Re: Setting Cursor size,shape,color on CDE, HP-UX 10.20?


Follow this link, I think it has your solution;

http://www.dutchworks.nl/htbin/hpsysadmin?h=3&dn=36958&q=CDE%20cursor&fh
Mike Shryne
Occasional Contributor

Re: Setting Cursor size,shape,color on CDE, HP-UX 10.20?

Thanks Alex,
xsetroot works fine, and I'm going to see if I can find the O'Reilly book locally. I still don't understand the -cursor and -cursor_name and know what variables are legal there and or how do I access **bigger cursors**, can I download some cursor or *.bm files and can they be used? --- very close ---

Thanks Edward,
Youre link was helpful, but I was unsuccessfull in unsharing and/or executing cut/cleaned big-cursur.shar??
But I think maybe, having the **same root screen cursors in/on all the apps and hpterms** would be desireable. I'm somewhat hessitant about running processes in background, since these are 3070 InCircuitTest systems.

Prefer Configuration solution, over background scripts, if that is feasable, which it appears to be.
Alex Glennie
Honored Contributor

Re: Setting Cursor size,shape,color on CDE, HP-UX 10.20?

My appologies Mike ... I thought of your possible needs but due to a fault in the UKRC was unable to get hold of one of my previous calls to cut & paste the info into my previous post :

here it is ;

bitmaps are located in /usr/include/X11/bitmaps so you would use :

xsetroot -cursor_name crosshair ...... etc

One point to note however; Xapplication windows may not reflect the change. This is
because X and CDE have a resource hieracy wrt resources.

You would need to set this on maybe a per client basis

For eg :

You can change the cursor shape used by hpterm by using the following resource:

HPterm*pointerShape: a-valid-pointer-shape where a-valid-pointer-shape is may be
found in the file /usr/include/X11/cursorfont.h.

Shapes are specified as the name with the leading "XC_" dropped. Valid cursor shapes include
"left_ptr", "crosshair", and "xterm."

The color of the cursor can be set with:

HPterm*pointerColor: color where color can be a valid color name from
/usr/lib/X11/rgb.txt or a color indicated with a hex color index value.

The same resources also apply to dtterm and xterm : please refer to man page for further details.