From 86007a79c530def61932314f3261bdc1f8d4256e Mon Sep 17 00:00:00 2001 From: mitchell Date: Sat, 6 Jun 2020 21:30:54 -0400 Subject: Updated curses sample program. --- curses/jinx/jinx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/curses/jinx/jinx.c b/curses/jinx/jinx.c index 3570fd4bb..c9b1f5b58 100644 --- a/curses/jinx/jinx.c +++ b/curses/jinx/jinx.c @@ -12,15 +12,15 @@ typedef void Scintilla; -void scnotification(Scintilla *view, int msg, void *lParam, void *wParam) { - //struct SCNotification *scn = (struct SCNotification *)lParam; - //printw("SCNotification received: %i", scn->nmhdr.code); +void scnotification(Scintilla *view, int msg, SCNotification *n, void *userdata) +{ + //printw("SCNotification received: %i", n->nmhdr.code); } int main(int argc, char **argv) { setlocale(LC_CTYPE, ""); // for displaying UTF-8 characters properly initscr(), raw(), cbreak(), noecho(), start_color(); - Scintilla *sci = scintilla_new(scnotification); + Scintilla *sci = scintilla_new(scnotification, NULL); curs_set(0); // Scintilla draws its own cursor SSM(SCI_STYLESETFORE, STYLE_DEFAULT, 0xFFFFFF); -- cgit v1.2.3