From anton.vidovic at gmx.de Sun Jan 2 11:52:11 2022 From: anton.vidovic at gmx.de (Anton Vidovic) Date: Sun, 2 Jan 2022 12:52:11 +0100 Subject: Aw: How do I clear a textarea instance? In-Reply-To: <8212de51-2b73-4f1b-7f6-fa573845ef43@SDF.ORG> References: <8212de51-2b73-4f1b-7f6-fa573845ef43@SDF.ORG> Message-ID: Hallo Lance, > How do I go about clearing the buffer, resetting the input pointer, > and moving the cursor back to the beginning of the textarea? I have just pushed a commit that adds a generic function reset, which first clears the textarea (field, form) with the background char, then resets the internal variables. In the default keymap, it is bound to ^R, but you can change that if it doesn't make sense to you. Anton From anton.vidovic at gmx.de Sat Jul 16 09:17:00 2022 From: anton.vidovic at gmx.de (Anton Vidovic) Date: Sat, 16 Jul 2022 11:17:00 +0200 Subject: Fwd: escape code not parsed Message-ID: Hello, yesterday by chance I stumbled upon the following bug report by cage: https://lists.gnu.org/archive/html/help-ncurses/2022-07/msg00000.html I am reposing it here for future reference, since I am not sure whether this is a ncurses bug or a croatoan bug. cage, if you are reading this, I am trying to reproduce it on my own from your description, but have not had success yet. Could you maybe provide a minimal example (here or as an issue at gh) of how to reproduce the bug? I would have to first check whether it is a bug with croatoan, with the cffi ncurses wrapper or with ncurses itself, so in the end I would need to write a minimal example in C to get a better chance for the ncurses author to reproduce it himself and be able to debug it. Also I think that posting to bug-ncurses is better than help-ncurses, because the latter seems to be very low volume. Regards, A. From cage-dev at twistfold.it Mon Oct 17 15:54:02 2022 From: cage-dev at twistfold.it (cage) Date: Mon, 17 Oct 2022 17:54:02 +0200 Subject: Fwd: escape code not parsed In-Reply-To: References: Message-ID: On Sat, Jul 16, 2022 at 11:17:00AM +0200, Anton Vidovic wrote: > Hello, Hi!! > yesterday by chance I stumbled upon the following bug report by cage: > > https://lists.gnu.org/archive/html/help-ncurses/2022-07/msg00000.html > > I am reposing it here for future reference, since I am not sure whether > this is a ncurses bug or a croatoan bug. > > cage, if you are reading this, I am trying to reproduce it on my own > from your description, but have not had success yet. Could you maybe > provide a minimal example (here or as an issue at gh) of how to > reproduce the bug? Sorry for such late reply! :(( I tried to reproduce the problem very hard but, unfortunately, i got no luck. Finally, I resorted on a ugly workaround. Lately I am more and more convinced that the issue is neither in croatoan not in ncurses but it is all my code's fault. Thanks for forwarding the issue to this list it will be a reminder for me, because i still want to properly fix this bug! :) Also if would be able to get a minimal example to reproduce the problem i will post the code in this thread for sure! And maybe the solution too! :) Bye! C.