Upon further examination, this code was causing compliation problems on
CentOS at the least (possibly on any machine without curses) and also
the local value of COLS is used even with a remote console, so it is
less than ideal.
(issue ASTERISK-20396)
Reported by: Johan Wilfer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@375175
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
#include "asterisk/stringfields.h"
#include "asterisk/presencestate.h"
-#ifdef HAVE_CURSES
-#include <curses.h>
-#endif
-
/*** DOCUMENTATION
<manager name="Ping" language="en_US">
<synopsis>
}
}
-#ifdef HAVE_CURSES
- space_remaining = COLS - name_len - 4;
-#else
space_remaining = MGR_SHOW_TERMINAL_WIDTH - name_len - 4;
-#endif
if (space_remaining < 0) {
space_remaining = 0;
}