aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/undo.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2015-03-18 01:21:34 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2015-03-18 02:53:55 +0100
commit34a4c7eceda6843efd60edd233f9db2d3b03ae81 (patch)
treed1fb1f46cf63b5c813161cbda2e8b2fc0394c23e /src/undo.cpp
parent14ebd5d58be3fcb5d2208f890498dd8c57f4d165 (diff)
downloadsciteco-34a4c7eceda6843efd60edd233f9db2d3b03ae81.tar.gz
ncurses: fixed batch mode initialization for unset or broken $TERM
* If TERM is set but wrong, it might still fail. Errors are reported now. * If $TERM is unset or empty, we refuse to start the interactive mode. Unfortunately, we cannot easily let curses decide this since newterm() does not work as expected. * However this solution should be quite good: Either $TERM is empty - then batch mode will work but not interactive mode. Or it is not empty, then it is checked by the first call to newterm() when initializing batch mode. The chance of starting up interactive mode with a wrong $TERM or in head-less environments is now quite low. * This is most likely responsible for the PPA build issues.
Diffstat (limited to 'src/undo.cpp')
0 files changed, 0 insertions, 0 deletions