Notices


Reply
Thread Tools
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#11
Originally Posted by mikkov View Post
Irssi is de facto standard terminal based irc client. Out of curiosity what makes it so cool?
it can't be cool because it is so easy to use that kids can learn it in couple of hours.

ircII is much better

__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 
chemist's Avatar
Administrator | Posts: 1,036 | Thanked: 2,018 times | Joined on Sep 2009 @ Germany
#12
Originally Posted by ossipena View Post
ircII is much better
ah ok ircII looks pretty unsupported, last release with lastyears code, that the current build shows todays date could be due to auto building... to be cool you telnet your irc msgs!
 
joppu's Avatar
Posts: 780 | Thanked: 855 times | Joined on Sep 2009 @ Helsinki, Finland
#13
The incredible power of SSH, screen and irssi lets me continue my IRC sessions even on my S60 phone.

 
Posts: 11 | Thanked: 5 times | Joined on Nov 2009
#14
That was my screenshot. I was sshed from the n900 into my 24x7 server that has a screen session with the irssi IRC client in it. The status bar along the bottom is a custom thing set up for screen that has little text widgets to tell me, things like whether I have new email and, when someone talks to me in IRC.

I think even if irssi were ported to the n900 I'd still connect to the same remote session like I do with all of my other computers.
 
chemist's Avatar
Administrator | Posts: 1,036 | Thanked: 2,018 times | Joined on Sep 2009 @ Germany
#15
Originally Posted by greenfly View Post
That was my screenshot. I was sshed from the n900 into my 24x7 server that has a screen session with the irssi IRC client in it. The status bar along the bottom is a custom thing set up for screen that has little text widgets to tell me, things like whether I have new email and, when someone talks to me in IRC.

I think even if irssi were ported to the n900 I'd still connect to the same remote session like I do with all of my other computers.
how do you do the widgetting for email and IRC? I didn't get that working ever....
btw my statuslines all look something like this but colours are different on each server
Code:
hardstatus alwayslastline "%{ck}%?%-w%?[%n*%f %t]%?%+Lw%?%=| %{..W}[%l] %{..G}%2`@%H %{..Y} %D %d/%m/%Y %c"
Code:
$bash   | $load $user@$host  $DOW $date $time
 
Posts: 11 | Thanked: 5 times | Joined on Nov 2009
#16
Originally Posted by chemist View Post
how do you do the widgetting for email and IRC? I didn't get that working ever....
btw my statuslines all look something like this but colours are different on each server
Code:
hardstatus alwayslastline "%{ck}%?%-w%?[%n*%f %t]%?%+Lw%?%=| %{..W}[%l] %{..G}%2`@%H %{..Y} %D %d/%m/%Y %c"
Code:
$bash   | $load $user@$host  $DOW $date $time

Here's my hardstatus string:

Code:
hardstatus string '%{= w}%Y-%m-%d %c:%s%{= w}|%= |%{+b r}%101`%{-}|%{+b g}%103`%{-}|%{+b b}%105`%{-}|%{= y}%107`%{= w}'
The %101`, %102`, etc. correspond to the "backtick" parameter in the screenrc. You can basically plug in a script that executes and its output will be put in place of those operators. For instance, the mail script is referenced in screenrc like so:

Code:
backtick 105 60 60 /path/to/custom/fetchmail.pl
That fetchmail.pl is a short script I wrote that runs fetchmail -c, parses it, and outputs folders with new mail. It's short enough I'll paste it here:

Code:
#!/usr/bin/perl

open FETCHMAIL, "/usr/bin/fetchmail -t 10 -c 2>/dev/null |" or die "Can't run fetchmail: $!\n";

while(<FETCHMAIL>){
   if(/^(\d+) messages \((\d+) seen.*?folder (.*?)\)/){
      $m+=$1; $s+=$2; $f=$3;
      $f =~ s/INBOX\.//;  #my IMAP server adds INBOX in front of each folder
   }
   if($1 > $2){
      $fs{$f} = $1 - $2;
   }
}
close FETCHMAIL;
$t = $m - $s;

if($t > 0){
   foreach $folder (sort { $fs{$a}<=>$fs{$b} } keys %fs){
      push @folders, "$folder:$fs{$folder}";
   }
}
print join " ", @folders;
 

The Following User Says Thank You to greenfly For This Useful Post:
chemist's Avatar
Administrator | Posts: 1,036 | Thanked: 2,018 times | Joined on Sep 2009 @ Germany
#17
thanks, I am not into perl that much but this does download the folders local and looks up if the count of msgs changed to a higher number as it been before?
 
Posts: 11 | Thanked: 5 times | Joined on Nov 2009
#18
Originally Posted by chemist View Post
thanks, I am not into perl that much but this does download the folders local and looks up if the count of msgs changed to a higher number as it been before?
The -c argument to fetchmail tells it to just show you your folder status but it doesn't download anything. You, of course, need to have fetchmail already configured to connect to your remote IMAP server.
 
chemist's Avatar
Administrator | Posts: 1,036 | Thanked: 2,018 times | Joined on Sep 2009 @ Germany
#19
never used fetchmail, was just looking into man pages how does the irssi highlight light up your statusbar (thats even more interesting, would write plugins if I learn perl some time...)

Originally Posted by qole View Post
X-Chat has a reasonable port for the N900, too. But it isn't nearly as hardcore geeky as what greenfly, joppu, timoph, and chemist are doing...

You can probably run a local version of irssi on your N900 with Easy Debian. I'm not going to bother trying, however...
shouldnt be a problem to port irssi to maemo5 as there is a earlier port and also debian is available for arm...
http://www.debian.org/ports/arm/

Last edited by chemist; 2009-11-18 at 21:38.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 05:50.