SpyderByte.com: OpenVMS.org dcl.OpenVMS.org de.OpenVMS.org fr.OpenVMS.org Tru64.org
   
Home About/Contact Search Archive Mobile Submit Procedure Sponsorship/Advertising
More Links
Printer friendly version
Share this story

dcl.OpenVMS.org
Admin: Ken Farmer
About: DCL (Digital Command Language) related news and procedures archive.


Navigation
Search Procedures
Post a Procedure
Documentation
Training
Vendors

Features
Bob Gezelter Articles:
Pitfalls of F$LOCATE & other Func
Logical Names (Part 5)
Logical Names (Part 4)
Report from the 1st OpenVMS Technical Symposium (Part 1)
Logical Names (Part 3)
Logical Names (Part 2)
Logical Names (Part 1)


RSS/RDF Feeds
OpenVMS.org (RSS 2.0)
dcl.OpenVMS.org (RSS 0.91)


Top 5 Stories
DCL_CHECK (7)
Free.com (2)
SHOW_PAGEFILE (7)
SHOW_BG (7)
Repeat.com (22)



Latest Procedures & News

Repeat.com
Aaron, Wednesday April 02 2003 @ 12:35AM EST
$! REPEAT.COM
$!  written by ACSakovich, ca 1990
$!
$! Correct syntax is:
$!  repeat command	This will repeat the command until the user presses
$!			the exit key (F10, Ctl-Z) or one of the special
$!			command keys: C (clear), W (132 col wide), N (80
$!			col narrow)
$!
$	esc[0,8] = 27
$	command = ""
$	on control_y then goto terminate
$	open/read user$input 'f$trnlnm("sys$command")
$	write sys$output "''esc'[H''esc'[J"
$	term$page = f$getdvi("TT:","TT_PAGE")
$	set message/nofac/nosev/noid/notext
$ loop:
$	'p1 'p2 'p3 'p4 'p5 'p6 'p7 'p8
$	read user$input command/time_out=1/end_of_file=terminate/prompt=" "
$	write sys$output "''esc'[0;0H"
$	if command .eqs. "" then goto loop
$	if f$edit(command,"upcase") .eqs. "C" then write sys$output "''esc'[H''esc'[J"
$       if f$edit(command,"upcase") .eqs. "W" then set term /wid=132
$       if f$edit(command,"upcase") .eqs. "N" then set term /wid=80
$	command = ""
$	goto loop
$ terminate:
$	set message/fac/sev/id/text
$	write sys$output "''esc'[''term$page';1H''esc'[K"
$	exit

< The OpenVMS Consultant: Pitfalls of F$LOCATE and other Functions | queue_control.com >



ADVERTISEMENT:
Mailing Lists
OpenVMS.org News:
(Low volume newsletter)
Subscribe | Unsubscribe
OpenVMS.org Alerts:
(Security & Patch Alerts)
Subscribe | Unsubscribe

Sponsors | Affiliates







Virtual VAX & Alpha

HoffmanLabs.com

The OpenVMS Consultant


Interested in Advertising? Click here...

Friends of VMS
Encompass (HP Customer Community):
United States
Canada
Australia
Encompasserve
OpenVMS Hobbyist
Other Sites:
8-Cubed
Aaron's OpenVMS Hobbyist Blog
Arne Vajhøj
Deathrow Public OpenVMS Cluster
DJE Systems
Hunter Goatley
Ian Miller
Itanium Solutions Alliance
Syltrem VMS Page (French)
Kednos PL/I
OpenVMSPlanet.org
OpenVMS Rocks
Preatorian.net
Retrobeep
SYSMGR Blog
VAMP
Vaxination
XDelta


Add, edit, report problems here...

OpenVMS Webring

OpenVMS Webring

Prev

Random

Next

Prev5

List

Next5



Home About & Contact Search Archive Mobile Submit Procedure Sponsorship & Advertising

     Copyright © 2003-2006 SCORSE, LLC
OpenVMS® is a trademark of HP
All other trademarks are those of their owners.
    
 SpyderByte.com ;Technical Portals