commit a830f495bc4b35910554b2b4a02ddaae69522949
parent 7799db8d23636a4d4b4b2a359aed49e637916112
Author: Claudio Alessi <smoppy@gmail.com>
Date: Wed, 13 Apr 2016 21:05:09 +0200
Use terminal raw mode.
stfl calls cbreak() which makes us lose the control characters (e.g. line
feed). Switching to raw mode solves the problem and allows us to get rid of the
less efficient translation provided by nl().
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/myadm.c b/myadm.c
@@ -595,7 +595,8 @@ ui_init(void) {
stfl_run(f, -3); /* init ncurses */
stfl_free(f);
- nl();
+ nocbreak();
+ raw();
ipool = stfl_ipool_create(nl_langinfo(CODESET));
}