Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Izulien
Newbie


Joined: 24 Jul 2012
Posts: 9
Location: United States

PostPosted: Fri Aug 24, 2012 3:19 pm   

Color Specific Words
 
Is it possible to color specific words instead of the entire line?

I currently use
#co {line} color

But sometimes this will catch a line of my prompt as well which just looks silly.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Aug 24, 2012 5:01 pm   
 
Use #cw
_________________
EDIT: I didn't like my old signature
Reply with quote
Izulien
Newbie


Joined: 24 Jul 2012
Posts: 9
Location: United States

PostPosted: Tue Aug 28, 2012 6:03 pm   
 
AH! Much better options. Thanks for the help Matt... The "search" function in CMUD sucks compared to the searching in zMUD
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Tue Aug 28, 2012 6:24 pm   
 
i dunno, if you go to the color helpfile, you can see the CW helpfile to the left, granted, thats a bit indirect, but they do try to put as much common knowledge at your fingertips as possible

PS, check out #HELP %colorname
_________________
Discord: Shalimarwildcat
Reply with quote
Izulien
Newbie


Joined: 24 Jul 2012
Posts: 9
Location: United States

PostPosted: Tue Aug 28, 2012 6:36 pm   
 
Once you find the right helpfile sure. My comment was more of "search" actually doesn't do anything. Example is shown in the screenshot below.

http://img717.imageshack.us/img717/591/searchoy.png

Step 1. Go to Help>Search
Step 2. Type your query in the search field
Step 3. Press Enter or Click "Search"
Step 4. Steps 1-3 were useless, not just dig through all topics on the left to find one you think fits what you want.

Now as a side note.

If you do know the command you want (still going with color here) you can get great results by searching the command.
http://img7.imageshack.us/img7/9707/color2e.png -- showing results of #color instead of color

In this case I probably should have actually done the search again with the command once I found it.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Tue Aug 28, 2012 8:27 pm   
 
I believe that's exactly the same search function that existed in Zmud help--it simply lists all the help topics that contain that word(s). Can you describe what results you would expect to see in a search for "color"?
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Tue Aug 28, 2012 11:38 pm   
 
That's exactly what it does. The problem with a search term like "color" is that the helps are stored in HTML format, so your search will find every topic that has text in a different color in it because that looks something like "<span style="color: red">....</span>" internally. Probably technically a bug.
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Fri Aug 31, 2012 1:11 am   
 
CMUD supports the majority of the ANSI control set. This means that you can enter colors (as well as other display commands) in this fashion:
Code:

$ESC = %char(27)
;;
#ECHO $ESC"[1;33m" + THIS LINE IS BRIGHT YELLOW + $ESC"[0m"

The above works just fine.
You can also use either of this:
Code:

#ECHO <color "yellow">THIS LINE IS BRIGHT YELLOW</color>
;;
#MXP <color="yellow">THIS LINE IS BRIGHT YELLOW</color>
;;
// etc
_________________
Sic itur ad astra.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Aug 31, 2012 2:15 am   
 
There's no need to do it the way Anaristos described (first code block). If you want to put together an ansi-formatted string, simply use %ansi(). There are some technical differences between the ansi codes generated by %ansi() and the raw ansi codes--a result of the specific format terms you are applying, such as bold or italic--you learn about in the ansi spec, but the results will always look the same either way.
_________________
EDIT: I didn't like my old signature
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net