[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

610.0. "SPAWN from EDT????" by LEROUF::HUFF (This must be room 29....) Fri Nov 27 1987 11:17

    Does anybody out there know of a way to temporarily leave an
    EDT edit session without actually exiting it. I want to enter
    an edit session and, without exiting it, get to DCL and execute
    a DCL command or two, and then resume the same edit session.
    
    Any help would be useful.
    
    Cheers
    
    Richard
T.RTitleUserPersonal
Name
DateLines
610.1Use a big stick -- beat EDT unconsciousANNECY::ROBERTSNigel Roberts@AEO, DTN 887-4077Fri Nov 27 1987 12:0317
    If you are using "real" EDT, (not TPU) all you have to do is
    ^Y
    $SPAWN
    .
    .
    moby DCL commands
    .
    .
    $logout
    $continue
    ^W
    
    If you are using the TPU version the point is moot anyway -- just
    do a SPAWN from within TPU.
    
    N.
    
610.2RIKKA::PALObad sneakersFri Nov 27 1987 14:174
    
    Richard...
    
    Take the hint -- don't use old EDT anymore.
610.3VISA::BIJAOUITomorrow Never KnowsMon Nov 30 1987 06:561
    Don't use SPAWN either.
610.4^Y CaveatDPDMAI::BEATTIEBut, Is BLISS ignorance?Mon Nov 30 1987 14:1514
    Re: .1
    
    Be careful of using ^Y/SPAWN to get out of EDT if executing in the
    context of a command procedure (which many do to add "friendly-ness"
    to their editing environment).  I've never successfully gotten back
    into my editing session directly, (must have something to do with
    the default handling of ^Y withing ".COM" file context...)
    
    Thank goodness for journal files.  
    					-- Brian
    
    PS: Concur with .2; TPU is much more fun.  EVE is definitely worth
    the effort to learn and extend.  BDB
    
610.5I like to SPAWNSRFSUP::LONGOBob LongoWed Dec 02 1987 02:083
    RE: .3
    
    What's wrong with SPAWN?
610.6I prefer ATTACH :-)VISA::BIJAOUITomorrow Never KnowsWed Dec 02 1987 07:1418
    Well. SPAWN eats a lot of resources when being run. 
    It is *fairly* long to execute, and for one command, it is crazy.
    
    The solution I've found to cope with that, was to run each of the
    main utilities (TPU, MAIL, NOTES) in a sub-process (created, oeuf
    Corse, with SPAWN), and jump from one to another using ATTACH.
    This is much more efficient. 'Cos afterwards, whenever you need
    the DCL from MAIL, NOTES or TPU, you just have to type 'attach',
    or to type one key (since each of these utilities allow you to do
    some keypad definitions).
    The time is takes to do an ATTACH is nearly zero, compared to the
    time it takes to do a SPAWN. And SPAWN is much more *painful* to 
    the system, and thus, to the other users.
    
    I guess that basically, it's a matter of taste. Like colors.
    
    
    Pierre.
610.7Try the XLATE functionDSSDEV::MUNYANSteve MunyanWed Dec 02 1987 12:507
    
    I haven't used EDT in years but seem to remember that you could
    execute DCL commands from inside EDT using the XLATE command.  However
    at this point it's been so long I'm lucky I remembered that much of it.
    
    Steve
    
610.8xlateOVDVAX::LENNIGDave, SWS, @CYO CincinnatiMon Dec 07 1987 01:428
    Rather than using the DCL EDIT command, which invokes a front end
    which eventually calls EDTSHR, write your own front end, specify
    the xlate routine address in your call to EDTSHR.
    
    One place this is documented is in the RSX11M+ V3 EDT manual, 
    appendix D -"Using EDT with the VAX/VMS operating system"
    
    Dave
610.9Defined Keys get lost !!GVAADG::HANNAIt's in the trees. It's coming!Mon Dec 14 1987 09:5839
Re: 610.6

>    The solution I've found to cope with that, was to run each of the
>    main utilities (TPU, MAIL, NOTES) in a sub-process (created, oeuf
>    Corse, with SPAWN), and jump from one to another using ATTACH.
>    This is much more efficient. 'Cos afterwards, whenever you need
>    the DCL from MAIL, NOTES or TPU, you just have to type 'attach',
>    or to type one key (since each of these utilities allow you to do
>    some keypad definitions).

Pierre, I liked your idea and tried it but ...

I start loosing access to keypad definitions after a few hops.

Here's what I have:

	HANNA  (Main process) with set term/application plus
					F18 defined as "att zmail"
					F19 defined as "att znotes"

	ZMAIL  (first subprocess) running MAIL with
					F17 defined as "att hanna"
					F19 defined as "att znotes"

	ZNOTES (second subprocess) running NOTES with
					F17 defined as "att hanna"
					F18 defined as "att zmail"

All works fine until I come out from notes back to my main process.
Then I loose my "application_keypad mode" and I'm back in "numeric_keypad
mode" which means my other keypad commands (on KP1 to KP9) are unaccessible.

And then they go inside mail ! I can't do the "comma" key to get DIR/NEW.

Any help will be appreciated !

Zayed

P.S. I love the SPAWNing/ATTACHinf from LSE functionality.
610.10Put an <esc>= in your prompt...FROST::HARRIMANHow do I work this?Mon Dec 14 1987 11:381
    
610.11Do I want my prompt escaping ?GVAADG::HANNAIt's in the trees. It's coming!Mon Dec 14 1987 12:539
>                          -< Put an <esc>= in your prompt... >-

    Please forgive my ignorance but I don't quite catch on to what you mean.

    Are you saying to do a $ SET PROMPT="<ESC>=whatever-text" ?

    If so why does that change anything ?

    :Zayed:
610.12A fugitive prompt does it !GVAADG::HANNAIt's in the trees. It's coming!Mon Dec 14 1987 13:217
    I guess you were (saying to do a $ SET PROMPT="<ESC>=whatever-text"). Ijust
    tried and it works very nicely thank you.

    What about MAIL ? Any idea why it looses its key definitions ?

    :Zayed:
    
610.13Yeah, it works.FROST::HARRIMANHow do I work this?Mon Dec 14 1987 15:2718
    
    re: .-1, .-2
    
    Yeah, I knew it worked, I use it all the time... ;^)
    
    It seems that MAIL is the culprit. It invariably sends my keypad
    back into numeric mode whenever I do an Attach/Parent.
    
    Not having had time to look into the sources (besides I don't have
    new ones) maybe one of the devos knows better...
    
    TPU doesn't have this problem, either. 
    
    Ah well. Enjoy.
    
    /pjh
    
    
610.14ERIS::CALLASI like to put things on top of thingsMon Dec 14 1987 17:033
    Have you tried SET TERMINAL/APPLICATION?
    
    	Jon
610.15Yup.FROST::HARRIMANHow do I work this?Mon Dec 14 1987 19:5210
    
    re: .-1
    
    Yes, I have. It's not the VMS system that loses it, it seems to
    be the terminal. The <ESC>= tells the terminal to go back to
    application keypad mode since it gets stuck in numeric mode. That's
    what threw me in the first place. SHO TERM says "Application keypad"
    yet I punch numbers instead of "Attach ""Harriman/TPU;1""... 
    
    /pjh
610.16NEWVAX::CRITZRichard aka KB4N &amp; N11506Mon Dec 21 1987 14:176
    RE: -several
    
    I use <esc>= in the prompt AND set term/appl and have no trouble
    with mail or anyone else.  Just use both.
    
    -r