face@amethyst.UUCP (Chris Janton) (05/08/87)
To clear the screen and ring the bell, leaving the cursor positioned on the first line do the following - (assumes a VT100) 1. Create a file with the proper escape sequences: (assume name clear_bell) <esc>[;H<esc>[J<bel> 2. Create an FDL file that looks like this (assume name clear_bell.fdl) IDENT " 8-MAY-1987 12:40:05 VAX/VMS ANALYZE/RMS_FILE Utility" SYSTEM SOURCE VAX/VMS FILE ALLOCATION 3 BEST_TRY_CONTIGUOUS no CLUSTER_SIZE 3 CONTIGUOUS no EXTENSION 0 GLOBAL_BUFFER_COUNT 0 NAME "CLEAR_BELL." ORGANIZATION sequential OWNER [25,14] PROTECTION (system:RWED, owner:RWED, group:RE, world:E) RECORD BLOCK_SPAN yes CARRIAGE_CONTROL none FORMAT variable SIZE 255 The key point here is the carriage_control entry of "none" 3. Execute the command Convert/Fdl=clear_bell clear_bell clear_bell which creates a new version of the file clear_bell with the appropriate file attributes. 4. Put the new clear_bell file in a suitable place. 5. In DCL procedures use the command $ type clear_bell. to clear the screen and ring the bell. Note: I realize that this requires an image activation but TYPE is usually installed so it shouldn't matter too much. How often do you clear the screen anyway?