Tiny Fugue Multiwindow Hack

Some modern MUD clients support separating the text you see into multiple windows for ease of reading (see ALclientTutorial).

You can do the same thing in Tinyfugue on Linux with the following configuration added to your tfrc file.

If I'm missing some chatlines, let me know!

In order for this to work, you must mkfifo ~/.igortells and mkfifo ~/.igorchats, and open additional windows to cat those FIFOs BEFORE starting TF.

There's a reminder that will output, TF will appear hung until the FIFOs are open.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Communication highlights, with multiwindow support

/echo ==================================================================
/echo To launch TF properly with this in use the FIFOs MUST BE OPEN
/echo In one window, "cat ~/.igortells"
/echo In another, "cat ~/.igorchats"
/echo Only then will Tinyfugue start, otherwise it'll look hung.
/echo ==================================================================

/eval /set my_blue     \033[34;1m
/eval /set my_white    \033[37;1m
/eval /set my_yellow   \033[33;1m
/eval /set my_endcolor \033[37;40;0m

/eval /set fifo_tell $[ tfopen("~/.igortells","a") ]
/eval /set fifo_chat $[ tfopen("~/.igorchats","a") ]

;; Shitar in yellow to chats window
/def -p5      -aBCyellow -mregexp -t'SHITAR|LALA|\*SPICE\*|\[Mortal\]|WLOR'  _sh_hilite   = /test tfwrite({fifo_chat},strcat(ftime("%%Y/%%m/%%d:%%H:%%M:%%S ",time()),{my_yellow},{PL},{P0},{PR},{my_endcolor}))       %;\
     /def -p6 -aBCyellow -mregexp -t"^ +"                    _sh_hilite_2 = /test tfwrite({fifo_chat},strcat(ftime("%%%Y/%%%m/%%%d:%%%H:%%%M:%%%S ",time()),{my_yellow},{PL},{P0},{PR},{my_endcolor})) %;\
     /def -p7 -F -1 -mregexp -t"^[^ ]+"                      _sh_hilite_stop = \
                                                     /undef  _sh_hilite_2

;; Blue Order in blue to chats window
/def -p5      -aBCblue  -mregexp -t'-=BO=-'      _bo_hilite   = /test tfwrite({fifo_chat},strcat(ftime("%%Y/%%m/%%d:%%H:%%M:%%S ",time()),{my_blue},{PL},{P0},{PR},{my_endcolor}))       %;\
     /def -p6 -aBCblue  -mregexp -t"^ +"         _bo_hilite_2 = /test tfwrite({fifo_chat},strcat(ftime("%%%Y/%%%m/%%%d:%%%H:%%%M:%%%S ",time()),{my_blue},{PL},{P0},{PR},{my_endcolor})) %;\
     /def -p7 -F -1 -mregexp -t"^[^ ]+"          _bo_hilite_stop = \
                                          /undef _bo_hilite_2
;; Says & tells in white to tells
/def -p5      -aBCwhite -mregexp \
     -t'You tell|tells.*you.*:|says:|You say:|\(T\)|roars to you:|roars:|roar:|growls:|You growled:' \
                                                 _tl_hilite   = /test tfwrite({fifo_tell},strcat(ftime("%%Y/%%m/%%d:%%H:%%M:%%S ",time()),{my_white},{PL},{P0},{PR},{my_endcolor}))       %;\
     /def -p6 -aBCwhite -mregexp -t"^ +"         _tl_hilite_2 = /test tfwrite({fifo_tell},strcat(ftime("%%%Y/%%%m/%%%d:%%%H:%%%M:%%%S ",time()),{my_white},{PL},{P0},{PR},{my_endcolor})) %;\
     /def -p7 -F -1 -mregexp -t"^[^ ]+"          _tl_hilite_stop = \
                                          /undef _tl_hilite_2

;; Shouts to chat window in white
/def -p5      -aBCwhite -mregexp \
     -t'shouts:|You shout:| :: | :[0-24-9]+: ' \
                                                 _ts_hilite   = /test tfwrite({fifo_chat},strcat(ftime("%%Y/%%m/%%d:%%H:%%M:%%S ",time()),{my_white},{PL},{P0},{PR},{my_endcolor}))       %;\
     /def -p6 -aBCwhite -mregexp -t"^ +"         _ts_hilite_2 = /test tfwrite({fifo_chat},strcat(ftime("%%%Y/%%%m/%%%d:%%%H:%%%M:%%%S ",time()),{my_white},{PL},{P0},{PR},{my_endcolor})) %;\
     /def -p7 -F -1 -mregexp -t"^[^ ]+"          _ts_hilite_stop = \
                                          /undef _ts_hilite_2

;; Rangers in green
/def -p5      -aBCgreen -mregexp \
     -t'\+Tff\+' \
                                                 _rn_hilite   = /test tfwrite({fifo_chat},strcat(ftime("%%Y/%%m/%%d:%%H:%%M:%%S ",time()),{my_white},{PL},{P0},{PR},{my_endcolor}))       %;\
     /def -p6 -aBCgreen   -mregexp -t"^ +"       _rn_hilite_2 = /test tfwrite({fifo_chat},strcat(ftime("%%%Y/%%%m/%%%d:%%%H:%%%M:%%%S ",time()),{my_white},{PL},{P0},{PR},{my_endcolor})) %;\
     /def -p7 -F -1 -mregexp -t"^[^ ]+"          _rn_hilite_stop = \
                                          /undef _rn_hilite_2

-- DemosThenes - 2011/09/20

 
Topic revision: r1 - 2011/09/20 - 13:30:19 - DemosThenes
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback