The ansi Code Isn't Working!

Posted by Ariel Schnee on Wed 23 Nov 2022 01:23 PM — 8 posts, 23,718 views.

#0
This.

@@@

&VIEW-SIGN here=%r[ansi(c,[repeat(-,78)])]%r%r[center([ansi(fhg,OOC NEXUS)],78)]%r%r[center([ansi(fhg,LEVEL 2)],78)]%r%r[center([ansi(fhg,VENDING)],78)]%r%r[center([ansi(fhg,MACHINE)],78)]%r%r[center([ansi(fhg,STORE)],78)]%r%r[ansi(c,[repeat(-,78)])]%r

@@@

It's supposed to be flashing. It's not flashing. The bottom line of the room desc is this: "On the wall is a very colorful\, flashing\, neon [ansi(w,sign)]."

It's not flashing any though.

Please tell me how to fix this.
#1
This looks like it's custom code with custom functions. Unless we see what the custom functions do, it may be difficult to even attempt to resolve the issue.

Can you provide these custom definitions, and how you are attempting to display it?
#2
AdInfinitum said:

This looks like it's custom code with custom functions. Unless we see what the custom functions do, it may be difficult to even attempt to resolve the issue.

Can you provide these custom definitions, and how you are attempting to display it?


This isn't custom code. It's standard PennMUSH softcode. All of this is listed in the PennMUSH hardcoded help files.

@@@

@emit %r[ansi(c,[repeat(-,78)])]%r%r[center([ansi(fhg,OOC NEXUS)],78)]%r%r[center([ansi(fhg,LEVEL 2)],78)]%r%r[center([ansi(fhg,VENDING)],78)]%r%r[center([ansi(fhg,MACHINE)],78)]%r%r[center([ansi(fhg,STORE)],78)]%r%r[ansi(c,[repeat(-,78)])]%r

The above code produces this:

------------------------------------------------------------

OOC NEXUS

LEVEL 2

VENDING

MACHINE

STORE

------------------------------------------------------------

It centers it like it's supposed to. It shows the text as highlighted green as it's supposed to. It DOES NOT flash/blink the text like it's supposed to. It DOES flash/blink it on other clients. It DOES NOT flash/blink it on MUSHclient.

@@@

help repeat

@@@

help center

@@@

help ansi

@@@

help ansi()
USA Global Moderator #3
AFAIK, MUSHclient doesn't support flashing text.
#4
Fiendish said:

AFAIK, MUSHclient doesn't support flashing text.


WHAT?!

It really doesn't?

...

.....

Even old clients like MuckClient support flashing text ansi.

Honestly...

You really need to fix that now.
USA Global Moderator #5
Quote:
You really need to fix that now.

Feel free to submit a patch on GitHub at https://github.com/nickgammon/mushclient

We don't get paid for this.
Amended on Wed 23 Nov 2022 09:31 PM by Fiendish
Australia Forum Administrator #6
Ariel Schnee said:

Even old clients like MuckClient support flashing text ansi.

Honestly...

You really need to fix that now.


Personally I find flashing text quite annoying. Plus, it may trigger people with epilepsy problems.

It's also not easy to implement. You have potentially thousands of characters of text in the output window some of which you want to flash. That means that every half second or so certain ones of those (maybe hundreds) have to be replaced with spaces, and then put back, time and time again.

Meanwhile the text is most likely scrolling, so the exact location of the characters that have to be flashed will be continually changing.

The client does not support flashing text, by design. As I recall, it replaces it with italics to give a hint that this text may be more important than surrounding text.

Since the client's release in 1995, I think there have been the occasional complaint about the flashing not working. Hardly enough to get excited about.

Remember, the client is designed to deliver a good experience for MUD game players, not be a terminal emulator.
Australia Forum Administrator #7
There are some good terminal emulators around, if that is what you want. Putty for example. They may not be great to play a MUD on, but they probably support flashing text.

https://www.putty.org/