- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Putting ESCAPE codes into a file
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
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
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
тАО10-25-2007 05:25 AM
тАО10-25-2007 05:25 AM
An ESCAPE P code is needed to make a DYMO label printer use a 16point font.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2007 05:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2007 05:54 AM
тАО10-25-2007 05:54 AM
Re: Putting ESCAPE codes into a file
That'll do it.
That trick also allows you so 'see' escape sequences as issued by keystrokes.
For example, hit escape, followed by 'page-down' and you see:
in TPU use: TPU COPY_TEXT(ASCII(27)
in DCL:
$ x = "x"
$ x[0,8] = 27
$ open/appe tmp tmp.tmp
$ write tmp x
$ dump/rec tmp.tmp
:
Record number 6 (00000006), 1 (0001) byte, RFA(0001,0000,0066)
1B ................................ 000000
Enjoy!
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2007 10:54 AM
тАО10-25-2007 10:54 AM
Re: Putting ESCAPE codes into a file
The sequence ^V ^[ (Control V then Control [) will enter an escape character.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2007 02:27 PM
тАО10-25-2007 02:27 PM
Re: Putting ESCAPE codes into a file
Do you need a one-shot? In which case EDT/TPU will do. Or, is the need for an ongoing creation of new files.
In the latter case, all of the languages have their own specific syntax for representing non-printable characters (e.g., ESCAPE).
In DCL, the assignment statements (=,==) have the square brackets syntax, to wit:
$ ESCAPE_CHARACTER_STRING[0,8] = 27
You will find examples of this syntax in files in SYS$EXAMPLES.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2007 11:42 PM
тАО10-25-2007 11:42 PM
Re: Putting ESCAPE codes into a file
If you are inserting these characters into a DCL script, then the best approach is that described by Hein. If you don't do it this way, you will have fun trying to print the script because the escape characters will be translated in the process. Here is how I do it.
$ ESC[0,7] = 27
$ Bold = ESC + "[1;1m" ! Bold Text
$ Rev = ESC + "[7;1m" ! Reverse Video
$ Norm = ESC + "[0m" ! Back to normal
$ Write sys$output "''ESC'[17;9f" ! Move the cursor to Line 17, Column 9.
etc, etc.
Dave.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2007 06:09 AM
тАО11-01-2007 06:09 AM
Re: Putting ESCAPE codes into a file
I just had to open a file with EDT (which I never use), press the ESC key twice and then press the letter of the escape code and save the file.
Then I had to use the following print command...
PRINT UT:LABUPITCH.COM /QUE=LABEL_TEST2
which sends the escape code.
Then print the file as usual.