Changes in uspace/srv/hid/output/proto/vt100.c [28a5ebd:f5762c7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/output/proto/vt100.c
r28a5ebd rf5762c7 1 1 /* 2 * Copyright (c) 2021 Jiri Svoboda 2 3 * Copyright (c) 2011 Martin Decky 3 4 * All rights reserved. … … 40 41 #include "vt100.h" 41 42 42 #define MAX_CONTROL 20 43 /** Buffer size when creating actual VT100 commands. 44 * 45 * This is absurdly large but since we accept numbers via sysarg_t, 46 * we make it big enough for the largest value to be on the safe side 47 * (and to silence compiler too). 48 * 49 * TODO: find out if VT100 has some hard limits or perhaps simply cut-out 50 * values larger than 16 bits or something. 51 */ 52 #define MAX_CONTROL 64 43 53 44 54 typedef enum { … … 65 75 static sgr_color_index_t color_map[] = { 66 76 [COLOR_BLACK] = CI_BLACK, 67 [COLOR_BLUE] = CI_ RED,77 [COLOR_BLUE] = CI_BLUE, 68 78 [COLOR_GREEN] = CI_GREEN, 69 79 [COLOR_CYAN] = CI_CYAN,
Note:
See TracChangeset
for help on using the changeset viewer.