Alas, you cannot go that way. . . .
< 204h/204H 118v/118V P: std > Alas, you cannot go that way. . . .
< 204h/204H 118v/118V P: std >
I'm trying to create a script that will detect this condition and force a line break so that:
1. It looks nice
2. triggers that depend on ^ and $ work properly.
I've got a wrapping trigger that mostly works (and it's placed before all other triggers).
My regex trigger looks like this:
And the script looks like this:
which gives me this:
Alas, you cannot go that way. . . .
< 204h/204H 118v/118V P: std >
Alas, you cannot go that way. . . .
< 204h/204H 118v/118V P: std >
which works great, except for one little problem. I'm doing "proper" prompt detection with a second trigger. This trigger parses the info in the prompt for further processing. It also looks for text between the prompts and reacts to things and echos stuff. To illustrate the problem I altered the script in my prompt detection to simply echo("testing\n")
with the wrapping trigger above turned off, I get output like this:
Alas, you cannot go that way. . . .
< 204h/204H 118v/118V P: std > Alas, you cannot go that way. . . .testing
< 204h/204H 118v/118V P: std > testing
with the wrapping trigger turned on, I get this:
Alas, you cannot go that way. . . .
< 204h/204H 118v/118V P: std >
Alas, you cannot go that way. . . .testing
< 204h/204H 118v/118V P: std > testing
what I would like to see is:
Alas, you cannot go that way. . . .
< 204h/204H 118v/118V P: std > testing
Alas, you cannot go that way. . . .
< 204h/204H 118v/118V P: std > testing
Any idea how I can make that happen?