mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-10-02 00:41:44 +02:00
* 20911: Src/Modules/termcap.c: and set affcnt to 1 unconditionally
when we echotc a capability with arguments (which we then assume to be the 'cm' capability, with arguments in the form <rows> <columns>.
This commit is contained in:
parent
27c52ad072
commit
4a007b41d7
@ -1,7 +1,10 @@
|
||||
2005-03-02 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 20909: Src/Modules/termcap.c: reverse row and col
|
||||
arguments to tgoto.
|
||||
* 20909, 20911: Src/Modules/termcap.c: reverse row and col
|
||||
arguments to tgoto(), and set affcnt to 1 unconditionally
|
||||
when we echotc a capability with arguments (which we then
|
||||
assume to be the 'cm' capability, with arguments in the
|
||||
form <rows> <columns>.
|
||||
|
||||
2005-03-01 Peter Stephenson <pws@csr.com>
|
||||
|
||||
|
@ -154,8 +154,9 @@ bin_echotc(char *name, char **argv, UNUSED(Options ops), UNUSED(int func))
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user