From owner-freebsd-ports Sun Aug 11 12:07:16 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA06123 for ports-outgoing; Sun, 11 Aug 1996 12:07:16 -0700 (PDT) Received: from vector.jhs.no_domain (slip139-92-42-175.ut.nl.ibm.net [139.92.42.175]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id MAA06107; Sun, 11 Aug 1996 12:07:08 -0700 (PDT) Received: (from jhs@localhost) by vector.jhs.no_domain (8.7.5/8.6.9) id VAA15069; Sun, 11 Aug 1996 21:03:48 +0200 (MET DST) Date: Sun, 11 Aug 1996 21:03:48 +0200 (MET DST) Message-Id: <199608111903.VAA15069@vector.jhs.no_domain> To: bvsmith@lbl.gov cc: ports@FreeBSD.ORG, gj@FreeBSD.ORG, me@FreeBSD.ORG, asami@FreeBSD.ORG Subject: xfig.3.1.4 extension to support vi -C signals linkage From: "Julian H. Stacey" Reply-To: "Julian H. Stacey" Organization: Vector Systems Ltd. Address: Holz Strasse 27d, 80469 Munich, Germany Phone: +49.89.268616 Fax: +49.89.2608126 Web: http://www.freebsd.org/~jhs/ Mailer: EXMH 1.6.7, PGP available Sender: owner-ports@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I have developed an extension to xfig.3.1.4 (Ref. freebsd/ports/graphics/xfig) that allows an adjacent xterm running 'vi' to send a signal on each ':w' that xfig interprets as a re-open & redisplay command. This mechanism is compatible with my previous work on vi ghostview & chimera. The sources are viewable from here: http://www.freebsd.org/~jhs/src/bsd/fixes/FreeBSD/ as these: ports/generic/graphics/xfig/patches/ src/generic/share/mk/text.mk src/generic/usr.bin/vi/ ports/generic/print/ghostview/ ports/generic/www/chimera/ To try it: Apply the patches, compile, create a one line makefile with .include and then issue one of these commands make something.vfig make something.vhtml make something.vps My appropriate .ps .html or .fig viewer then starts, vi then starts, & the signal handling & any appropriate make rules are applied on every subsequent write. Makes for a sort of WYSIWYG effect with a .rof file & "make something.vps", make a handy web editor with "make something.vhtml", & makes a handy way of tweaking & viewing .fig file contents from vi, with instant zero additional mouse clicks necessary. Share & Enjoy :-) Julian -- Julian H. Stacey jhs@freebsd.org http://www.freebsd.org/~jhs/