diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-03-18 01:21:34 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-03-18 02:53:55 +0100 |
commit | 34a4c7eceda6843efd60edd233f9db2d3b03ae81 (patch) | |
tree | d1fb1f46cf63b5c813161cbda2e8b2fc0394c23e /src/interface-curses.h | |
parent | 14ebd5d58be3fcb5d2208f890498dd8c57f4d165 (diff) | |
download | sciteco-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/interface-curses.h')
0 files changed, 0 insertions, 0 deletions