Changeset 06d0c81 in mainline for uspace/app/terminal/main.c
- Timestamp:
- 2020-11-19T22:38:17Z (3 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 20667af
- Parents:
- 2e0a2e7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/terminal/main.c
r2e0a2e7 r06d0c81 43 43 static void print_syntax(void) 44 44 { 45 printf("Syntax: %s [-d <display-spec>]\n", NAME); 45 printf("Syntax: %s [<options>]\n", NAME); 46 printf("\t-d <display-spec> Use the specified display\n"); 47 printf("\t-topleft] Place window to the top-left corner of " 48 "the screen\n"); 46 49 } 47 50 … … 50 53 const char *display_spec = UI_DISPLAY_DEFAULT; 51 54 terminal_t *terminal = NULL; 55 terminal_flags_t flags = 0; 52 56 errno_t rc; 53 57 int i; … … 64 68 65 69 display_spec = argv[i++]; 70 } else if (str_cmp(argv[i], "-topleft") == 0) { 71 ++i; 72 flags |= tf_topleft; 66 73 } else { 67 74 printf("Invalid option '%s'.\n", argv[i]); … … 76 83 } 77 84 78 rc = terminal_create(display_spec, 640, 480, &terminal);85 rc = terminal_create(display_spec, 640, 480, flags, &terminal); 79 86 if (rc != EOK) 80 87 return 1;
Note:
See TracChangeset
for help on using the changeset viewer.