Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!uwvax!uwmacc!ejnorman From: ejnorman@uwmacc.UUCP (Eric Norman) Newsgroups: comp.os.vms Subject: Command procedure input Message-ID: <1686@uwmacc.UUCP> Date: Fri, 3-Jul-87 00:30:11 EDT Article-I.D.: uwmacc.1686 Posted: Fri Jul 3 00:30:11 1987 Date-Received: Sat, 4-Jul-87 10:22:03 EDT Reply-To: ejnorman@unix2.macc.wisc.edu (Eric Norman) Organization: UW-Madison Academic Computer Center Lines: 49 We have Eunice here. One of the things you can do is define the Eunice commands as foreign commands so that they can be used directly from VMS, e.g. vi :== $eun_root:[usr.ucb]vi vi This works fine; vi manages to do whatever is necessary to read characters one at a time from the terminal. However, if I try to do it with a command procedure, e.g. $ vi := $eun_root:[usr.ucb]vi vi $ define/user_mode sys$input sys$command $ vi 'P1' $ exit the terminal gets in the mode where nothing happens until you whang the CR key. I can get the terminal in what Eunice (and Unix) calls "raw" mode by doing the Eunice "stty raw" command first, but it's too raw; line-feeds sent by Eunice don't get translated to carriage-return line-feeds. The only way I've found that seems to work is to spawn the blighter, e.g. $ vi := $eun_root:[usr.ucb]vi vi $ spawn/nolog vi 'P1' $ exit Note, that this isn't just Eunice's vi; anything from Eunice that wants the terminal in raw mode seems to work this way. Evidently Eunice isn't doing something that EDT knows how to do. Anyway, the first thing I'd like to know is if there's anthing I can do in a command procedure so that the terminal will end up in the right mode. If that's not possible, what do I need to do in the code for the command so that I can execute it from a command procedure? Thanks, Eric Norman Internet: ejnorman@unix2.macc.wisc.edu UUCP: ...{allegra,ihnp4,seismo}!uwvax!uwmacc!ejnorman Life: Detroit!Alexandria!Omaha!Indianapolis!Madison!Hyde "Holy cosmos." -- Robin "It's a big order, Robin." -- Batman --