- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Clear screen
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2006 12:40 PM
тАО08-01-2006 12:40 PM
Clear screen
Thks in advanced
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2006 12:55 PM
тАО08-01-2006 12:55 PM
Re: Clear screen
$ ESC[0,7] = 27
$ WRITE SYS$OUTPUT "''ESC'[2J''ESC'[1;1H"
Set a symbol to run the procedure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2006 01:23 PM
тАО08-01-2006 01:23 PM
Re: Clear screen
$ TYPE/PAGE NLA0:
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2006 02:13 PM
тАО08-01-2006 02:13 PM
Re: Clear screen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2006 03:31 PM
тАО08-01-2006 03:31 PM
Re: Clear screen
What is mean by NLA0: is it default device specification or ...?
Regards
Balamurali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2006 03:39 PM
тАО08-01-2006 03:39 PM
Re: Clear screen
certain things. Writes always succeed and
reads always return end-of-file. It is a
bit-bucket, black hole, somewhere to send
things when you don't want the output.
e.g. $ show system/output=nla0:
Dave.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2006 09:01 PM
тАО08-01-2006 09:01 PM
Re: Clear screen
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2006 11:10 PM
тАО08-01-2006 11:10 PM
Re: Clear screen
> Create a command procedure with
>
>$ ESC[0,7] = 27
>$ WRITE SYS$OUTPUT "''ESC'[2J''ESC'[1;1H"
>
>Set a symbol to run the procedure.
I would prefer:
$ WRITE SYS$OUTPUT ESC, "[H", ESC, "[J"
Note that there is a difference between this method and TYPE/PAGE NL:
TYPE/PAGE NL: leaves the cursor at the first line of your terminal, whereas the escape sequence puts you on the second line!
Regards,
Bart Zorn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2006 11:54 PM
тАО08-01-2006 11:54 PM
Re: Clear screen
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2006 03:01 PM
тАО08-02-2006 03:01 PM
Re: Clear screen
TYPE/PAGE NL: determines the terminal type (as set with SET TERMINAL) and issues the "correct" escape sequence to clear the page (assuming your device type is set correctly).
On the other hand, the WRITE command will work on an ANSI terminal regardless of the terminal type set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2006 07:02 PM
тАО08-02-2006 07:02 PM
Re: Clear screen
Normally i use these commands to clear screen in VMS.
$ set terminal /width=132
(or)
$ set terminal /width=80
regards
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2006 08:03 PM
тАО08-02-2006 08:03 PM
Re: Clear screen
Use with '$ TYPE CLS.TXT'.
Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2006 08:25 AM - last edited on тАО08-13-2024 03:34 AM by Sunitha_Mod
тАО08-03-2006 08:25 AM - last edited on тАО08-13-2024 03:34 AM by Sunitha_Mod
Re: Clear screen
Bart.
>$ ESC[0,7] = 27
>$ WRITE SYS$OUTPUT "''ESC'[2J''ESC'[1;1H"
>
>Set a symbol to run the procedure.
I would prefer:
$ WRITE SYS$OUTPUT ESC, "[H", ESC, "[J"
Note that there is a difference between this method and TYPE/PAGE NL:
TYPE/PAGE NL: leaves the cursor at the first line of your terminal, whereas the escape sequence puts you on the second line!
That is of your own doing!
After your sequence, the write will generate an implicit CrLf, puuting you on the next (ie 2nd) line.
However, the ''ESC'[1;1H is a cursor positioning which (at least, as the last element of the sequence) will overrule the need for the added CrLf.
jpaulino05,
as you are new, please review http://forums1.itrc.hp.com/service/forums/helptips.do?#33
Proost.
Have one on me.
jpe
[Moderator edit: The above link is no longer valid.]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2006 06:18 PM
тАО08-03-2006 06:18 PM
Re: Clear screen
Did you try it?
DCL knows nothing of escape sequences, so you get the CR/LF anyway. And,"esc>[H" is short for "
Regards,
Bart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2006 06:47 PM
тАО08-03-2006 06:47 PM
Re: Clear screen
"the screen" is no better defined than this,
but if you don't like the carriage control
from WRITE, you might try something like:
$ esc = " "
$ esc[ 0, 8] = 27
$ esc_seq = esc+ "[2J"+ esc+ "[H"
$ read /error = err1 /prompt = "''esc_seq'" /time_out = 0 sys$command line
$ err1:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2006 04:44 AM
тАО08-04-2006 04:44 AM
Re: Clear screen
I tried, and YOU are right!
Amazing. I have been using that for sooo many years now, and never knew, nor noticed.
Thanks for another bit of education!
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2006 06:57 PM
тАО08-06-2006 06:57 PM
Re: Clear screen
:-)
Steven,
Yes, the READ command can do it without the CR/LF. Unfortunately, the construct is a bit tedious.
Regards,
Bart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2006 03:30 AM
тАО08-07-2006 03:30 AM
Re: Clear screen
That's why I put it into a command procedure
instead of typing it interactively.
Some people will complain if they're hanged
with a new rope.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2006 06:36 PM
тАО08-07-2006 06:36 PM
Re: Clear screen
instead of typing it interactively.
Sure, but then your advantage over an image activation decreases!
Bart