From 46f89d143b03d2af69ee871a2740a94e64663435 Mon Sep 17 00:00:00 2001 From: Christian Prochaska Date: Sat, 25 May 2019 19:43:08 +0200 Subject: [PATCH] libports: ncurses: disable relative cursor movement Fixes #3380 --- repos/libports/lib/mk/ncurses.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/repos/libports/lib/mk/ncurses.mk b/repos/libports/lib/mk/ncurses.mk index 2c84f9b929..19e509a49e 100644 --- a/repos/libports/lib/mk/ncurses.mk +++ b/repos/libports/lib/mk/ncurses.mk @@ -15,6 +15,10 @@ vpath %.c $(NCURSES_SRC_DIR)/tinfo ALL_TTY_SRC_C = $(notdir $(wildcard $(NCURSES_SRC_DIR)/tty/*.c)) SRC_C += $(ALL_TTY_SRC_C) vpath %.c $(NCURSES_SRC_DIR)/tty +# prevent the use of '\n' for 'cursor down' movement, because the terminal adds +# CR by default and ncurses' clearing of 'ONLCR' from 'c_oflag' currently has +# no effect +CC_OPT_lib_mvcur = -DNO_OPTIMIZE # files from the 'ncurses/trace/' subdirectory SRC_C += $(notdir $(addprefix $(NCURSES_SRC_DIR)/trace/,lib_trace.c varargs.c visbuf.c))