Ignore:
File:
1 edited

Legend:

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

    re273e9e r68a552f  
    11/*
    2  * Copyright (c) 2024 Jiri Svoboda
     2 * Copyright (c) 2021 Jiri Svoboda
    33 * Copyright (c) 2012 Petr Koupy
    44 * All rights reserved.
     
    3838#define TERMINAL_H
    3939
    40 #include <adt/prodcons.h>
    4140#include <errno.h>
    42 #include <fibril.h>
    4341#include <fibril_synch.h>
    4442#include <gfx/bitmap.h>
    4543#include <gfx/context.h>
    4644#include <gfx/coord.h>
     45#include <io/chargrid.h>
    4746#include <io/con_srv.h>
    48 #include <io/cons_event.h>
    4947#include <loc.h>
     48#include <adt/prodcons.h>
    5049#include <stdatomic.h>
    5150#include <str.h>
    52 #include <task.h>
    53 #include <termui.h>
    5451#include <ui/ui.h>
    5552#include <ui/window.h>
     
    8279        size_t char_remains_len;
    8380
    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;
     81        sysarg_t cols;
     82        sysarg_t rows;
     83        chargrid_t *frontbuf;
     84        chargrid_t *backbuf;
     85        sysarg_t top_row;
    9286
    9387        sysarg_t ucols;
     
    9589        charfield_t *ubuf;
    9690
    97         loc_srv_t *srv;
    9891        service_id_t dsid;
    9992        con_srvs_t srvs;
    100 
    101         task_wait_t wait;
    102         fid_t wfid;
    10393} terminal_t;
    10494
    105 /** Terminal event */
    106 typedef struct {
    107         /** Link to list of events */
    108         link_t link;
    109         /** Console event */
    110         cons_event_t ev;
    111 } terminal_event_t;
    112 
    11395extern errno_t terminal_create(const char *, sysarg_t, sysarg_t,
    114     terminal_flags_t, const char *, terminal_t **);
     96    terminal_flags_t, terminal_t **);
    11597extern void terminal_destroy(terminal_t *);
    11698
Note: See TracChangeset for help on using the changeset viewer.