Changeset 9c7dc8e in mainline for uspace/lib/ui/src/ui.c


Ignore:
Timestamp:
2021-03-01T10:50:25Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cd74fa8
Parents:
77ffa01
git-author:
Jiri Svoboda <jiri@…> (2021-02-28 10:50:05)
git-committer:
Jiri Svoboda <jiri@…> (2021-03-01 10:50:25)
Message:

Print text as text in textmode UI. Make calculator smaller in text mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/ui.c

    r77ffa01 r9c7dc8e  
    254254}
    255255
     256/** Determine if we are running in text mode.
     257 *
     258 * @param ui User interface
     259 * @return @c true iff we are running in text mode
     260 */
     261bool ui_is_textmode(ui_t *ui)
     262{
     263        /*
     264         * XXX Currently console is always text and display is always
     265         * graphics, but this need not always be true.
     266         */
     267        return (ui->console != NULL);
     268}
     269
    256270/** @}
    257271 */
Note: See TracChangeset for help on using the changeset viewer.