Changeset 9d5cea6 in mainline for uspace/srv/hid/remcons/remcons.c


Ignore:
Timestamp:
2024-10-17T12:35:42Z (2 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
a72f3b8
Parents:
514108e
git-author:
Jiri Svoboda <jiri@…> (2024-10-16 17:35:40)
git-committer:
Jiri Svoboda <jiri@…> (2024-10-17 12:35:42)
Message:

Allow remcons/vt100 to set terminal title

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/remcons/remcons.c

    r514108e r9d5cea6  
    9595static void remcons_set_rgb_color(con_srv_t *, pixel_t, pixel_t);
    9696static void remcons_cursor_visibility(con_srv_t *, bool);
     97static errno_t remcons_set_caption(con_srv_t *, const char *);
    9798static errno_t remcons_get_event(con_srv_t *, cons_event_t *);
    9899static errno_t remcons_map(con_srv_t *, sysarg_t, sysarg_t, charfield_t **);
     
    116117        .set_rgb_color = remcons_set_rgb_color,
    117118        .set_cursor_visibility = remcons_cursor_visibility,
     119        .set_caption = remcons_set_caption,
    118120        .get_event = remcons_get_event,
    119121        .map = remcons_map,
     
    349351
    350352        remcons->curs_visible = visible;
     353}
     354
     355static errno_t remcons_set_caption(con_srv_t *srv, const char *caption)
     356{
     357        remcons_t *remcons = srv_to_remcons(srv);
     358
     359        if (remcons->enable_ctl) {
     360                vt100_set_title(remcons->vt, caption);
     361        }
     362
     363        return EOK;
    351364}
    352365
Note: See TracChangeset for help on using the changeset viewer.