Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"null" glitch when pressing backspace #1

Open
dkochmanski opened this issue Mar 16, 2018 · 2 comments
Open

"null" glitch when pressing backspace #1

dkochmanski opened this issue Mar 16, 2018 · 2 comments

Comments

@dkochmanski
Copy link
Owner

https://gitlab.common-lisp.net/mcclim/gramps-clim2/issues/34

After applying fix for https://gitlab.common-lisp.net/mcclim/gramps-clim2/issues/33 string is replayed OK, but null glitch appears (after first hit of "backspace"):

obraz

@dkochmanski
Copy link
Owner Author

@picospuch
Copy link

picospuch commented Apr 1, 2018

Hi @dkochmanski,
I can't reproduce the glitch, the demo works fine on the macos.
But I think it may help to clear the input stream before the loop starts.
Try this and hope it helps:

diff --git a/demo/listener.lisp b/demo/listener.lisp
index 54edbe42..3ba9bc21 100644
--- a/demo/listener.lisp
+++ b/demo/listener.lisp
@@ -137,6 +137,7 @@
     (let* ((abort-gestures *abort-gestures*)
            (*abort-gestures* nil))
       ;;--- What test does this need?
+      (clear-input stream)
       (when (member (stream-read-gesture stream :timeout 0 :peek-p t) abort-gestures)
         (stream-read-gesture stream :timeout 0)))
     (fresh-line stream)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants