Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/output/proto/vt100.c

    r28a5ebd rf5762c7  
    11/*
     2 * Copyright (c) 2021 Jiri Svoboda
    23 * Copyright (c) 2011 Martin Decky
    34 * All rights reserved.
     
    4041#include "vt100.h"
    4142
    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
    4353
    4454typedef enum {
     
    6575static sgr_color_index_t color_map[] = {
    6676        [COLOR_BLACK]   = CI_BLACK,
    67         [COLOR_BLUE]    = CI_RED,
     77        [COLOR_BLUE]    = CI_BLUE,
    6878        [COLOR_GREEN]   = CI_GREEN,
    6979        [COLOR_CYAN]    = CI_CYAN,
Note: See TracChangeset for help on using the changeset viewer.