Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!lll-lcc!pyramid!batcomputer!tedcrane From: tedcrane@batcomputer.UUCP Newsgroups: comp.os.vms Subject: Re: How do you ring bell in DCL file? Message-ID: <848@batcomputer.tn.cornell.edu> Date: Thu, 30-Apr-87 10:55:39 EDT Article-I.D.: batcompu.848 Posted: Thu Apr 30 10:55:39 1987 Date-Received: Sat, 2-May-87 00:47:21 EDT References: <154@siemens.UUCP> Reply-To: tedcrane@tcgould.tn.cornell.edu.UUCP (Ted Crane) Organization: Program of Computer Graphics, Cornell University Lines: 22 In article <154@siemens.UUCP> jrv@siemens.UUCP (James R Vallino) writes: >I would like to have the terminal bell rung from within a DCL command >file. There are two ways to go about this, and which is cleaner is up to you: $ BELL = "^G" !Enter the (^G) character using SPECINS !in EDT (7) or similar method !in any other editor. This does cause you grief !when you type the command file, but it's easy. $ BELL = " " !This defines BELL as a character symbol. $ BELL[0,8] = 7 !This replaces the first eight bits of the symbol !with the value seven. Now BELL contains an ASCII bell. The same techniques can be used to create local (or global) symbols containing the or characters, and those can be used to build ANSI escape sequences. -ted tedcrane@squid.tn.cornell.edu