Mercurial > ~mikael > mcabber > hg
diff 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 |
line wrap: on
line diff
--- a/mcabber/src/settings.c Fri Jul 08 07:31:24 2005 +0100 +++ b/mcabber/src/settings.c Fri Jul 08 21:47:17 2005 +0100 @@ -172,3 +172,11 @@ return 0; } +// Return the command the key is bound to, or NULL. +const gchar *isbound(int key) +{ + gchar asciikey[16]; + g_snprintf(asciikey, 15, "%d", key); + return settings_get(SETTINGS_TYPE_BINDING, asciikey); +} +