Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug in echotc ?



> 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