Update 0.4

Signed-off-by: 0xf8 <0xf8.dev@proton.me>
This commit is contained in:
0xf8 2023-02-25 12:06:54 -05:00
parent d9526039eb
commit a57b0371b1
Signed by: 0xf8
GPG Key ID: 446580D758689584
2 changed files with 192 additions and 195 deletions

View File

@ -16,9 +16,6 @@ You should have received a copy of the GNU General Public License along with thi
#include <notcurses/nckeys.h>
#include <notcurses/notcurses.h>
#define true 1
#define false 0
enum {SECS_TO_SLEEP = 0, NSEC_TO_SLEEP = 250000000};
struct notcurses *_nc;
@ -102,7 +99,7 @@ int rows;
int cols;
int midr;
int midc;
uint stop = false;
uint stop = 0;
void *notcurses_thread(void *_) {
uint32_t input = 0;
@ -110,7 +107,7 @@ void *notcurses_thread(void *_) {
while ((input = notcurses_get(_nc, 0, &ni)) != (uint32_t)-1) {
if (ni.evtype == NCTYPE_RELEASE) continue;
if (input == 'q') { stop = true; break; }
if (input == 'q') { stop = 1; break; }
if (ni.id == NCKEY_RESIZE) {
unsigned dimx, dimy, oldx, oldy;