Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in echotc ?
- X-seq: zsh-workers 20911
- From: Clint Adams <clint@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxx
- Subject: Re: Bug in echotc ?
- Date: Wed, 2 Mar 2005 11:10:48 -0500
- In-reply-to: <20050302150800.GA10579@xxxxxxxxxxx>
- 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>
> echotc is broken. I think it's still broken after this patch.
This is probably a bit more appropriate.
Index: Src/Modules/termcap.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/termcap.c,v
retrieving revision 1.19
diff -u -r1.19 termcap.c
--- Src/Modules/termcap.c 2 Mar 2005 15:12:30 -0000 1.19
+++ Src/Modules/termcap.c 2 Mar 2005 16:10:10 -0000
@@ -154,8 +154,9 @@
if (!argct)
tputs(t, 1, putraw);
else {
+ /* This assumes arguments of <lines> <columns> for cap 'cm' */
num = (argv[1]) ? atoi(argv[1]) : atoi(*argv);
- tputs(tgoto(t, num, atoi(*argv)), num, putraw);
+ tputs(tgoto(t, num, atoi(*argv)), 1, putraw);
}
return 0;
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author