version 1.65, 2020/04/13 20:51:57 |
version 1.66, 2020/05/16 15:45:29 |
|
|
.name = "switch-client", |
.name = "switch-client", |
.alias = "switchc", |
.alias = "switchc", |
|
|
.args = { "lc:Enpt:rT:Z", 0, 0 }, |
.args = { "lc:EFnpt:rT:Z", 0, 0 }, |
.usage = "[-ElnprZ] [-c target-client] [-t target-session] " |
.usage = "[-ElnprZ] [-c target-client] [-t target-session] " |
"[-T key-table]", |
"[-T key-table]", |
|
|
|
|
wl = target.wl; |
wl = target.wl; |
wp = target.wp; |
wp = target.wp; |
|
|
if (args_has(args, 'r')) |
if (args_has(args, 'r')) { |
tc->flags ^= CLIENT_READONLY; |
if (tc->flags & CLIENT_READONLY) |
|
tc->flags &= ~(CLIENT_READONLY|CLIENT_IGNORESIZE); |
|
else |
|
tc->flags |= (CLIENT_READONLY|CLIENT_IGNORESIZE); |
|
} |
|
|
tablename = args_get(args, 'T'); |
tablename = args_get(args, 'T'); |
if (tablename != NULL) { |
if (tablename != NULL) { |