From 5ec97a2ab3f759aa9419cec6ac2bd3f9b6f53f48 Mon Sep 17 00:00:00 2001 From: taw27 Date: Wed, 14 Nov 2007 10:21:38 +0000 Subject: 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 --- src/dirax.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3