Skip to content
Snippets Groups Projects
Forked from Librem5-apps / osk-sdl
187 commits behind the upstream repository.
Clayton Craft's avatar
Clayton Craft authored
In gcc 12, the return value for the operator>> of istringstream doesn't
seem to indicate success or not, this may have been taking advantage of
some undocumented or deprecated behavior... Anyways, with this change
the bad bit is checked explicitly after expanding the line.

This also simplifies the code slightly by removing the error var, which
was not really necessary.

Fixes: #143
Replaces: !157
938e6b0c

Lightweight On-Screen-Keyboard based on SDL2

This keyboard is used to unlock the encrypted root partition in postmarketOS and other distributions.

Building:

This project uses meson, and can be built with:

$ meson _build
$ meson compile -C _build

Tests:

Functional tests require xvfb-run. Mesa w/ swrast is needed if running on a headless system (e.g., a CI).

$ meson test -C _build

Note: Tests which require elevated privileges will be skipped.