Changeset b48e680f in mainline for uspace/lib/c/include


Ignore:
Timestamp:
2021-11-03T10:23:28Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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

Location:
uspace/lib/c/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/io/con_srv.h

    rce862ac rb48e680f  
    5151typedef struct con_ops con_ops_t;
    5252
     53#define CON_CAPTION_MAXLEN 255
     54
    5355/** Service setup (per sevice) */
    5456typedef struct {
     
    8385        void (*set_rgb_color)(con_srv_t *, pixel_t, pixel_t);
    8486        void (*set_cursor_visibility)(con_srv_t *, bool);
     87        errno_t (*set_caption)(con_srv_t *, const char *);
    8588        errno_t (*get_event)(con_srv_t *, cons_event_t *);
    8689        errno_t (*map)(con_srv_t *, sysarg_t, sysarg_t, charfield_t **);
  • uspace/lib/c/include/io/console.h

    rce862ac rb48e680f  
    8383
    8484extern void console_cursor_visibility(console_ctrl_t *, bool);
     85extern errno_t console_set_caption(console_ctrl_t *, const char *);
    8586extern errno_t console_get_color_cap(console_ctrl_t *, sysarg_t *);
    8687extern errno_t console_get_event(console_ctrl_t *, cons_event_t *);
  • uspace/lib/c/include/ipc/console.h

    rce862ac rb48e680f  
    5050        CONSOLE_SET_RGB_COLOR,
    5151        CONSOLE_SET_CURSOR_VISIBILITY,
     52        CONSOLE_SET_CAPTION,
    5253        CONSOLE_MAP,
    5354        CONSOLE_UNMAP,
Note: See TracChangeset for help on using the changeset viewer.