| Title: | DECWINDOWS 26-JAN-89 to 29-NOV-90 |
| Notice: | See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit |
| Moderator: | STAR::VATNE |
| Created: | Mon Oct 30 1989 |
| Last Modified: | Mon Dec 31 1990 |
| Last Successful Update: | Fri Jun 06 1997 |
| Number of topics: | 3726 |
| Total number of notes: | 19516 |
I had a topic in the old conference which refered to FileView.
My problem was that I wanted to enter DECwindows in an account
who's login.com file contain questions to the user.
This bombs out of fileview.
I want the login file to check to see if it is the FileView window,
and if so, don't ask the questions.
Since FileView is run Interativly, checking ''f$mode()' doesn't work.
Another thing I tried was :
$ term = f$getdvi("sys$output","trm")
$ if term .nes. TRUE then $set term sys$output:/inq
This doesn't appear to work either.
Can someone help?
Thanks,
$$$$ ted $$$$
| T.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 124.1 | Try this out | DECWIN::KLEIN | Fri Feb 03 1989 17:07 | 33 | |
> $ term = f$getdvi("sys$output","trm")
> $ if term .nes. TRUE then $set term sys$output:/inq
F$getdvi("sys$output","trm") for the FileView process does return FALSE.
since sys$output is NLA0: for the FileView process.
So, the idea is good, but there seem to be a few problems in the deed:
Why ask if it is a terminal, get back the answer FALSE, and *then* do
a set term/inq on something which you know is not a terminal? Did
your logic get reversed?
Why are you doing "$set term sys$output:/inq" instead of simply
"$set term/inq"? Not that this matters.
And where is this value "TRUE" getting defined? When I tried your
example, I got %DCL-W-UNDSYM for TRUE.
Try this instead:
$ term = f$getdvi("sys$output","trm")
$ if .not. term then $goto not_a_terminal
$ set term/inquire
$ ... other terminal-specific stuff
$not_a_terminal:
$ ...
You could also check that sys$input is type file. For FileView,
sys$input will be sys$manager:decw$startvue.com, though this may
change in a future release.
-steve- (with Karen Brouillette's cogent analysis)
| |||||