diff options
Diffstat (limited to 'bin/chio/chio.c')
-rw-r--r-- | bin/chio/chio.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/chio/chio.c b/bin/chio/chio.c index c2da513..f00b738 100644 --- a/bin/chio/chio.c +++ b/bin/chio/chio.c @@ -382,6 +382,7 @@ static int do_params(char *cname, int argc, char **argv) { struct changer_params data; + int picker; /* No arguments to this command. */ @@ -406,6 +407,12 @@ do_params(char *cname, int argc, char **argv) (void) printf(", %d portal%s", data.cp_nportals, (data.cp_nportals > 1) ? "s" : ""); + /* Get current picker from changer and display it. */ + if (ioctl(changer_fd, CHIOGPICKER, &picker)) + err(1, "%s: CHIOGPICKER", changer_name); + + (void) printf("\n%s: current picker: %d\n", changer_name, picker); + return (0); usage: |