shithub: orca

Download patch

ref: 0c0fa96f1ff0d1e1e47db9d8549e665030dcd3b1
parent: 170dcd22006fe070a133860e5dd971278057af9f
author: cancel <cancel@cancel.fm>
date: Mon Dec 17 20:14:22 EST 2018

Add cursor changing for field input

--- a/term_util.c
+++ b/term_util.c
@@ -312,9 +312,12 @@
   set_form_win(qf->ncurses_form, qf->qblock.outer_window);
   set_form_sub(qf->ncurses_form, qf->qblock.content_window);
   post_form(qf->ncurses_form);
+  // quick'n'dirty cursor change for now
+  curs_set(1);
 }
 
 void qform_free(Qform* qf) {
+  curs_set(0);
   unpost_form(qf->ncurses_form);
   free_form(qf->ncurses_form);
   for (Usz i = 0; i < qf->fields_count; ++i) {