Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ MUSHclient
➜ General
➜ ansi 16 after ansi 256 ignores bold?
ansi 16 after ansi 256 ignores bold?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #15 on Sat 31 Dec 2011 02:32 PM (UTC) Amended on Sat 31 Dec 2011 02:38 PM (UTC) by Fiendish
|
Message
| Oh sorry. The bold thing isn't my issue right now. I guess I'm looking just at the 38;5 thing. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Nick Gammon
Australia (23,046 posts) Bio
Forum Administrator |
Date
| Reply #16 on Sat 31 Dec 2011 07:20 PM (UTC) |
Message
| I am reluctant to fiddle with the colour-handling, particularly when there is code there that would do it, if it hadn't been commented out. That's a pretty sure sign that there is another subtle bug awaiting someone if it is changed.
If, when this bug was reported, there was a simple fix, I am sure I would have done the fix. As it is, I can't even remember what the bug is exactly. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #17 on Sat 31 Dec 2011 07:49 PM (UTC) |
Message
| Note a huge deal, I guess. I just tried using AnsiNote on 256ified data, and had to figure out the problem and then change the display method after mining the forum and re-finding this thread. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #18 on Thu 20 Dec 2012 12:31 AM (UTC) Amended on Thu 20 Dec 2012 12:59 AM (UTC) by Fiendish
|
Message
| LOL. I just found this thread again. Same xterm 256 color reason. Why again does AnsiNote interpret xterm colors differently than Simulate? |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Nick Gammon
Australia (23,046 posts) Bio
Forum Administrator |
Date
| Reply #19 on Thu 20 Dec 2012 04:17 AM (UTC) |
Message
| I'm not sure. That code was written in April 2003.
As I recall the idea of AnsiNote was to make it easy to inject ANSI sequences into your notes. However it doesn't go through the lengthy state machine that normal input (including Simulate) does. Basically the "usual" ANSI sequences were turned into the equivalent foreground/background colours. It may have bugs compared to the "main" state machine.
Judging by the release notes it was specifically written to support the Chat interface, where incoming chats had ANSI sequences in them, but were handled by scripts, and not the main "incoming MUD data" state machine.
Changing it now could be problematic. It might fix your problems but cause ones for others who are used to how it works now.
Why do you need to use it anyway? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #20 on Thu 20 Dec 2012 04:47 AM (UTC) Amended on Thu 20 Dec 2012 04:48 AM (UTC) by Fiendish
|
Message
|
Nick Gammon said:
Changing it now could be problematic.
It might fix your problems but cause ones for others who are used to how it works now.
Currently xterm color just doesn't work. Wouldn't unifying with the other way keep the other bits working still and just make this work too?
Quote: Why do you need to use it anyway?
I don't remember why I wanted to use it last time, but apparently I keep wanting to piece together ansi sequences without looping over colourtell. In this instance I was going to make a trigger to replace all server output with random ansi colors. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Nick Gammon
Australia (23,046 posts) Bio
Forum Administrator |
Date
| Reply #21 on Sat 18 Oct 2014 01:12 AM (UTC) |
Message
|
Fiendish said:
If I execute:
Simulate(ANSI(38,5,226).."aaa"..ANSI(31,1).."bbb")
Simulate(ANSI(33,1).."ccc"..ANSI(31,1).."ddd")
aaa and ccc are the same colors (as expected), but bbb and ddd are not. bbb is not showing up as bold even though I have ,1 in there. Why?
Fixed in version 4.95. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
59,909 views.
This is page 2, subject is 2 pages long:
1
2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top