Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in echotc ?
- X-seq: zsh-workers 20914
- From: Clint Adams <clint@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Bug in echotc ?
- Date: Wed, 2 Mar 2005 13:25:04 -0500
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <1050302182031.ZM29878@xxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <1050302091036.ZM29038@xxxxxxxxxxxxxxxxxxxxxxx> <20050302150800.GA10579@xxxxxxxxxxx> <20050302161048.GA12461@xxxxxxxxxxx> <1050302182031.ZM29878@xxxxxxxxxxxxxxxxxxxxxxx>
> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author