From pluto@projectpluto.com Sun Sep 12 23:46:01 2021 From: pluto@projectpluto.com (Bill Gray) Date: Sun, 12 Sep 2021 17:46:01 -0400 Subject: [gpm] Non-blocking access to mouse events? Message-ID: <64a7a298-a4f5-149b-0c21-2fb7f935a4bf@projectpluto.com> Hello all, I'm trying to add mouse support for Linux console software. For my humble purposes, I'd like to be able to access these events without blocking; i.e., "gpm, have any mouse events occurred since I last inquired? If so, what were they?" I am virtually certain this is a frequently asked question, but my Google-fu appears to be inadequate to turn up an answer. Some background : I am the author/maintainer for PDCursesMod, https://github.com/Bill-Gray/PDCursesMod . I recently added a Linux framebuffer port so that one can write Curses applications using full color and attributes and font control without needing to have X. But the mouse bits, at least at present, are defeating me. Thank you, -- Bill