-
Notifications
You must be signed in to change notification settings - Fork 6
keyboards
- 2 main files
- gui-readline.c
- keyboard.c
structures are:
- KEYBOARD_REC
- KEYINFO_REC
- id, description, list of keys and default keys.
- KEY_REC
- ptr to KEYINFO, key (str), data (str)
-
init()
initialises the keys/defaultkeys hashes -
key_bind()
takes id (multi, command, nothing, ...), desc, default, data, and callback -
it checks if the id already exists in keyinfos, otherwise creates and adds it.
-
it adds a signal
'key $id"
, with the callback as handler. -
emits keyinfo created.
-
if it already has a keyinfo, it adds it to both default_keys and keys maps.
Much of the content on these pages is taken from original Irssi documentation and is Copyright © 2000-2010 The Irssi project. Formatting and additional documentation, examples, etc by Tom Feist and the other editors of this wiki. This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. Please see http://creativecommons.org/licenses/by-sa/2.5/ for details.