TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

split screen and multiple lines

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
adroid28



Joined: 20 Jul 2010
Posts: 18

PostPosted: Wed Jul 21, 2010 4:56 pm    Post subject: split screen and multiple lines Reply with quote

Hi again Smile

I searched the forum and I am using this script to split the window but there are two problems. Firstly I get the message on the main window as well and second I only recieve the first line on the upper part.

Code:
#split 6 1
 
 #var window {{1}{ } {2}{ } {3}{ } {4}{ } {5}{ }}
 
 #act {(One) %0} {showtowin (One) %0}
 #act {(Wizards) %0} {showtowin (Wizards) %0}
 
 #alias {showtowin}
 {
    #format temp {%w} {%0};
 
    #loop {1} {&temp[]} {cnt}
    {
       #list window ins -1 {$temp[$cnt]}
    };
 
    #loop {6} {&window[]} {cnt}
    {
       #list window del 1
    };
 
    #loop {1} {5} {cnt}
    {
       #echo {{$window[$cnt]} {-$cnt}}
    }
 }


Also, would it be possible to send text in a different terminal window?
Any help would be appreciated Smile

Best

Dionysis
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Thu Jul 22, 2010 10:57 pm    Post subject: Reply with quote

To remove messages from the main window use at the end of the showtowin alias:

#line gag

I'm not sure what you mean with ' I only recieve the first line on the upper part', can you give an example?


Regarding showing text in a different terminal window, you could use:

#act {(One) %*} {#line log comm.log %0}

Then in another terminal window you'd use:

tail -f comm.log
Back to top
View user's profile Send private message Send e-mail
adroid28



Joined: 20 Jul 2010
Posts: 18

PostPosted: Fri Jul 23, 2010 3:20 pm    Post subject: Reply with quote

Thank you once again Smile

With your answer and a lot of searching on the forum I
got everything to work. There is one last thing and I am
set.

I am using html to store my logs because I want to store
the colours. The problem is that when I want to check the
log on the fly (for example when I use split) I have to go
to safari and press refresh. Is there a way to have the
html log or any coloured log in a terminal window with
something like tail?

All the best Smile

Dionysis
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Fri Jul 23, 2010 5:22 pm    Post subject: Reply with quote

Log as raw and use: tail -f <logfile>

Another option is using: #scan <filename> from within tintin, which will load a raw log file, which subsequently allows you to use the #grep and #buffer find <text> commands.

You can also add a log viewing script and add a load and refresh macro (F5):
Code:

#alias {load} {#var file %0;#scan %0}

#macro {\e[15~} {#buffer clear;#scan $file}
Back to top
View user's profile Send private message Send e-mail
adroid28



Joined: 20 Jul 2010
Posts: 18

PostPosted: Fri Jul 23, 2010 5:42 pm    Post subject: Reply with quote

That worked perfectly. I didn't realise that the raw format stores
colour.

Thanks so much!

Dionysis
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion All times are GMT - 5 Hours
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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group