steve@cfht.hawaii.edu (Steven Smith) (01/04/91)
Greetings! I just had the installation tape for HP's Visual Editor (Ved) dropped on my lap. I have installed it on a HP9000 425, (that has the instant ignition/Vue stuff on it). Ved appears to work correctly, when started by hand as per the instructions. My question is: How do you arrange for Ved to be integrated into the Vue way of doing things. I assume that the vedserver program would need to be fired up somewhere, and that the ved program itself would need to be added as one of the mouse selectable applications. Since this seems to be normal thing to want, and has probably been done before, I thought I'd ask before reinventing the wheel. If anyone has done this already, I would appreciate getting the scoop. mahalo, steve -- Steven S. Smith Canada-France-Hawaii Telescope Corp. steve@cfht.hawaii.edu
bcripe@hpcvlx.cv.hp.com (Brian E. Cripe) (01/08/91)
> My question is: How do you arrange for Ved to be integrated into the > Vue way of doing things. I haven't personally used Ved, so if it does anything particularly strange you may have to alter the following instructions. To make VUE use an alternative editor as the default, you have to do two things: 1) Configure the editor as a VUE "action". 2) Specify the new VUE action as your default editor. The first of these should be done once for the entire system, but the second should be done by each individual user who wants to make the change. To configure Ved as an action, do the following: - Create /usr/local/lib/X11/vue/types if it doesn't already exist. This god-awful path is the default location for system-wide action definitions. - Create a file named /usr/local/lib/X11/vue/types/local.ad to hold your local action definitions. Actually the name of the file can be anything as long as it ends in ".ad". - Add an action definition to local.ad for Ved. The following entry assumes that the command line for Ved is simply "/usr/bin/ved <file>": VED \ * \ action.l.bm \ action.s.bm \ COMMAND \ NO-STDIO \ /usr/bin/ved %(File)Arg_1"File To Edit:"% Make sure that the line-continuation character (\) is the last character of each line -- no trailing spaces. For an explanation of these fields, look at the header for /usr/lib/X11/vue/types/vue.ad. - Create a directory /usr/local/lib/X11/vue/types/tools and within this directory create an executable file named "VED". The contents of the file can be anything, even empty. - Make VUE re-read the action database. To do this, click the applications button in the front panel (top row, second from right), open the system_apps/sys_admin folder, and double-click the REREAD_DB icon. [If you use this a lot, try copying the icon into one of your own folders using CTRL-B2 drag.] If you have an older version of VUE that doesn't have the REREAD_DB action, you have to log out and back in. (Sorry) Now that you have defined VED as an action you can push your applications button, open the "local_apps" folder, and see an icon titled VED. Try double-clicking this icon to run Ved or drag a file onto it to edit the file. Once this is working you can make Ved your default editor by copying /usr/lib/X11/vue/types/user-prefs.ad to $HOME/.vue/types/user-prefs.ad and editing it. Find the EDIT_TEXT line and change VEDIT to VED. Now reload the database (using REREAD_DB or logging out) and you will find that double-clicking any text file will create a Ved window to edit the file. Good luck, Brian Cripe