Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/terminal/terminal.h

    r4c6fd56 re273e9e  
    11/*
    2  * Copyright (c) 2023 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * Copyright (c) 2012 Petr Koupy
    44 * All rights reserved.
     
    4545#include <gfx/context.h>
    4646#include <gfx/coord.h>
    47 #include <io/chargrid.h>
    4847#include <io/con_srv.h>
     48#include <io/cons_event.h>
    4949#include <loc.h>
    5050#include <stdatomic.h>
    5151#include <str.h>
    5252#include <task.h>
     53#include <termui.h>
    5354#include <ui/ui.h>
    5455#include <ui/window.h>
     
    8182        size_t char_remains_len;
    8283
    83         sysarg_t cols;
    84         sysarg_t rows;
    85         chargrid_t *frontbuf;
    86         chargrid_t *backbuf;
    87         sysarg_t top_row;
     84        termui_t *termui;
     85
     86        termui_color_t default_bgcolor;
     87        termui_color_t default_fgcolor;
     88        termui_color_t emphasis_bgcolor;
     89        termui_color_t emphasis_fgcolor;
     90        termui_color_t selection_bgcolor;
     91        termui_color_t selection_fgcolor;
    8892
    8993        sysarg_t ucols;
     
    99103} terminal_t;
    100104
     105/** Terminal event */
     106typedef struct {
     107        /** Link to list of events */
     108        link_t link;
     109        /** Console event */
     110        cons_event_t ev;
     111} terminal_event_t;
     112
    101113extern errno_t terminal_create(const char *, sysarg_t, sysarg_t,
    102114    terminal_flags_t, const char *, terminal_t **);
Note: See TracChangeset for help on using the changeset viewer.