Changeset 09f41d3 in mainline
- Timestamp:
- 2024-09-25T17:19:36Z (4 months ago)
- Branches:
- master
- Children:
- c23a1fe
- Parents:
- 6a753a9c
- Location:
- uspace
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/terminal/terminal.c
r6a753a9c r09f41d3 70 70 71 71 #define TERM_CAPS \ 72 (CONSOLE_CAP_STYLE | CONSOLE_CAP_INDEXED | CONSOLE_CAP_RGB) 72 (CONSOLE_CAP_CURSORCTL | CONSOLE_CAP_STYLE | CONSOLE_CAP_INDEXED | \ 73 CONSOLE_CAP_RGB) 73 74 74 75 #define SCROLLBACK_MAX_LINES 1000 -
uspace/app/tetris/screen.c
r6a753a9c r09f41d3 1 1 /* 2 * Copyright (c) 2024 Jiri Svoboda 2 3 * Copyright (c) 2011 Martin Decky 3 4 * All rights reserved. … … 143 144 console_cursor_visibility(console, 0); 144 145 resume_normal(); 145 scr_ clear();146 scr_set(); 146 147 } 147 148 … … 170 171 } 171 172 173 if ((ccap & CONSOLE_CAP_CURSORCTL) == 0) { 174 stop("Your screen does not support cursor control.\n"); 175 return; 176 } 172 177 *rgb = ((ccap & CONSOLE_CAP_RGB) == CONSOLE_CAP_RGB); 173 178 *color = ((ccap & CONSOLE_CAP_INDEXED) == CONSOLE_CAP_INDEXED); … … 195 200 196 201 snprintf(smallscr, sizeof(smallscr), 197 "the screen is too small (must be at least %dx%d) ",202 "the screen is too small (must be at least %dx%d)\n", 198 203 MINROWS, MINCOLS); 199 204 stop(smallscr); -
uspace/lib/output/include/io/concaps.h
r6a753a9c r09f41d3 1 1 /* 2 * Copyright (c) 202 3Jiri Svoboda2 * Copyright (c) 2024 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 38 38 typedef enum { 39 39 CONSOLE_CAP_NONE = 0, 40 CONSOLE_CAP_STYLE = 1, 41 CONSOLE_CAP_INDEXED = 2, 42 CONSOLE_CAP_RGB = 4 40 CONSOLE_CAP_CURSORCTL = 1, 41 CONSOLE_CAP_STYLE = 2, 42 CONSOLE_CAP_INDEXED = 4, 43 CONSOLE_CAP_RGB = 8 43 44 } console_caps_t; 44 45 -
uspace/srv/hid/output/ctl/serial.c
r6a753a9c r09f41d3 85 85 static console_caps_t serial_get_caps(outdev_t *dev) 86 86 { 87 return (CONSOLE_CAP_STYLE | CONSOLE_CAP_INDEXED | CONSOLE_CAP_RGB); 87 return (CONSOLE_CAP_CURSORCTL | CONSOLE_CAP_STYLE | 88 CONSOLE_CAP_INDEXED | CONSOLE_CAP_RGB); 88 89 } 89 90 -
uspace/srv/hid/output/port/ddev.c
r6a753a9c r09f41d3 1 1 /* 2 * Copyright (c) 202 0Jiri Svoboda2 * Copyright (c) 2024 Jiri Svoboda 3 3 * Copyright (c) 2008 Martin Decky 4 4 * Copyright (c) 2006 Jakub Vana … … 198 198 static console_caps_t output_ddev_get_caps(outdev_t *dev) 199 199 { 200 return (CONSOLE_CAP_STYLE | CONSOLE_CAP_INDEXED | CONSOLE_CAP_RGB); 200 return (CONSOLE_CAP_CURSORCTL | CONSOLE_CAP_STYLE | 201 CONSOLE_CAP_INDEXED | CONSOLE_CAP_RGB); 201 202 } 202 203 -
uspace/srv/hid/output/port/ega.c
r6a753a9c r09f41d3 143 143 static console_caps_t ega_get_caps(outdev_t *dev) 144 144 { 145 return (CONSOLE_CAP_STYLE | CONSOLE_CAP_INDEXED); 145 return (CONSOLE_CAP_CURSORCTL | CONSOLE_CAP_STYLE | 146 CONSOLE_CAP_INDEXED); 146 147 } 147 148 -
uspace/srv/hid/remcons/remcons.c
r6a753a9c r09f41d3 248 248 remcons_t *remcons = srv_to_remcons(srv); 249 249 250 if (remcons->enable_ctl) 251 *ccaps = CONSOLE_CAP_INDEXED | CONSOLE_CAP_RGB; 252 else 253 *ccaps = 0; 250 *ccaps = 0; 251 252 if (remcons->enable_ctl) { 253 *ccaps |= CONSOLE_CAP_CURSORCTL | CONSOLE_CAP_STYLE | 254 CONSOLE_CAP_INDEXED; 255 } 256 257 if (remcons->enable_rgb) 258 *ccaps |= CONSOLE_CAP_RGB; 254 259 255 260 return EOK; … … 437 442 438 443 remcons->enable_ctl = !no_ctl; 444 remcons->enable_rgb = !no_ctl && !no_rgb; 439 445 remcons->user = user; 440 446 … … 448 454 remcons_vt_putchar, remcons_vt_cputs, remcons_vt_flush); 449 455 assert(remcons->vt != NULL); // XXX 450 remcons->vt->enable_rgb = !no_rgb;456 remcons->vt->enable_rgb = remcons->enable_rgb; 451 457 452 458 if (remcons->enable_ctl) { -
uspace/srv/hid/remcons/remcons.h
r6a753a9c r09f41d3 48 48 vt100_state_t *vt; 49 49 bool enable_ctl; 50 bool enable_rgb; 50 51 } remcons_t; 51 52
Note:
See TracChangeset
for help on using the changeset viewer.