summaryrefslogtreecommitdiffstats
path: root/cmd-list-clients.c
diff options
context:
space:
mode:
authornicm <nicm>2017-04-05 10:49:46 +0000
committernicm <nicm>2017-04-05 10:49:46 +0000
commit9b28200578670183a0dc70f1d16d5642101a6982 (patch)
tree745e1455c441ab36e2b39ec9398bfb40c14c9a56 /cmd-list-clients.c
parentab4a4b2ad0ce2c8fdb485bc0fe871571181eace8 (diff)
Give each client a name. This defaults to the tty name as before but
falls back to an alternative if the tty name is not available. This is clearer than overloading the client ttyname member and allows us to remove the path stored in the tty struct, it should always be the same as the client.
Diffstat (limited to 'cmd-list-clients.c')
-rw-r--r--cmd-list-clients.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-list-clients.c b/cmd-list-clients.c
index faf39931..ca34bf25 100644
--- a/cmd-list-clients.c
+++ b/cmd-list-clients.c
@@ -29,7 +29,7 @@
*/
#define LIST_CLIENTS_TEMPLATE \
- "#{client_tty}: #{session_name} " \
+ "#{client_name}: #{session_name} " \
"[#{client_width}x#{client_height} #{client_termname}]" \
"#{?client_utf8, (utf8),} #{?client_readonly, (ro),}"