aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-11-14 10:21:38 +0000
committertaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-11-14 10:21:38 +0000
commit5ec97a2ab3f759aa9419cec6ac2bd3f9b6f53f48 (patch)
tree22ce06c96e209aba75c3bbc7485b008fb197a442 /src
parent10e096c39d36e42d84a1a58a29b506aa77ee1e86 (diff)
Work round DirAx's dodgy prompt handling
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@196 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src')
-rw-r--r--src/dirax.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dirax.c b/src/dirax.c
index ecfcb00..d7aa68c 100644
--- a/src/dirax.c
+++ b/src/dirax.c
@@ -222,7 +222,8 @@ static gboolean dirax_readable(GIOChannel *dirax, GIOCondition condition, Contro
/* Is there a prompt in the buffer? */
if ( i+7 <= ctx->dirax_rbufpos ) {
- if ( strncmp(ctx->dirax_rbuffer+i, "Dirax> ", 7) == 0 ) {
+ if ( (strncmp(ctx->dirax_rbuffer+i, "Dirax> ", 7) == 0)
+ || (strncmp(ctx->dirax_rbuffer+i, "PROMPT:", 7) == 0) ) {
block_ready = 1;
type = DIRAX_INPUT_PROMPT;
break;