[Info-vax] DCL output no line feed
Wilm Boerhout
wboerhout.no at spam.gmail.com
Thu Jan 21 12:08:13 EST 2010
Jerry Alan Braga mentioned on 21-1-2010 17:18:
> but the write sys$output command by default places an CRLF to the
> screen, if I want to display a message at the bottom line than the
> screen will scroll after the command is done, I do not want that.
>
> "Wilm Boerhout" <wboerhout at gmail.com> wrote in message
> news:f637dbe7-11ea-4a6d-8643-b13d50ff7978 at p8g2000yqb.googlegroups.com...
>> On 21 jan, 15:45, "Jerry Alan Braga" <jerry.br... at hotmail.com> wrote:
>>> Is the any way in and DCL command procedure to output to the screen
>>> without
>>> advancing to the next line?
>>
>> 1. See VMS Help for INQUIRE or READ /PROMPT; this assumes that after
>> the write you will want to do a read
>> 2. If you want repeated writes without intervening reads, you have to
>> remember the cursor position (again, assuming that it's a termial that
>> you write to and not a tape unit). vt100.net holds ANSI and VTxxx
>> escape sequences to do just that. The idea is to use the following
>> sequence:
>>
>> $ WRITE TEXT+"cursor save sequence"
>> [...] do some other processing...
>> $ WRITE "cursor restore sequence"+TEXT
>>
>> On your screen, it will appear as if the second write immediately
>> follows the first.
>>
>> Without knowing what problem you are trying to solve, it is hard to
>> judge whether your solution (write with no advancing) makes sense, or
>> for that matter, my solutions.
>>
>> /Wilm
>
I know. I suggest you look into the ANSI screen management escape
sequences for VTxxx, and write your own version of SMG in DCL. My
"save/restore" suggestion is a mini version of that.
Again, what underlying problem are you trying to solve?
/Wilm
BTW, this thread reads better if you do not use top posting.
More information about the Info-vax
mailing list