Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset b48e680f in mainline for uspace/srv/hid/console/console.c


Ignore:
Timestamp:
2021-11-03T10:23:28Z (3 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
ec8a1bf
Parents:
ce862ac
git-author:
Jiri Svoboda <jiri@…> (2021-11-02 19:19:50)
git-committer:
Jiri Svoboda <jiri@…> (2021-11-03 10:23:28)
Message:

Allow console application to set the terminal window caption

File:
1 edited

Legend:

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

    rce862ac rb48e680f  
    151151static void cons_set_rgb_color(con_srv_t *, pixel_t, pixel_t);
    152152static void cons_set_cursor_visibility(con_srv_t *, bool);
     153static errno_t cons_set_caption(con_srv_t *, const char *);
    153154static errno_t cons_get_event(con_srv_t *, cons_event_t *);
    154155static errno_t cons_map(con_srv_t *, sysarg_t, sysarg_t, charfield_t **);
     
    172173        .set_rgb_color = cons_set_rgb_color,
    173174        .set_cursor_visibility = cons_set_cursor_visibility,
     175        .set_caption = cons_set_caption,
    174176        .get_event = cons_get_event,
    175177        .map = cons_map,
     
    669671}
    670672
     673static errno_t cons_set_caption(con_srv_t *srv, const char *caption)
     674{
     675        console_t *cons = srv_to_console(srv);
     676
     677        (void) cons;
     678        (void) caption;
     679        return EOK;
     680}
     681
    671682static errno_t cons_get_event(con_srv_t *srv, cons_event_t *event)
    672683{
Note: See TracChangeset for help on using the changeset viewer.