Ignore:
File:
1 edited

Legend:

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

    r68a552f re273e9e  
    11/*
    2  * Copyright (c) 2021 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * Copyright (c) 2012 Petr Koupy
    44 * All rights reserved.
     
    3838#define TERMINAL_H
    3939
     40#include <adt/prodcons.h>
    4041#include <errno.h>
     42#include <fibril.h>
    4143#include <fibril_synch.h>
    4244#include <gfx/bitmap.h>
    4345#include <gfx/context.h>
    4446#include <gfx/coord.h>
    45 #include <io/chargrid.h>
    4647#include <io/con_srv.h>
     48#include <io/cons_event.h>
    4749#include <loc.h>
    48 #include <adt/prodcons.h>
    4950#include <stdatomic.h>
    5051#include <str.h>
     52#include <task.h>
     53#include <termui.h>
    5154#include <ui/ui.h>
    5255#include <ui/window.h>
     
    7982        size_t char_remains_len;
    8083
    81         sysarg_t cols;
    82         sysarg_t rows;
    83         chargrid_t *frontbuf;
    84         chargrid_t *backbuf;
    85         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;
    8692
    8793        sysarg_t ucols;
     
    8995        charfield_t *ubuf;
    9096
     97        loc_srv_t *srv;
    9198        service_id_t dsid;
    9299        con_srvs_t srvs;
     100
     101        task_wait_t wait;
     102        fid_t wfid;
    93103} terminal_t;
    94104
     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
    95113extern errno_t terminal_create(const char *, sysarg_t, sysarg_t,
    96     terminal_flags_t, terminal_t **);
     114    terminal_flags_t, const char *, terminal_t **);
    97115extern void terminal_destroy(terminal_t *);
    98116
Note: See TracChangeset for help on using the changeset viewer.