mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-11 00:51:05 +02:00
23958: change target window to be the first argument of zcurses -a.
This commit is contained in:
parent
951c8cca0f
commit
d10721b35e
3 changed files with 10 additions and 7 deletions
|
@ -1,5 +1,8 @@
|
|||
2007-10-15 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 23958: Doc/Zsh/mod_curses.yo, Src/Modules/curses.c: change target
|
||||
window to be the first argument of zcurses -a.
|
||||
|
||||
* 23957: Doc/Zsh/mod_curses.yo, Src/Modules/curses.c: minor fixes.
|
||||
|
||||
2007-10-14 Clint Adams <clint@zsh.org>
|
||||
|
|
|
@ -6,7 +6,7 @@ The tt(zsh/curses) module makes available one builtin command:
|
|||
startitem()
|
||||
findex(zcurses)
|
||||
cindex(windows, curses)
|
||||
xitem(tt(zcurses) tt(-a) var(nlines) var(ncols) var(begin_y) var(begin_x) var(targetwin) )
|
||||
xitem(tt(zcurses) tt(-a) var(targetwin) var(nlines) var(ncols) var(begin_y) var(begin_x) )
|
||||
xitem(tt(zcurses) tt(-d) var(targetwin) )
|
||||
xitem(tt(zcurses) tt(-r) var(targetwin) )
|
||||
xitem(tt(zcurses) tt(-m) var(targetwin) var(new_y) var(new_x) )
|
||||
|
|
|
@ -105,14 +105,14 @@ bin_zcurses(char *nam, char **args, Options ops, UNUSED(int func))
|
|||
if (OPT_ISSET(ops,'a')) {
|
||||
int nlines, ncols, begin_y, begin_x;
|
||||
|
||||
nlines = atoi(args[0]);
|
||||
ncols = atoi(args[1]);
|
||||
begin_y = atoi(args[2]);
|
||||
begin_x = atoi(args[3]);
|
||||
targetwin = zcurses_validate_window(args[4], ZCURSES_UNUSED);
|
||||
targetwin = zcurses_validate_window(args[0], ZCURSES_UNUSED);
|
||||
nlines = atoi(args[1]);
|
||||
ncols = atoi(args[2]);
|
||||
begin_y = atoi(args[3]);
|
||||
begin_x = atoi(args[4]);
|
||||
|
||||
if (targetwin == -1) {
|
||||
zerrnam(nam, "%s: %s", zcurses_strerror(zc_errno), args[4], 0);
|
||||
zerrnam(nam, "%s: %s", zcurses_strerror(zc_errno), args[0], 0);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue