maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   what is this app runing on terminal? (https://talk.maemo.org/showthread.php?t=34654)

ossipena 2009-11-17 20:18

Re: what is this app runing on terminal?
 
Quote:

Originally Posted by mikkov (Post 379698)
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 :D

http://upload.wikimedia.org/wikipedi...5141!Ircii.png

chemist 2009-11-17 20:35

Re: what is this app runing on terminal?
 
Quote:

Originally Posted by ossipena (Post 379785)
ircII is much better :D

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 2009-11-18 13:35

Re: what is this app runing on terminal?
 
The incredible power of SSH, screen and irssi lets me continue my IRC sessions even on my S60 phone.

http://imgkk.com/i/jzev1z.jpg

greenfly 2009-11-18 20:23

Re: what is this app runing on terminal?
 
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 2009-11-18 20:39

Re: what is this app runing on terminal?
 
Quote:

Originally Posted by greenfly (Post 381285)
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

greenfly 2009-11-18 21:01

Re: what is this app runing on terminal?
 
Quote:

Originally Posted by chemist (Post 381301)
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;


chemist 2009-11-18 21:09

Re: what is this app runing on terminal?
 
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?

greenfly 2009-11-18 21:11

Re: what is this app runing on terminal?
 
Quote:

Originally Posted by chemist (Post 381342)
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 2009-11-18 21:35

Re: what is this app runing on terminal?
 
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...)

Quote:

Originally Posted by qole (Post 381357)
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/


All times are GMT. The time now is 10:18.

vBulletin® Version 3.8.8