Aucbvax.5914 fa.info-vax utcsrgv!utzoo!decvax!ucbvax!info-vax Fri Jan 22 12:47:47 1982 ^Y Trapping (with apologies to UNIX hackers) >From Harvard@CMU-10A Fri Jan 22 12:44:28 1982 I distinctly remember writing a 20-line VAX MACRO program (though I could have done it just as easily in FORTRAN) that ASTed on every character, and exited when ^E was typed. ^Y's acted like normal characters -- I can't remember the exact syntax for image-mode I/O, but I would be happy to look it up for you if you'd like, and I could even get someone back at AFWL to FTP the source to me. (You know, of course, that $ ON CONTROL_Y THEN ... is the painless way of trapping ^Y's in com files; I'm describing a more general method.) The only problem with image mode is that you have to do EVERYTHING, including echoing, rubout processing, and so forth. Note that unless you write a routine to implement ^S/^Q handling (not very hard to do), image mode is not likely to work very well at 9600 baud on VT100's/DT80's. Regards, RMC ----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen of http://communication.ucsd.edu/A-News/ This Usenet Oldnews Archive article may be copied and distributed freely, provided: 1. There is no money collected for the text(s) of the articles. 2. The following notice remains appended to each copy: The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.