version 1.112, 2018/06/08 09:41:34 |
version 1.113, 2018/06/08 09:43:58 |
|
|
} |
} |
if ((is_control || detached) && args_has(args, 'x')) { |
if ((is_control || detached) && args_has(args, 'x')) { |
tmp = args_get(args, 'x'); |
tmp = args_get(args, 'x'); |
if (strcmp(tmp, "-") == 0) |
if (strcmp(tmp, "-") == 0) { |
sx = c->tty.sx; |
if (c != NULL) |
else { |
sx = c->tty.sx; |
|
} else { |
sx = strtonum(tmp, 1, USHRT_MAX, &errstr); |
sx = strtonum(tmp, 1, USHRT_MAX, &errstr); |
if (errstr != NULL) { |
if (errstr != NULL) { |
cmdq_error(item, "width %s", errstr); |
cmdq_error(item, "width %s", errstr); |
|
|
} |
} |
if ((is_control || detached) && args_has(args, 'y')) { |
if ((is_control || detached) && args_has(args, 'y')) { |
tmp = args_get(args, 'y'); |
tmp = args_get(args, 'y'); |
if (strcmp(tmp, "-") == 0) |
if (strcmp(tmp, "-") == 0) { |
sy = c->tty.sy; |
if (c != NULL) |
else { |
sy = c->tty.sy; |
|
} else { |
sy = strtonum(tmp, 1, USHRT_MAX, &errstr); |
sy = strtonum(tmp, 1, USHRT_MAX, &errstr); |
if (errstr != NULL) { |
if (errstr != NULL) { |
cmdq_error(item, "height %s", errstr); |
cmdq_error(item, "height %s", errstr); |