Author Topic: nOmnomIRC - A command-line OmnomIRC client in php and ncurses  (Read 9116 times)

0 Members and 1 Guest are viewing this topic.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Well, this is whatever I worked on since yesterday evening, it's a command-line OmnomIRC client made in php using ncurses and readline, so it kinda looks like irssi and it supports input line edition and stuff like that (just like in irssi) and userlist. So yeah, pretty useful if you like irssi and you don't feel like firing up graphics. Oh, and don't forget editing the stuff at the beginning of file.

Source: https://raw.github.com/juju2143/nOmnomIRC/master/nomnomirc.php

TODO: Colors!
« Last Edit: March 24, 2013, 10:18:15 pm by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #1 on: March 24, 2013, 08:55:49 pm »
sorunome-laptop% php ./nomnomirc.php
PHP Fatal error:  Call to undefined function ncurses_init() in /home/sorunome/Desktop/nomnomirc.php on line 212


And OmnomIRC works by now over elinks, so you don't need to fire up a GUI anyways :P
If you want to juju fork the project on github and do more stuff with it :)


EDIT: yeah, i have ncurses installed, it still doesn't work
« Last Edit: March 24, 2013, 08:57:23 pm by Sorunome »

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #2 on: March 24, 2013, 09:21:17 pm »
You should apt-get install php5-ncurses, then uncomment both extension=sqlite3.so (if you use Chrome or Firefox) and extension=ncurses.so in php.ini.

And yeah well, this one should be more convenient as it uses ncurses and it has a irssi look-and-feel.

Plus if you read the code, it's a pretty perfect example on how to use the OmnomIRC API, ncurses and readline.
« Last Edit: March 24, 2013, 09:23:12 pm by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #3 on: March 24, 2013, 09:22:29 pm »
I use archlinux and that is not in the official repo or in the aur

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #4 on: March 24, 2013, 09:27:17 pm »
pacman -S php-ncurses, then.

EDIT: Wait got it wrong, was confused.
sudo pacman -S php-pear php-sqlite
sudo pecl install ncurses
« Last Edit: March 24, 2013, 09:38:51 pm by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #5 on: March 24, 2013, 09:28:12 pm »
Nope, doesn't exist :(

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #6 on: March 24, 2013, 10:17:31 pm »
Now it works.

Also Sorunome wanted it in GitHub, there we go: https://github.com/juju2143/nOmnomIRC

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #7 on: May 19, 2013, 04:51:51 am »
Update! Colors! They work!

EDIT: They work even more!
« Last Edit: May 19, 2013, 02:47:47 pm by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #8 on: May 19, 2013, 04:11:52 pm »
Nice! How about other text decorations?

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #9 on: May 19, 2013, 04:13:51 pm »
Nice! How about other text decorations?
They also work! 16 colors (or 8, dunno, it's hard to tell), bold, underline and reverse, they all work!
« Last Edit: May 19, 2013, 04:15:01 pm by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #10 on: May 19, 2013, 04:20:05 pm »
also reversing reversed? (that doesn't work on omnomirc O.O)
(and italic? :P)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #11 on: May 19, 2013, 04:24:03 pm »
Yes. No italics though.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #12 on: May 19, 2013, 04:25:26 pm »
then add italic :P it is \x1d

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #13 on: May 19, 2013, 04:35:53 pm »
How you can italics in a terminal?

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #14 on: June 10, 2013, 04:26:39 pm »
Well, I get that :
PHP Fatal error:  Uncaught exception 'Exception' with message 'Unable to open database: unable to open database file' in /home/danelkouby/nomnomirc.php:330
                                                                                                                                                           Stack trace:
                                                                                                                                                                       #0 /home/danelkouby/nomnomirc.php(330): SQLite3->__construct('/home/danelkoub...')
                                                            #1 {main}
                                                                       thrown in /home/danelkouby/nomnomirc.php on line 330

I installed all the stuff correctly so I don't know what's wrong. :/