[comp.sys.sun] selection service problem

chuck@morgan.com (Chuck Ocheret) (03/10/89)

I am running SunOS 4.0.1 on a 4/110 on a network and have repeatedly
experienced an unpleasant problem with my selection service.  Normally,
when the left mouse button is clicked on text the underlying text is
highlighted with reverse video.  All the cut and paste operations work on
the highlighted region.  The symptom of my problem is that the selected
text appears underlined and no cut, paste,  etc... operations work.  The
only way to get back to a normal state has been to exit sunview and kill
the selection service.  Please advise.

Chuck Ocheret
Morgan Stanley & Co., Inc.
1251 Avenue of the Americas
New York, N.Y.  10020
(212)703-4474
chuck@morgan.com

gfr@cobra.mitre.org (Glenn Roberts) (03/23/89)

> I ... have repeatedly experienced an unpleasant problem ...
> Normally, when the left mouse button is clicked on text the
> underlying text is highlighted with reverse video...
> My problem is that the selected text appears underlined and no
> cut, paste,  etc. operations work.

You've gotten SunView into "secondary" mode.  SunView's notion of
"secondary" selections is nice when you want to cut one piece of text and
have it automatically place another piece of text elsewhere on the screen
(hence you need to be able to "select" two things at once!).  Read your
SunView manual for more details on how to make use of this.

If you get stuck in this mode you can always get things back to normal
using the clear_functions command.  Here is the description from the man
page:

DESCRIPTION
     clear_functions instructs  the  selection  service  that  no
     function  keys  are  currently  depressed.   It is useful in
     cases where erroneous programs have reported a key press but
     not  the  corresponding release.  The usual symptom for this
     situation is that all selections are secondary  (underscored
     rather  than  inverted),  even  though  no function keys are
     down.


- Glenn Roberts, The MITRE Corp., McLean VA (703) 883-6820
  gfr@cobra.mitre.org

richard%aiai.edinburgh.ac.uk@nss.cs.ucl.ac.uk (Richard Tobin) (03/23/89)

> The symptom of my problem is that the selected
> text appears underlined and no cut, paste,  etc... operations work.

The SunView 1 Beginner's Guide, p106:

If a text window gets stuck so it makes only secondary selections, press
the STOP key to reset the window.

This sounds like your problem.

-- Richard

harp%terra.pkg.mcc.com@mcc.com (Christoph North-Keys) (03/23/89)

>   The symptom of my problem is that the selected
>   text appears underlined and no cut, paste,  etc... operations work.

Add clear_functions to your system's SunView rootmenu.  Note that the
rootmenu will take advantage of the user's search path.  I'm using the
following setup, containing additions appropriate for using X:

excerpt from ~/.rootmenu
__________

...
"Keyboard"              MENU $HOME/.rootmenus/keyboard
...
__________

text of ~/.rootmenus/keyboard (kbd_mode is part of X11, fixkeyboard of X10)
__________

"Mode Sun, encoded"      kbd_mode -e 
"Mode Sun, unencoded"    kbd_mode -u 
"Mode Ascii"             kbd_mode -a 
"Mode Non-encoded"       kbd_mode -n 
"Clear Functions"        clear_functions  
"Fix Keyboard (X10)"     fixkeyboard 

kbd_mode without args returns syntax and current setting.

-Christopher North-Keys  (harp%terra@mcc.com harp%mcc.com@uunet.uu.net)
 SysAdm, Pkg/Int, MCC