dennis@rlgvax.UUCP (Dennis Bednar) (12/12/85)
Wanted: tool that converts a file, containing terminal cursor control information (escape sequences), into a UNIX text file. Inputs: File with cursor control characters. Terminal brand which input file is encoded with. Output: File or stdout containing a UNIX text file that can be displayed on *any* terminal. Requirements: The output file should be able to be cat'ed to any terminal brand, (whereas the input file should only be cat'ed on a terminal which understands the escape sequences in the input file), and the output file should appear to look the same as if you cat'ed the input file on the terminal which understands the escape sequences in the input file. Example Application: Saving interactive screen sessions from applications programs (such as our Office Power office automation software package) which paint screens using cursor control terminal escape sequences. 1. First run typescript(1), which creates the "typescript" file. 2. Enter the application to get a screen displayed. 3. ^D Exit from typescript. 4. Run the bed(1) binary editor (available from mod.sources) to strip out unwanted stuff (such as backspaces, the typescript session started stuff, the typescript ending stuff, the UNIX prompt characters, and perhaps clear screen information. 5. Run the conversion program using typescript file as input. Real file (for fun): Below is a uuencoded file, produced by a vt100 terminal. If you have such a tool, then uudecode the below file, and then run your conversion tool, specifying the input file /tmp/fjfjfj, and vt100 encoded, then cat the output file. -------------- CUT HERE ------------------- begin 660 /tmp/fjfjfj M&ST;6S\W;!M;/S9L&RDP&ULT:1M;,3LR-'(;6VT/&UM(&UM*&ULR,$(.<7%Q M<7%Q<7%Q<7%Q<7%Q<7%Q<7%Q<7%Q<7%Q<7%Q<7%Q<7%Q<7%Q<7%Q<7%Q<7%Q M<7%Q<7%Q<7%Q<7%Q<7%Q<7%Q<7%Q<7%Q<7%Q<7%Q<7$;6SMF&ULR-#LS-68/ M5$535"!&3U)-&ULR.S-F4%))3U))5%D@,1M;-$-04DE/4DE462`R&ULU0U!2 M24]22519(#,;6S5#4%))3U))5%D@-!M;-VT;6S,[,V8@("`@("`@("`@("`@ M("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@ M("`@("`@("`@("`@("`@("`@("`;6VT;6S4[,S%F4%))3U))5%D@1$5&24Y) M5$E/3AM;-SLT9E!R:6]R:71Y&ULQ,$-#86QL:6YG(%1I;64;6S$S0T-A;&QI M;F<@1G)E<75E;F-Y&ULT0T%C=&EV91M;.#LQ.693=&%R=!M;,3-#16YD&ULQ M,$-I;B!M:6YU=&5S&ULQ,#LT9@Y^?GY^?GY^?GY^?GY^&ULR0P]!;GET:6UE M&ULR,4-);6UE9&EA=&5L>1M;,3%#6PY^#UT;6S$Q.S1F#GY^?GY^?GY^?GY^ M?GX;6S)##T%N>71I;64;6S(Q0PY^?GY^?GX;6T,/;6EN=71E<QM;.$-;#GX/ M71M;,3([-&8.?GY^?GY^?GY^?GY^?AM;,D-^?GY^?GY^?AM;-T-^?GY^?GY^ M?AM;-4-^?GY^?GX;6T,/;6EN=71E<QM;.$-;#GX/71M;,3,[-&8.?GY^?GY^ M?GY^?GY^?AM;,D-^?GY^?GY^?AM;-T-^?GY^?GY^?AM;-4-^?GY^?GX;6T,/ M;6EN=71E<QM;.$-;#GX/71M;,CLQ-F8;6S(R.V9);G1E<FYA;"!S>7-T96T@ M<')O8FQE;3L@<&QE87-E(&EN9F]R;2!/1D9)0T503U=%4B`@861M:6YI<W1R A871O<BX;6S(S.V90<F5S<R`\04-#15!4/B!T;R!E>&ET ` end ----------------- END --------------------- -- Dennis Bednar Computer Consoles Inc. Reston VA 703-648-3300 {decvax,ihnp4,harpo,allegra}!seismo!rlgvax!dennis dennis@rlgvax.UUCP