From: Clint Adams <clint@zsh.org>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: Bug in echotc ?
Date: Wed, 2 Mar 2005 13:25:04 -0500 [thread overview]
Message-ID: <20050302182504.GA16662@scowler.net> (raw)
In-Reply-To: <1050302182031.ZM29878@candle.brasslantern.com>
> Because atoi(*argv) is "the number of lines affected". Except it isn't,
> quite, because really the number of lines affected is the difference
> between the current line and the target line. So maybe 1 is the right
> value to use for the second argument of tputs() after all. Except if
My thought was based on the assumption that affcnt is used only for
delay padding.
> this isn't a "cm" but rather a relative line-motion such as "DO" or "UP"
> then ... maybe what we want is
>
> num = atoi(*argv);
> if (argct == 1)
> tputs(tgoto(t, num, num), num, putraw);
> else
> tputs(tgoto(t, atoi(argv[1]), num), 1, putraw);
>
> Except it's not clear *that* does the right thing with "LE" or "RI".
> Gag.
I think that there's probably a reason everyone says to use terminfo instead.
prev parent reply other threads:[~2005-03-02 18:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-02 9:10 Bart Schaefer
2005-03-02 15:08 ` Clint Adams
2005-03-02 16:10 ` Clint Adams
2005-03-02 18:20 ` Bart Schaefer
2005-03-02 18:25 ` Clint Adams [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050302182504.GA16662@scowler.net \
--to=clint@zsh.org \
--cc=schaefer@brasslantern.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).