- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Small Program To Return Single Keystrokes
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
тАО02-27-2006 12:16 AM
тАО02-27-2006 12:16 AM
This is a plea to the programmers out there for a small program to return the ASCII value of a key-press, or to time-out after a given amount of time.
Basically, I want to capture the cursor keys being pressed and feed that into a DCL routine. If this is already achievable in DCL, I'd be interested to know how.
Happy to take any language, as long as it's pre-compiled to OBJ (if necessary), PERL is also fine.
Thanks in advance, Robert.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2006 01:00 AM
тАО02-27-2006 01:00 AM
SolutionIf nothing else, I have saved 2 programs in my "little utilities" archive at
http://wwwvms.mppmu.mpg.de/~huber/util/main/
Look at getkey.for and taste.for, (and make_*.com, *_table.cld).
If You need Alpha .obj, please reply.
Alpha executables are present in
http://wwwvms.mppmu.mpg.de/util/exe/taste.exe
and getkey.exe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2006 01:30 AM
тАО02-27-2006 01:30 AM
Re: Small Program To Return Single Keystrokes
Any chance of getting a timeout added to BAS$INKEY?
There are some excellent utilities there - expecially like the read/write mailbox ones. Why don't you submit them to Hunter Goatley or OpenVMS.org?
I'm sure people would find them really useful.
Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2006 01:42 AM
тАО02-27-2006 01:42 AM
Re: Small Program To Return Single Keystrokes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2006 02:10 AM
тАО02-27-2006 02:10 AM
Re: Small Program To Return Single Keystrokes
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2006 02:31 AM
тАО02-27-2006 02:31 AM
Re: Small Program To Return Single Keystrokes
For completeness, could you capture the "%SYSTEM-F-TIMEOUT, device timeout" and return it in the symbol as "TIMEOUT" instead of the error message?
Sorry guys - I know I'm being a pain here.
Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2006 02:34 AM
тАО02-27-2006 02:34 AM
Re: Small Program To Return Single Keystrokes
>Any chance of getting a timeout added to BAS$INKEY?
I know too little about DEC Baswic implementation and the call standard to implement it. If You have time to read the Basic ref. manual, and have time to play, then try to insert arg 2 or 3 of bas$inkey to see an effect.
And in taste.for it can easily be implemented by combining it with Ian Millers code, just add it in arg 4 of the smg$read_keystroke call. To add it as an option takes a bit more time, maybe this evening ...
>There are some excellent utilities there - >expecially like the read/write mailbox ones. >Why don't you submit them to Hunter Goatley or >OpenVMS.org?
Well finding the time to package it ...
There is a pointer to my dite in the OpenVMS FAQ already ( http://wwwvms.mppmu.mpg.de/vmssig/src/ ), which in turn has a link to my personal stuff.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2006 03:04 AM
тАО02-27-2006 03:04 AM
Re: Small Program To Return Single Keystrokes
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2006 03:10 AM
тАО02-27-2006 03:10 AM
Re: Small Program To Return Single Keystrokes
http://www.openvms.org/pages.php?page=OpenSource
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2006 03:11 AM
тАО02-27-2006 03:11 AM
Re: Small Program To Return Single Keystrokes
Rob.