[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

675.0. "Echo or log screen to a file" by GENRAL::WOOD (Celeste Wood) Mon Jan 25 1988 15:08

    I want to save the contents of my screen to a file so that I can
    mail it to someone.  Is there a way to echo your screen to a file
    like when you echo the contents to an attached printer with 
    the Esc[5i sequence?  
    No one seems to know if this can be done in VMS.  It seems reasonable
    to me.  How else are you going to debug a command sequence?
    I need to record both the commands I am entering and their responses.
    
    For example : Show Quota

    Thanks for your help, Celeste
        
T.RTitleUserPersonal
Name
DateLines
675.1Actually it's in the manual...FROST::HARRIMANwith real glycerine vibraphoneMon Jan 25 1988 15:3018
    
    $ set host/log 0
     
     Username: etc
     Password: <not echoed>
    
    $ ! log starts
    
       doo dah
    
    
    $ logout		! log ends
    %control returned to ...
    
    $ ! and there you are....
    
    /pjh
    
675.2Try EVEFOR10::JOHNLet&#039;s Go Caps!!!Mon Jan 25 1988 20:476
          The "DCL" command in the EVE editor is very nice for
          recording (portions of) DCL sessions.  (It's the only
          reason to ever use EVE, imho...) 

          - John
675.3set host/log=foo.dat 0 STAR::DICKINSONPeterMon Jan 25 1988 21:442

675.4s.th. in the TOOLSHEDUNTADG::SACHSElife := (2b).or.(.not.(2b))Tue Jan 26 1988 04:1516
    For a REGIS terminal, you may use two tools in the toolshed:
    GRAFDUMP (unreliable) and (better) CAPTURE.
    
    Both of them use the (undocumented?) sequence <ESC>[?2i  to redirect
    the output of the following 'graphic dump screen' sequence (don't
    remember exactly what it was) from the printer port to the
    communications port. Then, they just read strings from the terminal
    that ARE the dump of the screen (sixel mode).
    
    I've tried to do an <ESC>[?2i  ('redirect "dump screen"-output to
    comm.-port') followed by an <ESC>[i  ('dump screen') on a VT220,
    but that didn't work. Maybe somebody else reached to do this on
    a non-REGIS terminal ?
    
    BTW: There's just a few documentation to both of the tools, but
    you should be able to do it with that.
675.5Continuing with SACHSE's CAPTURE noteVIDEO::OSMANtype video::user$7:[osman]eric.vt240Tue Jan 26 1988 11:5416
After I've used CAPTURE to copy my screen to a file as sixels,
is there another tool I can then use on the sixel file to convert
it back into characters ?

Also, please note that the sixel dump and the SET HOST/LOG are
totally different paradigms, and it's not clear which the original
imposter was asking for.

For one thing, SET HOST/LOG is useless if you didn't think to do it
beforehand, and suddenly you have a screen you'd like to save in a file.

For that matter, CAPTURE might be useless to, since to type the CAPTURE
command means altering your screen.  Perhaps you can type CAPTURE on
another terminal but I doubt it.

/Eric
675.6All the same problemsUNTADG::SACHSElife := (2b).or.(.not.(2b))Wed Jan 27 1988 02:5729
� < Note 675.5 by VIDEO::OSMAN "type video::user$7:[osman]eric.vt240" >
� After I've used CAPTURE to copy my screen to a file as sixels,
� is there another tool I can then use on the sixel file to convert
� it back into characters ?

    I've never seen a sixel-to-text conversion utility (if you think
    about it, it must be really hard to do), but there is no problem
    in printing this out on a LA50 upward, or including it into a document
    (either with RUNOFF or DOCUMENT).


� Also, please note that the sixel dump and the SET HOST/LOG are
� totally different paradigms, and it's not clear which the original
� imposter was asking for.

    Maybe .0 (Celeste Wood) should specify more exactly what the tool
    should do.

� For that matter, CAPTURE might be useless to, since to type the CAPTURE
� command means altering your screen.  Perhaps you can type CAPTURE on
� another terminal but I doubt it.

    You need to have thought of dumping the screen beforehand, because
    you need to set some LAT Terminal characteristics to do it.
    But it would be possible to broadcast the escape-sequence from another
    terminal to the terminal-to-be-dumped, then (how?) read the dump
    file from this terminal into a file. Nice challenge, isn't it ?

    -Joachim
675.7rathole-f-abort, Switch to new notePASTIS::MONAHANI am not a free number, I am a telephone boxThu Jan 28 1988 03:5510
    re:.6, but a rathole from this note,
    
    Sixel to text should not be that difficult. There are document
    scanners that work with similar data, the only difference is that
    their data is much less predictable in font, scale and errors.
    
    Given a standard DEC screen of text, you know the font, you know there
    are no graphics, you know the scale, and you know there are no errors.
    I am not familiar with sixel, but I would expect a very hack algorithm
    (such as, if such a bit is set it *must* be an 'e') would work.