From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28102 invoked from network); 18 Jan 2008 20:25:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 18 Jan 2008 20:25:21 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 31612 invoked from network); 18 Jan 2008 20:25:14 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Jan 2008 20:25:14 -0000 Received: (qmail 10002 invoked by alias); 18 Jan 2008 20:25:10 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24412 Received: (qmail 9984 invoked from network); 18 Jan 2008 20:25:09 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 18 Jan 2008 20:25:09 -0000 Received: from virusfilter.dotsrc.org (bifrost [127.0.0.1]) by spamfilter.dotsrc.org (Postfix) with ESMTP id 85D6080307F6 for ; Fri, 18 Jan 2008 21:25:05 +0100 (CET) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by bifrost.dotsrc.org (Postfix) with ESMTP for ; Fri, 18 Jan 2008 21:25:04 +0100 (CET) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1JFxlu-0004kU-MS for zsh-workers@sunsite.dk; Fri, 18 Jan 2008 20:25:02 +0000 Received: from wsip-24-234-106-159.lv.lv.cox.net ([24.234.106.159]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Jan 2008 20:25:02 +0000 Received: from steven by wsip-24-234-106-159.lv.lv.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Jan 2008 20:25:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-workers@sunsite.dk From: Steven Lumos Subject: Re: idea for new feature (was: Re: sticky-note and zle bindings) Date: Fri, 18 Jan 2008 12:02:59 -0800 Message-ID: References: <20080104105900.37a87f7e@news01> <237967ef0801040304h494987bv939bf6ff9541123f@mail.gmail.com> <477E177A.3060303@kotiportti.fi> <080113000048.ZM15017@torch.brasslantern.com> <20080116131048.GC16058@spiegl.de> <080116075915.ZM12209@torch.brasslantern.com> <20080116171253.GF16058@spiegl.de> <080116191103.ZM12889@torch.brasslantern.com> <20080117172603.GA664@spiegl.de> <691a5d910801180119p32d48643wa55fd2aefaa3bf6a__27696.5395118625$1200648096$gmane$org@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: wsip-24-234-106-159.lv.lv.cox.net User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (usg-unix-v) Cancel-Lock: sha1:AaSqiqOfqSo0MQ4AZGORFnRFO7M= Sender: news X-Virus-Scanned: ClamAV using ClamSMTP "Bart Schaefer" writes: > On 1/17/08, Andy Spiegl wrote: >> > The upshot is that this isn't a zsh feature -- it's a cooperative >> > feature that requires effort from both the shell and whatever other >> > user interface environment it's running inside. >> Right, so let's start. :-) > > Here's something that may be of use. Recent xterm has adopted window > control sequences from dtterm, according to > http://www.xfree86.org/current/ctlseqs.html, so zsh might have a > chance at saving/restoring some window state. I haven't tried Konsole > but Gnome-terminal pays attention to a subset of this. Other > terminals I don't know. I guess "recent" may be relative (Sun 1 you say?), but I've been using the following for at least 7 years. I do something like % xtctl size 100 60 move 0 0 all the time on XTerm, rxvt (cygwin no less), OSX Terminal.app, and PuTTY. That ctlseqs.ms certainly does get around.... (If it looks naive, it's because I was limiting it to Bourne shell, mostly for fun. At some point while implementing 'get' I gave up and switched to bash, but it's been so long now that I don't remember why.) Err, Gnus helpfully informed me that there was a literal ^[ and ^G in there (Bourne shell...), so here's a link instead: http://www.isri.unlv.edu/~slumos/hacks/xtctl. It's mostly a curiosity at this point anyway... Steve