I'll leave to the release consortium to decide if this should be in 3.1
or held over.
Works fine on all the platforms I can test, passes QA -g dbpmda on
Linux.
Changes committed to git://oss.sgi.com/kenj/pcp.git dev
configure.in | 31 ++++++++++
man/man1/dbpmda.1 | 16 +++++
src/dbpmda/src/GNUmakefile | 2
src/dbpmda/src/dbpmda.c | 2
src/dbpmda/src/lex.l | 117 ++++++++++++++++++++++++++++++++++-------
src/include/builddefs.in | 2
src/include/platform_defs.h.in | 1
7 files changed, 150 insertions(+), 21 deletions(-)
commit aa965191c671b0148bc99bd5fbc82dacc8ef44a2
Author: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Wed Jan 27 06:25:23 2010 +1100
readline for dbpmda
Thanks to Andrew Wansink fo showing how this could be done and providing
the initial patches. This checkin refines that work so that readline()
is used when it is available (and when the lexer is flex) but only when
the command input is coming from a tty device.
This version also works on vanilla Mac OS X.
The same approach could also be used also for the non-flex lexers,
but I don't have any way of testing these.
|