comparison mcabber/src/settings.c @ 288:1eea0fa0955e

Add /bind command * Split process_line() to process_line() + process_command() * Do not expand aliases in multi-line mode * Add /bind command The binding system is ugly (not UTF-8 compatible, I think, and certainly system dependant because it is using ncurses wgetch() values).
author Mikael Berthe <mikael@lilotux.net>
date Fri, 08 Jul 2005 21:47:17 +0100
parents 87d6ac21cd1b
children d0295e735768
comparison
equal deleted inserted replaced
287:c2a7e78d9ff5 288:1eea0fa0955e
170 170
171 if (setval) return atoi(setval); 171 if (setval) return atoi(setval);
172 return 0; 172 return 0;
173 } 173 }
174 174
175 // Return the command the key is bound to, or NULL.
176 const gchar *isbound(int key)
177 {
178 gchar asciikey[16];
179 g_snprintf(asciikey, 15, "%d", key);
180 return settings_get(SETTINGS_TYPE_BINDING, asciikey);
181 }
182