[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference noted::hackers_v1

Title:-={ H A C K E R S }=-
Notice:Write locked - see NOTED::HACKERS
Moderator:DIEHRD::MORRIS
Created:Thu Feb 20 1986
Last Modified:Mon Aug 03 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:680
Total number of notes:5456

294.0. "CDU and ^Z" by EAGLE7::DANTOWITZ (David .. DTN: 226-6957) Mon Aug 25 1986 21:36


	Is anyone familiar with the Command Definition Utility?

	Specifically I would like to know if you can have it
	recognize a ^Z.

	David
T.RTitleUserPersonal
Name
DateLines
294.1^Z Works Independently of CDUVAXUUM::DYERDefine `Quality'Tue Aug 26 1986 01:047
	    The CDU itself doesn't handle ^Z.  Typically what one does
	is use lib$get_input() to read a command into a buffer, then
	run CLI$ routines on the text in that buffer.
	    What happens when you type ^Z is that lib$get_input() will
	return a status code of RMS$_EOF instead of SS$_NORMAL.  You
	check the status and act accordingly.
			<_Jym_>
294.2Use SMG$ routinesFROST::HARRIMANACK Phfft!Thu Aug 28 1986 14:129
    
    The best way I know of to make ^Z be recognized is to use the SMG$
    routines directly. You can define your termination characters using
    the routine SMG$READ_STRING. Read the manual-page 5B/RTL-599. You would,
    of course, have to use all of the other SMG$ functions too, but
    they are very easy to master for simple (one keyboard, one display)
    applications.
    
    /pjh
294.3Either Works - LIB$'s Easier - SMG$'s More PowerfulCLOSET::DYERDefine `Quality'Fri Aug 29 1986 19:376
	    If it's just ^Z you want to recognize, LIB$GET_INPUT will
	do that very well, returning RMS$_EOF status when ^Z is typed.
	If you need more terminating characters besides the usual,
	SMG$READ_STRING is useful.  (I use it for TOPS-20 like incre-
	mental help, when the `?' key is typed.)
			<_Jym_>