Changeset 2ab8ab3 in mainline for uspace/app/terminal/terminal.c


Ignore:
Timestamp:
2021-02-16T18:12:05Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
68a552f
Parents:
ef734b7
Message:

Client-side UI rendering

It is possible to turn on and off and if turned on, one can also
enable or disable window double buffering (currently both options
are build-time).

File:
1 edited

Legend:

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

    ref734b7 r2ab8ab3  
    11/*
    2  * Copyright (c) 2020 Jiri Svoboda
     2 * Copyright (c) 2021 Jiri Svoboda
    33 * Copyright (c) 2012 Petr Koupy
    44 * All rights reserved.
     
    4242#include <gfx/bitmap.h>
    4343#include <gfx/context.h>
     44#include <gfx/render.h>
    4445#include <io/con_srv.h>
    4546#include <io/concaps.h>
     
    524525                term_write_char(term, str_decode(data, &off, size));
    525526
     527        gfx_update(term->gc);
    526528        *nwritten = size;
    527529        return EOK;
     
    533535
    534536        term_update(term);
     537        gfx_update(term->gc);
    535538}
    536539
     
    544547
    545548        term_update(term);
     549        gfx_update(term->gc);
    546550}
    547551
     
    555559
    556560        term_update(term);
     561        gfx_update(term->gc);
    557562}
    558563
     
    626631
    627632        term_update(term);
     633        gfx_update(term->gc);
    628634}
    629635
     
    688694        term->is_focused = true;
    689695        term_update(term);
     696        gfx_update(term->gc);
    690697}
    691698
     
    731738        term->is_focused = false;
    732739        term_update(term);
     740        gfx_update(term->gc);
    733741}
    734742
Note: See TracChangeset for help on using the changeset viewer.