Changeset 5e0acaa in mainline for uspace/lib/vt/include


Ignore:
Timestamp:
2024-10-10T11:52:43Z (13 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
fb06afd8
Parents:
5f5d375
git-author:
Jiri Svoboda <jiri@…> (2024-10-09 17:46:33)
git-committer:
Jiri Svoboda <jiri@…> (2024-10-10 11:52:43)
Message:

Implement mouse tracking in libvt / remcons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/vt/include/vt/vt100.h

    r5f5d375 r5e0acaa  
    3737#include <io/charfield.h>
    3838#include <io/keycode.h>
     39#include <io/pos_event.h>
    3940#include <ipc/common.h>
    4041#include <uchar.h>
     
    7778        void (*flush)(void *);
    7879        void (*key)(void *, keymod_t, keycode_t, char);
     80        void (*pos_event)(void *, pos_event_t *);
    7981} vt100_cb_t;
    8082
     
    124126        vts_1b5b33,
    125127        /** Prefix 1b 5b 36 */
    126         vts_1b5b36
     128        vts_1b5b36,
     129        /** Prefix 1b 5b 3c - mouse report */
     130        vts_1b5b3c
    127131} vt100_state_t;
     132
     133enum {
     134        INNUM_MAX = 3
     135};
    128136
    129137/** VT100 instance */
     
    151159        /** Input decoding state */
    152160        vt100_state_t state;
     161        /** Decoded numeric parameters */
     162        uint16_t innum[INNUM_MAX];
     163        /** Index of current numeric parameter */
     164        unsigned inncnt;
    153165} vt100_t;
    154166
     
    170182extern void vt100_set_attr(vt100_t *, char_attrs_t);
    171183extern void vt100_cursor_visibility(vt100_t *, bool);
     184extern void vt100_set_button_reporting(vt100_t *, bool);
    172185extern void vt100_putuchar(vt100_t *, char32_t);
    173186extern void vt100_flush(vt100_t *);
Note: See TracChangeset for help on using the changeset viewer.