From b0acd369c8041eef848b96a8d64b7dc1048f4587 Mon Sep 17 00:00:00 2001 From: nick black Date: Fri, 5 Nov 2021 09:02:48 -0400 Subject: [PATCH] [drone] use new debian builder, set USE_GPM=on --- .drone.yml | 4 ++-- python/notcurses/context.c | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 616e797fa..f5649c967 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,13 +5,13 @@ name: debian-unstable steps: - name: debian-build - image: dankamongmen/unstable_builder:2021-08-19a + image: dankamongmen/unstable_builder:2021-11-06a commands: - export LANG=en_US.UTF-8 - export TERM=xterm - mkdir build - cd build - - cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_QRCODEGEN=on + - cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_GPM=on -DUSE_QRCODEGEN=on - make -j2 - ./notcurses-info - ctest --output-on-failure diff --git a/python/notcurses/context.c b/python/notcurses/context.c index d38641a4f..7d01c8107 100644 --- a/python/notcurses/context.c +++ b/python/notcurses/context.c @@ -210,15 +210,15 @@ Notcurses_getc_blocking(NotcursesObject *Py_UNUSED(self), PyObject *Py_UNUSED(ar } static PyObject * -Notcurses_mouse_enable(NotcursesObject *self, PyObject *Py_UNUSED(args)) +Notcurses_mice_enable(NotcursesObject *self, PyObject *Py_UNUSED(args)) { - CHECK_NOTCURSES(notcurses_mouse_enable(self->notcurses_ptr)); + CHECK_NOTCURSES(notcurses_mice_enable(self->notcurses_ptr, NCMICE_BUTTON_EVENT)); Py_RETURN_NONE; } static PyObject * -Notcurses_mouse_disable(NotcursesObject *self, PyObject *Py_UNUSED(args)) +Notcurses_mice_disable(NotcursesObject *self, PyObject *Py_UNUSED(args)) { - CHECK_NOTCURSES(notcurses_mouse_disable(self->notcurses_ptr)); + CHECK_NOTCURSES(notcurses_mice_disable(self->notcurses_ptr)); Py_RETURN_NONE; } @@ -444,8 +444,8 @@ static PyMethodDef Notcurses_methods[] = { {"getc_nblock", (PyCFunction)Notcurses_getc_nblock, METH_NOARGS, "Get input event without blocking. If no event is ready, returns None."}, {"getc_blocking", (PyCFunction)Notcurses_getc_blocking, METH_NOARGS, "Get input event completely blocking until and event or signal received."}, - {"mouse_enable", (PyCFunction)Notcurses_mouse_enable, METH_NOARGS, "Enable the mouse in \"button-event tracking\" mode with focus detection and UTF8-style extended coordinates. On success mouse events will be published to getc()"}, - {"mouse_disable", (PyCFunction)Notcurses_mouse_disable, METH_NOARGS, "Disable mouse events. Any events in the input queue can still be delivered."}, + {"mice_enable", (PyCFunction)Notcurses_mice_enable, METH_NOARGS, "Enable the mouse in \"button-event tracking\" mode with focus detection and UTF8-style extended coordinates. On success mouse events will be published to getc()"}, + {"mice_disable", (PyCFunction)Notcurses_mice_disable, METH_NOARGS, "Disable mouse events. Any events in the input queue can still be delivered."}, {"linesigs_disable", (PyCFunction)Notcurses_linesigs_disable, METH_NOARGS, "Disable signals originating from the terminal's line discipline, i.e. SIGINT (^C), SIGQUIT (^\\), and SIGTSTP (^Z). They are enabled by default."}, {"linesigs_enable", (PyCFunction)Notcurses_linesigs_enable, METH_NOARGS, "Restore signals originating from the terminal's line discipline, i.e. SIGINT (^C), SIGQUIT (^\\), and SIGTSTP (^Z), if disabled."},