This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Window position
- To: "Ken Collins" <kcollins at pinksheets dot com>
- Subject: Re: Window position
- From: "Ehud Karni" <ehud at unix dot simonwiesel dot co dot il>
- Date: Thu, 21 Jun 2001 14:38:14 +0300
- CC: Andrej Borsenkow <Andrej dot Borsenkow at mow dot siemens dot ru>, cygwin at cygwin dot com
- Organization: Simon & Wiesel Insurance agency
- References: <5F0021EEA434D511BE7300D0B7B6AB534A8D50@MAIL2> <20010619141604.A1108@pinksheets.com>
- Reply-to: ehud at unix dot simonwiesel dot co dot il
On Tue, 19 Jun 2001 14:16:04 -0400, Ken Collins <kcollins@pinksheets.com> wrote:
>
> One of the features I'm really missing in Cygwin is the ability to
> reposition the terminal window (either console or rxvt) using echo, with
> something like this:
>
> echo -n "\033[3;9;17t"
>
> Is this a feature that's missing in termcaps?
It has nothing to do with the termcap or terminfo, since you are echoing
directly. Anyway, THERE IS direct addressing capability in both console
and rxvt and it is the same string - "\E[<line>;<column>H". Both line
and column start from 1. e.g. to position to line 10, column 30 you
should do: echo -en "\033[10;30H"
BTW. The terminfo capability name is "cup". You can do infocmp (like I
did) and see its definition.
Ehud.
--
Ehud Karni Mivtach - Simon Insurance /"\
Tel: +972-3-6212-757 Fax: +972-3-6292-544 \ / ASCII Ribbon Campaign
(USA) Fax and voice mail: 1-815-5509341 X Against HTML Mail
Better Safe Than Sorry / \
mailto:ehud@unix.simonwiesel.co.il http://www.simonwiesel.co.il
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple