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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Thu Jul 16, 2009 5:08 pm   

Fun with #STYLE in v3.09
 
The #STYLE command in v3.09 now supports a numeric value for the style name, allowing you to change one of the internal style records. Currently, the following are supported:

0: default text style
1: information messages
2: command echo
3: timestamp
4: urls

There are some fun uses for this. Here are a couple:

Flashing the screen
Code:
#ALIAS flash {
  #STYLE 0 {back:red}
  #WAIT 50
  #STYLE 0 {back:black}
}

Showing if unix shell is in SU mode
Code:
#TRIGGER {~$ $} {#STYLE 0 {black,white}} "" "prompt"
#TRIGGER {# $} {#STYLE 0 {black,red}} "" "prompt"

In my case, my unix shell has a prompt that ends with $ when in normal user mode, and a prompt that ends in # when in SU mode.

The SU example is one of the features that I wanted to offer with TeSSH, which is why I went ahead and did this feature now. But I know people have asked about flashing the screen in the past too.
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Thu Jul 16, 2009 5:29 pm   
 
Flashing the screen will be very nice for when I have the speakers off and I want to get my attention.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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