>From what I've noticed, when gtm is first started up, the length and width of
your terminal window is calculated. These values are used as defaults if the
LENGTH parameter is not specified in the USE command. You can test this by
starting a gtm session in a terminal window, and enter the following at the gtm
prompt:
gtm> U $P F D W $Y,!
you can exit the loop by hitting control-c combination.
If you halt out of gtm, resize your terminal window to be larger or smaller,
then start-up gtm again and run the same line as above, you will see a
different max value for $Y.
By using a value in the LENGTH parameter, you can manipulate this "default"
value for $Y. So, somewhere in your code you would want to have:
U FILENAME:(LENGTH=79) ; <- I believe that the line numbers start at 0,
; i.e. $X=0, $Y=0 is at the top of the screen.
just my 2-bits...
Hope this helps...
Michael
--- "K.S. Bhaskar" <[EMAIL PROTECTED]> wrote:
> Lloyd --
>
> Thanks for jumping in. I noted the discussion thread earlier this week,
> but we moved offices this week, and I just did not have the time or
> energy to respond. Anyway, I too would have referred to the table in
> the Programmers Guide.
>
> I am not sure what you mean by "GT.M version of the device utility", but
> I will gladly send it to you (Chapter 10 of the Programmers Guide has
> all the GT.M utility programs so tell me what you are looking for).
>
> Regards
> -- Bhaskar
>
> On Fri, 2005-01-14 at 21:10, Lloyd Milligan wrote:
> > The DEVICE file has a field called OPEN PARAMETERS that stores the
> > parameters to be included when the device utility performs the actual open.
>
> > However, I just noticed something. According to the GT.M documentation
> > LENGTH (virtual page length) is a USE parameter only. Some sequential file
>
> > "deviceparameters" work with OPEN, some with USE, and some with either OPEN
>
> > or USE, etc. Chapter 9 of the GT.M Programmer Manual has a table showing
> > allowed M commands for each parameter. Since LENGTH is a USE parameter
> > only, it would go in the USE PARAMETERS field of the DEVICE file entry.
> For
> > example, if there are no other USE parameters you could put (LENGTH=80) as
> > the value for this field. I don't have a recent GT.M version of the device
>
> > utility and haven't studied where the USE parameters are applied, but a
> > simple experiment should tell whether or not this works.
> >
> > Lloyd
> >
> > PS Your workaround seems okay. It would be interesting to know, though, if
>
> > the problem can be addressed without modifying the code.
>
> ***************************************************************************
> This electronic mail transmission contains confidential and/or privileged
> information intended only for the person(s) named.
> Any use, distribution, copying or disclosure by another person is strictly
> prohibited.
> ***************************************************************************
>
> NOTE: Ce courriel est destine exclusivement au(x) destinataire(s)
> mentionne(s) ci-dessus et peut contenir de l'information privilegiee,
> confidentielle et/ou dispensee de divulgation aux termes des lois
> applicables. Si vous avez recu ce message par erreur, ou s'il ne vous est pas
> destine, veuillez le mentionner immediatement a l'expediteur et effacer ce
> courriel.
>
>
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> Hardhats-members mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hardhats-members
>
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Hardhats-members mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hardhats-members