]> git.pond.sub.org Git - empserver/commit
client: Use readline only when standard input is a TTY
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 9 Jul 2017 15:05:51 +0000 (17:05 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 09:22:30 +0000 (11:22 +0200)
commitde638fd77981daed8882814b08c4444e74733314
tree92d2b0c8b2431b7f75c4ec06d748f637f8fb37ae
parenta0220e864f6bcf4355896e58d1ac9b499e19016f
client: Use readline only when standard input is a TTY

Readline is for interactive use.  For non-interactive use, it merely
complicates things.  Case in point: it slows down "make check" by almost
10% for me.

Interactive use should always involve a TTY, so use readline only when
standard input is a TTY.  This supresses readline in "make check".

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/client/play.c