Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Archives where you can get LOOK software
@ 1992-03-18 12:29 Serge P. Kovalyov
  1992-03-19 16:04 ` Igor Mandrichenko
  0 siblings, 1 reply; 3+ messages in thread
From: Serge P. Kovalyov @ 1992-03-18 12:29 UTC (permalink / raw)


About two weeks ago an advertisement of "... new VMS software product -
fast file viewer LOOK" occured in news. Now this software is available
on file servers:
  - FILESERV@WKUVX1.BITNET (request by mail message containing string
    SEND LOOK ) - thanks to Hunter Goatley, Western Kentucky University;
  - VMSSERV@UBVMS.BITNET ( SEND LOOK.PACKAGE ) or via anonymous FTP
    ubvmsb.cc.buffalo.edu - thanks to Jim Gerland, Buffalo N.Y.


I received many good advices, such as:

>Dear Serge Kovalyov,

>I just tested your new LOOK software. It's really fine!
[...]
>I would REALLY like to see that LOOK will have a switch between 2
>modes: the current one with the status lines and one with displaying full
>24 lines on the VT100 terminal.

>Why is line # 23 always empty? In my eyes a waste.

>Spawning an editor eats a lot of resources, a callable editor will be much
>faster.

>Conclusion: If you'll add a mode to display at least 23 lines I will throw
>away my other file viewers :-)

     (From  orakel@rzmain.rz.uni-ulm.de (Ulli Horlacher, Uni Ulm, Germany))


You can "upgrade" LOOK software according to these comments using the following
command file.
					Best wishes, Serge.

$! ------------------ CUT HERE -----------------------
$ v='f$verify(f$trnlnm("SHARE_VERIFY"))'
$!
$! This archive created by VMS_SHARE Version 7.2-007  22-FEB-1990
$!   On 18-MAR-1992 04:50:36.49   By user KOVALYOV 
$!
$! This VMS_SHARE Written by:
$!    Andy Harper, Kings College London UK
$!
$! Acknowledgements to:
$!    James Gray       - Original VMS_SHARE
$!    Michael Bednarek - Original Concept and implementation
$!
$! TO UNPACK THIS SHARE FILE, CONCATENATE ALL PARTS IN ORDER
$! AND EXECUTE AS A COMMAND PROCEDURE  (  @name  )
$!
$! THE FOLLOWING FILE(S) WILL BE CREATED AFTER UNPACKING:
$!       1. LOOK_UPDATE.COM;4
$!
$set="set"
$set symbol/scope=(nolocal,noglobal)
$f=f$parse("SHARE_TEMP","SYS$SCRATCH:.TMP_"+f$getjpi("","PID"))
$e="write sys$error  ""%UNPACK"", "
$w="write sys$output ""%UNPACK"", "
$ if f$trnlnm("SHARE_LOG") then $ w = "!"
$ ve=f$getsyi("version")
$ if ve-f$extract(0,1,ve) .ges. "4.4" then $ goto START
$ e "-E-OLDVER, Must run at least VMS 4.4"
$ v=f$verify(v)
$ exit 44
$UNPACK: SUBROUTINE ! P1=filename, P2=checksum
$ if f$search(P1) .eqs. "" then $ goto file_absent
$ e "-W-EXISTS, File ''P1' exists. Skipped."
$ delete 'f'*
$ exit
$file_absent:
$ if f$parse(P1) .nes. "" then $ goto dirok
$ dn=f$parse(P1,,,"DIRECTORY")
$ w "-I-CREDIR, Creating directory ''dn'."
$ create/dir 'dn'
$ if $status then $ goto dirok
$ e "-E-CREDIRFAIL, Unable to create ''dn'. File skipped."
$ delete 'f'*
$ exit
$dirok:
$ w "-I-PROCESS, Processing file ''P1'."
$ if .not. f$verify() then $ define/user sys$output nl:
$ EDIT/TPU/NOSEC/NODIS/COM=SYS$INPUT 'f'/OUT='P1'
PROCEDURE Unpacker ON_ERROR ENDON_ERROR;SET(FACILITY_NAME,"UNPACK");SET(
SUCCESS,OFF);SET(INFORMATIONAL,OFF);f:=GET_INFO(COMMAND_LINE,"file_name");b:=
CREATE_BUFFER(f,f);p:=SPAN(" ")@r&LINE_END;POSITION(BEGINNING_OF(b));
LOOP EXITIF SEARCH(p,FORWARD)=0;POSITION(r);ERASE(r);ENDLOOP;POSITION(
BEGINNING_OF(b));g:=0;LOOP EXITIF MARK(NONE)=END_OF(b);x:=ERASE_CHARACTER(1);
IF g=0 THEN IF x="X" THEN MOVE_VERTICAL(1);ENDIF;IF x="V" THEN APPEND_LINE;
MOVE_HORIZONTAL(-CURRENT_OFFSET);MOVE_VERTICAL(1);ENDIF;IF x="+" THEN g:=1;
ERASE_LINE;ENDIF;ELSE IF x="-" THEN IF INDEX(CURRENT_LINE,"+-+-+-+-+-+-+-+")=
1 THEN g:=0;ENDIF;ENDIF;ERASE_LINE;ENDIF;ENDLOOP;t:="0123456789ABCDEF";
POSITION(BEGINNING_OF(b));LOOP r:=SEARCH("`",FORWARD);EXITIF r=0;POSITION(r);
ERASE(r);x1:=INDEX(t,ERASE_CHARACTER(1))-1;x2:=INDEX(t,ERASE_CHARACTER(1))-1;
COPY_TEXT(ASCII(16*x1+x2));ENDLOOP;WRITE_FILE(b,GET_INFO(COMMAND_LINE,
"output_file"));ENDPROCEDURE;Unpacker;QUIT;
$ delete/nolog 'f'*
$ CHECKSUM 'P1'
$ IF CHECKSUM$CHECKSUM .eqs. P2 THEN $ EXIT
$ e "-E-CHKSMFAIL, Checksum of ''P1' failed."
$ ENDSUBROUTINE
$START:
$ create 'f'
X$!
X$!      Command file to update LOOK software.
X$!
X$!      Serge Kovalyov, March 1992.
X$!
X$!
X$!      Having processed LOOK software sources by this command file,
X$!      you will change screen layout a bit: all screen lines`20
X$!      (except the first and the last) will be used
X$!      to display file contents. You will be able even to switch off
X$!      the keybar (using command 'look -b ...'). Besides, text editor
X$!      will be invoked by LOOK software not through subprocess, but
X$!      simply by control transferring; it will be a bit faster, but
X$!      with quitting from LOOK software just after editor invoking.
X$!
X$!      Note: execute this file in the directory where your sources are stor
Ved.
X$!      (both LOOK.C and VIEW$VIEW_HLP.VIEW$HLP are modified).
X$!
X$!`09`09`09`09`09`09Cheers, Serge.
X$!
X$ write sys$output "Updating LOOK software..."
X$ edit/tpu/nosection/nodisplay/command=sys$input
X  procedure find_replace($a, $b) position(search($a, forward, exact, b));
X  copy_text($b); endprocedure
X  b := create_buffer("look", "look.c");
X  position(beginning_of(b)); set(overstrike, b);
X  find_replace("`7B SMG$K_BOTTOM, 1, SMG$M_REVERSE, 0 `7D",
X               "`7B SMG$K_TOP, 1, SMG$M_REVERSE, 0 `7D   ");
X  find_replace("SMG$M_LEFT;",
X               "SMG$M_LEFT;   int outkbar = 2;");
X  find_replace("vdisp.wid = k_bar.firstrow - 4;",
X               "vdisp.wid = k_bar.firstrow - outkbar;");
X  find_replace("int p_rows = vdisp.wid + 2;",
X               "int p_rows = 1;            ");
X  find_replace("int p_cols = vf_inf.inv.pos + strlen(invite`5Bbufnum`5D);",
X               "int p_cols = vf_inf.inv.beg + strlen(invite`5Bbufnum`5D);");
X  find_replace("p_cols = vf_inf.inv.pos + strlen(invite`5Bbufnum`5D);",
X               "p_cols = vf_inf.inv.beg + strlen(invite`5Bbufnum`5D);");
X  find_replace("p_cols = vf_inf.inv.pos + strlen(vf_inf.inv.sline);",
X               "p_cols = vf_inf.inv.beg + strlen(vf_inf.inv.sline);");
X  find_replace("return (lib$spawn(outline(line)) == SS$_NORMAL)",
X               "lib$do_command(outline(line));                 ");
X  find_replace("? EXIT_NORMAL : RELOOK;",
X               "return 0;              ");
X  find_replace("CHECKRESULT(smg$unpaste_virtual_display(&k_bar.id, &p_id));"
V,
X               "if (outkbar != 1) CHECKRESULT(smg$unpaste_virtual_display(&k
V_bar.id, &p_id));");
X  find_replace("CHECKRESULT(smg$erase_pasteboard(&p_id));",
X               "CHECKRESULT(smg$erase_pasteboard(&p_id));CHECKRESULT(smg$pas
Vte_virtual_display(&vdisp.id,&p_id,&vdisp.firstrow,&vdisp.firstcol));");
X  find_replace("CHECKRESULT(smg$paste_virtual_display(&k_bar.id, &p_id,",
X               "if(outkbar!=1)CHECKRESULT(smg$paste_virtual_display(&k_bar.i
Vd,&p_id,&k_bar.firstrow,&k_bar.firstcol));return SS$_NORMAL;/*");
X  find_replace("case 'T':",
X               "*/ case 'T':");
X  find_replace("CHECKRESULT(smg$paste_virtual_display(&k_bar.id, &p_id,",
X               "if (outkbar != 1) CHECKRESULT(smg$paste_virtual_display(&k_b
Var.id, &p_id,");
X  find_replace("Fast file viewer V5.27.",
X               "Fast file viewer V5.28.");
X  find_replace("if (arguments > 1)",
X               "if((arguments>1)&&(parameter`5B1`5D`5B0`5D=='-')) `7B if((pa
Vrameter`5B1`5D`5B1`5D=='b')`7C`7C(parameter`5B1`5D`5B1`5D=='B')) outkbar=1;
V i=2; `7D else i=1; if(i<arguments)");
X  find_replace("for (i = 1; i < arguments; i++) view_manager(parameter`5Bi`5
VD);",
X               "for (; i < arguments; i++) view_manager(parameter`5Bi`5D);
V     ");
X  write_file(b, "look_new.c");
X  b := create_buffer("help", "view$view_hlp.view$hlp");
X  position(beginning_of(b)); set(insert, b);
X  position(search("(hotkey 'Q').", forward, exact, b)); position(line_end);
X  split_line; split_line;
X  copy_text("   Note: you can switch off the keybar using 'look -b ...'.");
X  write_file(b, "view$view_hlp.view$hlp_new"); quit;
X$ write sys$output "Updated OK."
X$ write sys$output "Modified source is     LOOK_NEW.C,"
X$ write sys$output "modified help file is  VIEW$VIEW_HLP.VIEW$HLP_NEW."
X$ write sys$output ""
X$ write sys$output "Compiling..."
X$ cc look_new
X$ write sys$output "Linking..."
X$ link look_new,sys$input:/opt
Xsys$share:vaxcrtl.exe/share
X$ write sys$output "Defining environment..."
X$ look:==$'f$environment("DEFAULT")'look_new
X$ define LOOK$HELP "look view$view_hlp.view$hlp_new"
X$ define LOOK$EDIT "ed/tpu %s"
X$ write sys$output ""
X$ write sys$output "Usage:"
X$ write sys$output "  $ look`5B -b`5D`5B file-spec`5D`5B file-spec...`5D "
X$ write sys$output "(key -b is used to switch off the keybar)"
X$ write sys$output "or (for help)"
X$ write sys$output "  $ look ?"
$ CALL UNPACK LOOK_UPDATE.COM;4 577322048
$ v=f$verify(v)
$ EXIT


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Archives where you can get LOOK software
  1992-03-18 12:29 Archives where you can get LOOK software Serge P. Kovalyov
@ 1992-03-19 16:04 ` Igor Mandrichenko
  1992-03-20 15:19   ` Jim Gerland
  0 siblings, 1 reply; 3+ messages in thread
From: Igor Mandrichenko @ 1992-03-19 16:04 UTC (permalink / raw)


kovalyov@inpbox.inp.nsk.su (Serge P. Kovalyov) writes:
: About two weeks ago an advertisement of "... new VMS software product -
: fast file viewer LOOK" occured in news. Now this software is available
: on file servers:
:   - FILESERV@WKUVX1.BITNET (request by mail message containing string
:     SEND LOOK ) - thanks to Hunter Goatley, Western Kentucky University;
:   - VMSSERV@UBVMS.BITNET ( SEND LOOK.PACKAGE ) or via anonymous FTP
:     ubvmsb.cc.buffalo.edu - thanks to Jim Gerland, Buffalo N.Y.

	Unfortunetely all these archives are on BITNET. I have tried to
get something from WKUVX1 and WKUVX many times with no success :-(. It's
because it's on BITNET.
	What about to send it's sources to comp.os.vms or relcom.sources
with distribution su ?

			Regards, Igor Mandrichenko
			mandrichenko@mx.decnet.ihep.su


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Archives where you can get LOOK software
  1992-03-19 16:04 ` Igor Mandrichenko
@ 1992-03-20 15:19   ` Jim Gerland
  0 siblings, 0 replies; 3+ messages in thread
From: Jim Gerland @ 1992-03-20 15:19 UTC (permalink / raw)



In article <199203191604.AA10628@desert.ihep.su>, igor@desert.ihep.su (Igor Mandrichenko)
writes:
>kovalyov@inpbox.inp.nsk.su (Serge P. Kovalyov) writes:
>: About two weeks ago an advertisement of "... new VMS software product -
>: fast file viewer LOOK" occured in news. Now this software is available
>: on file servers:
>:   - FILESERV@WKUVX1.BITNET (request by mail message containing string
>:     SEND LOOK ) - thanks to Hunter Goatley, Western Kentucky University;
>:   - VMSSERV@UBVMS.BITNET ( SEND LOOK.PACKAGE ) or via anonymous FTP
>:     ubvmsb.cc.buffalo.edu - thanks to Jim Gerland, Buffalo N.Y.
>
>	Unfortunetely all these archives are on BITNET. I have tried to
>get something from WKUVX1 and WKUVX many times with no success :-(. It's
>because it's on BITNET.
>	What about to send it's sources to comp.os.vms or relcom.sources
>with distribution su ?

I can attest that VMSSERV@ubvms.cc.buffalo.edu is also on the Internet and you 
should have no problem getting the package from there.  Send e-mail to
vmsserv@ubvms.cc.buffalo.edu and as the first line in the body of the mail 
message, not the Subject: line, include the following line:

send look.package

Jim...


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1992-03-20 15:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1992-03-18 12:29 Archives where you can get LOOK software Serge P. Kovalyov
1992-03-19 16:04 ` Igor Mandrichenko
1992-03-20 15:19   ` Jim Gerland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox