| View previous topic :: View next topic |
| Author |
Message |
mivok
Joined: 24 Oct 2005 Posts: 6
|
Posted: Mon Oct 31, 2005 3:46 pm Post subject: ANSI handling |
|
|
The mud that I play often starts ANSI colour sequences which will span multiple lines... for example:
\e[1;31m Coloured text
More coloured text without an ansi code on this line
Yet more coloured text
etc.. often for many lines
\e[0;37m Normal text
If, the first line is not displayed on screen, but the later lines are (due to scrollback), then the lines currently being displayed will not have any colour shown, only when you scroll back to the first line with the colour code will the lines then displayed on screen be in the correct colour.
Would it be possible to include a feature that will (re)display the last colour code (or the current colour of the text) at the top of left of the viewable area so the text would display in the correct colour please?
Alternatively, is there an expression to match the last ANSI colour code of a line for use in an action which would then print out the colour code at the start of the next line (i.e. do the same thing in a script)?
Thanks.
Edit: Oh, I forgot to add - I'm using #split - I suspect the problem won't occur if split isn't on |
|
| Back to top |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3281
|
Posted: Mon Oct 31, 2005 4:12 pm Post subject: |
|
|
It's indeed an issue caused by split.
I've added it to the todo list. |
|
| Back to top |
|
 |
mivok
Joined: 24 Oct 2005 Posts: 6
|
Posted: Mon Oct 31, 2005 4:24 pm Post subject: |
|
|
| Thanks |
|
| Back to top |
|
 |
|