aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;