| View previous topic :: View next topic |
| Author |
Message |
adroid28
Joined: 20 Jul 2010 Posts: 18
|
Posted: Wed Jul 21, 2010 4:56 pm Post subject: split screen and multiple lines |
|
|
Hi again
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
Best
Dionysis |
|
| Back to top |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3281
|
Posted: Thu Jul 22, 2010 10:57 pm Post subject: |
|
|
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 |
|
 |
adroid28
Joined: 20 Jul 2010 Posts: 18
|
Posted: Fri Jul 23, 2010 3:20 pm Post subject: |
|
|
Thank you once again
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
Dionysis |
|
| Back to top |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3281
|
Posted: Fri Jul 23, 2010 5:22 pm Post subject: |
|
|
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 |
|
 |
adroid28
Joined: 20 Jul 2010 Posts: 18
|
Posted: Fri Jul 23, 2010 5:42 pm Post subject: |
|
|
That worked perfectly. I didn't realise that the raw format stores
colour.
Thanks so much!
Dionysis |
|
| Back to top |
|
 |
|