- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Changing the output of the TYPE command
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
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
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
11-28-2010 02:44 AM
11-28-2010 02:44 AM
Changing the output of the TYPE command
How can I change the menu bar to display everything in upper case "RETURN/SPACE=MORE, PREV/NEXT=SCROLL"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2010 05:40 AM
11-28-2010 05:40 AM
Re: Changing the output of the TYPE command
use SET TERM/NOLOWER or SET TERM/UPPERCASE to force the terminal driver to convert all characters to uppercase.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2010 05:43 AM
11-28-2010 05:43 AM
Re: Changing the output of the TYPE command
AFAIK, those texts are part of the executable.
You may try to patch it.
For pretty simple EXEs I have successfully I have done that with a simple editor (because I did not have the compiler for the source language), AS LONG AS YOU __DO__ KEEP THE STRINGS __EXACTLY__ THE SAME LENGTH.
NO guarantee of success, and because TYPE is included in VMS, every new version or patch MIGHT replace it, and require a redo.
YMMV.
Good luck & success.
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2010 08:53 AM
11-28-2010 08:53 AM
Re: Changing the output of the TYPE command
It also doesn't seem that you want the TYPE command here, you likely want to use the Unix-like more or the less tools, or analogous. Various ports are available.
And there's a copy in GNV.
Interestingly, you're also asking for some added extra "fun" here as the "prev" and "next" keys aren't ubiquitous keys.
And please consider posting why are you might be asking this question. Some background? Goals? Requirements? Without some background and some requirements, we might get you the correct answer, but might well miss the best answer. We can't tailor the answer to your particular requirements, only to your point question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2010 01:22 PM
11-28-2010 01:22 PM
Re: Changing the output of the TYPE command
After you figured out what the length field is you can probably patch in place or make the string shorter. Happy hacking!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2010 01:47 PM
11-28-2010 01:47 PM
Re: Changing the output of the TYPE command
>AFAIK, those texts are part of the
>executable
No, they're not in TYPE.EXE, they're (correctly) isolated in a message file. That means you can easily support multiple languages without requiring multiple versions of the image.
See SYS$MESSAGE:CLIUTLMSG.EXE. Note there are several messages which contain the string you're interested in "RETURN/SPACE=More, PREV/NEXT=Scroll"
An upper case variant can be dealt with as if it were another language. Obtain a copy of CLIUTLMSG.MSG from the source distribution, make modifications to the message text, and recompile it into a site specific variation of the standard message file.
For more detail about the message utility see "HP OpenVMS Command Definition, Librarian, and Message Utilities Manual"
http://h71000.www7.hp.com/doc/82final/6100/6100PRO.HTML
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2010 02:27 PM
11-28-2010 02:27 PM
Re: Changing the output of the TYPE command
If you have a VAX running V7.3, you may be able to decompile its copy of CLIUTLMSG, then move the source code to Alpha or IA64 for compiling. Hoping that later versions haven't added new messages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2010 08:35 AM
11-30-2010 08:35 AM
Re: Changing the output of the TYPE command
I'm curious as to why you would want to do this.
Craig
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2010 04:20 AM
12-01-2010 04:20 AM
Re: Changing the output of the TYPE command
The company that I work for is in Israel and therefore the primary language of the end users is hebrew. Our systems have been built with a character set that is 7-bit hebrew. This means that our end users can see either hebrew or lowercase english but not both together.
The words "More" and "Scroll" that I mentioned in the original question will therefore appear as gibberish ("More" - capital M followed by 3 hebrew characters)
I like John's idea of creating a multi language version of the TYPE command. I will try to create a hebrew language version of the TYPE command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2010 07:26 AM
12-01-2010 07:26 AM
Re: Changing the output of the TYPE command
VMS and DECwindows once had language variants; internationalized add-ons. Hebrew was one language that had some local language add-ons. Some of these may still exist, depending on what version is in use here. Particularly if this isn't a current release.
Also see the SYS$LANGUAGE support, and APIs including LIB$GET_USERS_LANGUAGE().
That support had some oddities; definitely test.
There was some damage around the message help files when local languages were enabled. I don't know if that got fixed, or if you had to (for instance) redirect the message help files over to the English message help files if the localized files weren't installed, for instance.
There are additional issues here, given the lack of unicode support in the operating system and tools.
Was "just" TYPE the central issue here, then I'd get rid of the TYPE command. The more or less tools with message catalogs (and C had message catalog support on recent releases) might get you where you want for this case. That gives you full control. (I've posted what amounts to full source for a type command, using C and RMS calls, if you're interested.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2010 01:46 PM
12-14-2010 01:46 PM
Re: Changing the output of the TYPE command
The message format is the same on all platforms.
Once you get to the message section, an image section on VAX/ALPHA or a program segment on Integrity, you can use the decompile code from Joe Meadows's UNMESSAGE utility. Actually his tool starts with a longword vector at offset 16 in the first image section. It shows that for nonexecutable message files the message section always starts at VBN 2, no matter which platform the message file was produced for.
So I made a simple open source version based on Joe's decompile code with hard coded VBN and offset. The sources are attached - the include file, although renamed, is unchanged. I tested unmsg on Linux with a couple of message files. It should be easy porting this to VMS.
Warning, there is no check whether the passed-in file is indeed a nonexecutable message file. That wasn't the case in the orignal tool and it is known that VMS code doesn't do this either. Obviously the utility can be improved, but that wasn't the goal and may not be worth the time, or?
On the other hand, I don't see why the $crpmsc should fail to expand the P0 region on Alpha or Integrity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2010 05:04 PM
12-14-2010 05:04 PM
Re: Changing the output of the TYPE command
dumped output for SYS$MESSAGE:CLIUTLMSG.EXE into into CLIUTLMSG.MSG, uppercased the messages in question, glued one line together, compiled and linked.
then DEFINE CLIUTLMSG to point to the new file.
Now,
$ type/page=save/search="return" CLIUTLMSG.msg
.FACILITY UTIL,286 /SYSTEM
.SEVERITY WARNING
_011E8008 "TRUE" /IDENT=NORMAL1
_011E8010 "YES" /IDENT=NORMAL2
_011E8018 "1" /IDENT=NORMAL3
_011E8020 "" /IDENT=NORMAL4
_011E8028 "FALSE" /IDENT=NEGANS1
_011E8030 "NO" /IDENT=NEGANS2
RETURN/SPACE=MORE, PREV/NEXT=SCROLL, INS/REM=PAN, SELECT=80/132, Q=QUIT
done.