Skip to content

Incorrect line prefix and duplicate prompt when using --tag-lines option #342

Description

@morganwillcock

I was looking at using the --tag-lines option to more reliably detect the game and debugger prompts, but when trying it, I appear to be getting a prefix of " " on a prompt line as well as a duplicate prompt.

Here is the normal output:

$ dgdebug cloak.dg stdlib.dg 
Dialog Interactive Debugger (dgdebug) version 1c/02.
Type @help at the game prompt for a brief introduction.


Hurrying through the rainswept November night, you're glad to see the bright
lights of the Opera House. It's surprising that there aren't more people about
but, hey, what do you expect in a cheap demo game...?

Cloak of Darkness
A port of Roger Firth's reference game by Linus Åkesson.
Release 1. Serial number DEBUG.
Dialog Interactive Debugger (dgdebug) version 1c/02. Library version 1.2.3.

Foyer of the Opera House
You are standing in a spacious hall, splendidly decorated in red and gold, with
glittering chandeliers overhead. The entrance from the street is to the north,
and there are doorways south and west.

> 

Here is the output with --tag-lines:

$ dgdebug --tag-lines cloak.dg stdlib.dg 
  Dialog Interactive Debugger (dgdebug) version 1c/02.
  Type @help at the game prompt for a brief introduction.
  
  
  Hurrying through the rainswept November night, you're glad to see the bright
  lights of the Opera House. It's surprising that there aren't more people
  about but, hey, what do you expect in a cheap demo game...?
  
  Cloak of Darkness
  A port of Roger Firth's reference game by Linus Åkesson.
  Release 1. Serial number DEBUG.
  Dialog Interactive Debugger (dgdebug) version 1c/02. Library version 1.2.3.
  
  Foyer of the Opera House
  You are standing in a spacious hall, splendidly decorated in red and gold,
  with glittering chandeliers overhead. The entrance from the street is to the
  north, and there are doorways south and west.
  
  > 
> 

I am testing in the XFCE terminal emulator.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions