[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
LYNX-DEV Patch to view a .zip file in DirEd mode
From: |
Jim Spath (Webmaster Jim) |
Subject: |
LYNX-DEV Patch to view a .zip file in DirEd mode |
Date: |
Tue, 28 Jan 1997 12:12:26 -0500 (EST) |
The following patch adds "unzip -v -M" capability to the DirEd menu.
The only problem I have right now is the screen needs to be
refreshed after completion of the command.
-----cut here----
*** src/LYLocal.c.df Sun Jan 12 16:02:54 1997
--- src/LYLocal.c Tue Jan 28 12:04:42 1997
***************
*** 124,129 ****
--- 124,131 ----
#if defined(OK_ZIP) && !defined(ARCHIVE_ONLY)
{ DE_FILE, ".zip", "Uncompress",
"(current selection)", "LYNXDIRED://UNZIP%p", NULL },
+ { DE_FILE, ".zip", "ViewArchive",
+ "(current selection)", "LYNXDIRED://VIEWZIP%p", NULL },
#endif /* OK_ZIP && !ARCHIVE_ONLY */
#if defined(OK_TAR) && !defined(ARCHIVE_ONLY)
***************
*** 1460,1465 ****
--- 1462,1474 ----
*cp = '\0';
cp = quote_pathname(line+17);
sprintf(buffer,"cd %s; %s -q %s", cp, UNZIP_PATH, tp);
+ FREE(cp);
+ FREE(tp);
+ } else if (!strncmp(line,"LYNXDIRED://VIEWZIP",19)) {
+ tp = quote_pathname(line+19);
+ *cp = '\0';
+ cp = quote_pathname(line+19);
+ sprintf(buffer,"cd %s; %s -v -M %s", cp, UNZIP_PATH, tp);
FREE(cp);
FREE(tp);
# endif /* !ARCHIVE_ONLY */
-----cut here----
X-Face:$[):DI3,{Z,[[9Gb^H.yPU[6-J}^Co2e-J!p*jQ>Q8++K~?Ejg~3#,vmYi;O8E55~r~#wa2
WdUS{+X2e6mt${6._[/<C5~mEVeY5J1,6>U%N~y"Br4L6Lm%S0XI8RRTs"'address@hidden@address@hidden'"
cKd3Acq&}J;,FhT"6d1[H=*<;o2?Z_RK&He4+Td%v3:47/5;A>0mBqsG-KB8l:\43FGDe;U
I don't speak (or work) for the Baltimore County Public Library.
They keep telling me, "Shhhhh!"
;
; To UNSUBSCRIBE: Send a mail message to address@hidden
; with "unsubscribe lynx-dev" (without the
; quotation marks) on a line by itself.
;
- LYNX-DEV Patch to view a .zip file in DirEd mode,
Jim Spath (Webmaster Jim) <=
Re: LYNX-DEV Patch to view a .zip file in DirEd mode, Foteos Macrides, 1997/01/28