diff options
Diffstat (limited to 'fbinfo.c')
-rw-r--r-- | fbinfo.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -32,6 +32,7 @@ static void usage(FILE *fp) enum { OPT_LONG_COMP_BASH = 0x100, + OPT_LONG_COMP_FBDEV, }; static struct option long_opts[] = { @@ -45,6 +46,10 @@ static struct option long_opts[] = { .has_arg = false, .val = OPT_LONG_COMP_BASH, },{ + .name = "complete-fbdev", + .has_arg = false, + .val = OPT_LONG_COMP_FBDEV, + },{ /* --- with argument --- */ .name = "fbdev", @@ -71,6 +76,9 @@ int main(int argc, char **argv) case OPT_LONG_COMP_BASH: complete_bash("fbinfo", long_opts); exit(0); + case OPT_LONG_COMP_FBDEV: + complete_device_nr("/dev/fb"); + exit(0); case 'h': usage(stdout); exit(0); |