Changes in uspace/app/bdsh/cmds/modules/cat/cat.c [79ae36dd:28a3e74] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cat/cat.c
r79ae36dd r28a3e74 64 64 static sysarg_t console_rows = 0; 65 65 static bool should_quit = false; 66 67 static console_ctrl_t *console = NULL;68 66 69 67 static struct option const long_options[] = { … … 104 102 static void waitprompt() 105 103 { 106 console_set_pos(console, 0, console_rows-1); 107 console_set_color(console, COLOR_BLUE, COLOR_WHITE, 0); 108 104 console_set_pos(fphone(stdout), 0, console_rows-1); 105 console_set_color(fphone(stdout), COLOR_BLUE, COLOR_WHITE, 0); 109 106 printf("ENTER/SPACE/PAGE DOWN - next page, " 110 107 "ESC/Q - quit, C - continue unpaged"); 111 108 fflush(stdout); 112 113 console_set_style(console, STYLE_NORMAL); 109 console_set_style(fphone(stdout), STYLE_NORMAL); 114 110 } 115 111 116 112 static void waitkey() 117 113 { 118 kbd_event_t ev;114 console_event_t ev; 119 115 120 116 while (true) { 121 if (!console_get_ kbd_event(console, &ev)) {117 if (!console_get_event(fphone(stdin), &ev)) { 122 118 return; 123 119 } … … 142 138 static void newpage() 143 139 { 144 console_clear( console);140 console_clear(fphone(stdout)); 145 141 chars_remaining = console_cols; 146 lines_remaining = console_rows -1;142 lines_remaining = console_rows-1; 147 143 } 148 144 … … 242 238 console_rows = 0; 243 239 should_quit = false; 244 console = console_init(stdin, stdout);245 240 246 241 argc = cli_count_args(argv); … … 285 280 286 281 if (more) { 287 rc = console_get_size( console, &cols, &rows);282 rc = console_get_size(fphone(stdout), &cols, &rows); 288 283 if (rc != EOK) { 289 284 printf("%s - cannot get console size\n", cmdname);
Note:
See TracChangeset
for help on using the changeset viewer.