diff options
author | Bertrand Jacquin (Beber) <beber.mailing@gmail.com> | 2006-05-09 03:30:22 +0200 |
---|---|---|
committer | beber <beber@meathook.melee> | 2006-05-09 03:30:22 +0200 |
commit | a92e557f03da7739c95d0a7cae8828a1e3b52ada (patch) | |
tree | 898dce2a309311a14e286c3d94a3bb5f9575eeac /src | |
parent | CMakeLists.txt have nothing to do here (diff) | |
download | espik-a92e557f03da7739c95d0a7cae8828a1e3b52ada.tar.xz |
Ermm !! readline is not good
Delete kb_get for now
Diffstat (limited to 'src')
-rw-r--r-- | src/espik.c | 6 | ||||
-rw-r--r-- | src/espik_common_handler.c | 16 | ||||
-rw-r--r-- | src/espik_irc.c | 2 | ||||
-rw-r--r-- | src/espik_net.c | 2 |
4 files changed, 21 insertions, 5 deletions
diff --git a/src/espik.c b/src/espik.c index 96e1032..586d6de 100644 --- a/src/espik.c +++ b/src/espik.c @@ -83,8 +83,9 @@ int main (int argc, char **argv) printf ("user: %s\n", a_infos.client->username); printf ("real: %s\n", a_infos.client->realname); - /* Handler Keyboard */ - fd_kb = ecore_main_fd_handler_add (STDIN_FILENO, ECORE_FD_READ, kb_get, + +/* Handler Keyboard */ +/* fd_kb = ecore_main_fd_handler_add (1, ECORE_FD_READ, kb_get, NULL, NULL, NULL); espik_free (fd_kb); if (!fd_kb) @@ -92,6 +93,7 @@ int main (int argc, char **argv) printf ("Cannot ecore_main_fd_handler_add\n"); exit (-1); } + */ espik_con_init (a_infos); ecore_main_loop_begin (); diff --git a/src/espik_common_handler.c b/src/espik_common_handler.c index db5780f..239c693 100644 --- a/src/espik_common_handler.c +++ b/src/espik_common_handler.c @@ -10,6 +10,7 @@ #include "espik_global.h" #include "espik.h" #include "espik_error.h" +#include "espik_irc.h" #include "espik_net.h" #include "espik_common_handler.h" @@ -55,11 +56,19 @@ int server_data (void *data __UNUSED__, int ev_type __UNUSED__, return (0); } +/* int kb_get (void *data __UNUSED__, Ecore_Fd_Handler *fd_handler __UNUSED__) { char *kb; + int i = 0; - kb = readline ("> "); + printf ("\n\n\nkb_get Called !!! \n\n\n"); + +while (i < 2) +{ + printf ("> "); + fflush (stdout); + kb = readline (""); if (!kb) { @@ -68,6 +77,11 @@ int kb_get (void *data __UNUSED__, Ecore_Fd_Handler *fd_handler __UNUSED__) } printf ("%s\n", kb); + irc_send (kb); + i++; +// free (kb); + } return (1); } +*/ diff --git a/src/espik_irc.c b/src/espik_irc.c index de418ca..3e5b3f7 100644 --- a/src/espik_irc.c +++ b/src/espik_irc.c @@ -220,7 +220,7 @@ char* irc_send (char* msg) out = NULL; - current_chan = "#e.fr"; + current_chan = "#test"; if (msg[0] == '/') { diff --git a/src/espik_net.c b/src/espik_net.c index b525811..68a853d 100644 --- a/src/espik_net.c +++ b/src/espik_net.c @@ -89,7 +89,7 @@ void send_login (void) espik_raw_send (tmp); printf("tmp2: %s", tmp2); espik_raw_send (tmp2); - espik_raw_send ("JOIN #e.fr"); + espik_raw_send ("JOIN #test"); /* printf ("<<<<<<<< DUMMMMY CODE >>>>>>>"); */ |