From mboxrd@z Thu Jan 1 00:00:00 1970 From: dexen deVries To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Date: Thu, 17 May 2012 11:43:40 +0200 Message-ID: <1547750.gso9ejTZvy@coil> User-Agent: KMail/4.8.2 (Linux/3.4.0-rc7-l44; KDE/4.8.2; x86_64; ; ) In-Reply-To: References: <2460982.Lf3AEVNxi6@coil> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart1397529.kc2Cy0dt8B" Content-Transfer-Encoding: 7Bit Subject: Re: [9fans] the `Look' command in Acme Topicbox-Message-UUID: 902ec618-ead7-11e9-9d60-3106f5b1d025 --nextPart1397529.kc2Cy0dt8B Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Thursday 17 of May 2012 11:23:47 Peter A. Cejchan wrote: > i was always missing a 'command window' where can i see the file with my > customized commands (for the task i'm working on), w/o restarting acme. see > my ancient postings about an idea how to replace (mostly redundant) > taglines with a command window. (yes, i can open my guide file in a window > and snarf/paste to a tagline; however, it's at least, unelegant...) probably the Dump/Load (or the -l argument) would do the trick for you. anyway, hacking Acme's C sources to adjust content of tag line is easy enough. -- dx --nextPart1397529.kc2Cy0dt8B Content-Disposition: attachment; filename="0001-do-not-put-Look-in-Acme-s-window.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="utf-8"; name="0001-do-not-put-Look-in-Acme-s-window.patch" >>From 09daae41cbf3c64d3b9bbb33f59c7c1e515e789f Mon Sep 17 00:00:00 2001 From: dexen deVries Date: Tue, 25 Jan 2011 12:04:54 +0100 Subject: [PATCH 1/2] do not put `Look' in Acme's window X-Face: 1TH%]0KlR_DQ/V9+m_"neC|Yj3$MU@B/vVI\}^j`G/[9JKe=5`p[$l|z^\MRO%H6w{KF[ScIHig1.r%65; --- src/cmd/acme/wind.c | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/cmd/acme/wind.c b/src/cmd/acme/wind.c index bfe4bec..b68f66f 100644 --- a/src/cmd/acme/wind.c +++ b/src/cmd/acme/wind.c @@ -468,8 +468,15 @@ winsettag1(Window *w) else{ k = w->tag.file->b.nc; if(w->body.file->seq == 0){ - runemove(new+i, Llook, 6); - i += 6; + if (0){ + runemove(new+i, Llook, 6); + i += 6; + } + else{ + static Rune foo[] = { ' ', 0 }; + runemove(new+i, foo, 1); + i += 1; + } } } new[i] = 0; -- 1.7.5.1 --nextPart1397529.kc2Cy0dt8B--