about summary refs log tree commit diff stats
path: root/src/profanity.h
Commit message (Collapse)AuthorAgeFilesLines
* add subscription supportDmitry Podgorny2012-11-111-0/+3
|
* Handle subject from roomJames Booth2012-11-101-0/+2
|
* Tidy up leaving roomJames Booth2012-11-101-0/+1
|
* Show delayed time on messages received whilst offlineJames Booth2012-11-081-0/+1
| | | | Also do not show chat state notifications received whilst offline
* Basic chat room handling of presenceJames Booth2012-11-081-0/+4
|
* jabber: wait until full room roster received before showingJames Booth2012-11-071-3/+1
|
* Removed jabber.c dependency on ui.hJames Booth2012-11-061-0/+7
|
* Show message when other user <gone/>James Booth2012-11-011-0/+1
|
* Load roster before sending presenceJames Booth2012-10-281-5/+0
|
* Removed trailing whitespace from src and testsJames Booth2012-10-211-2/+2
|
* handle error messages from serverDmitry Podgorny2012-10-181-0/+1
|
* Refactored profanity moduleJames Booth2012-10-021-9/+7
| | | | Now has simple run method and event handlers
* Moved roster output handling to profanity moduleJames Booth2012-10-021-0/+6
|
* Added status handler code to profanity moduleJames Booth2012-10-021-0/+2
|
* Moved login attempt handler code to profanity moduleJames Booth2012-10-011-0/+3
|
* Moved incoming message code to profanity moduleJames Booth2012-10-011-0/+2
|
* Created shutdown init function to initiate and wait for shutdownJames Booth2012-09-111-0/+1
|
* Customisable logging levelsJames Booth2012-08-191-1/+1
|
* Added autobuild toolsJames Booth2012-07-011-0/+30
ss="k">for char in obj: yield char elif isinstance(obj, int): yield obj elif isinstance(obj, str): in_brackets = False bracket_content = None for char in obj: if in_brackets: if char == '>': in_brackets = False string = ''.join(bracket_content).lower() try: keys = special_keys[string] for key in keys: yield key except KeyError: yield ord('<') for c in bracket_content: yield ord(c) yield ord('>') except TypeError: yield keys # it was no tuple, just an int else: bracket_content.append(char) else: if char == '<': in_brackets = True bracket_content = [] else: yield ord(char) if in_brackets: yield ord('<') for c in bracket_content: yield ord(c) # Arbitrary numbers which are not used with curses.KEY_XYZ DIRKEY = 9001 ANYKEY = 9002 PASSIVE_ACTION = 9003 special_keys = { 'dir': DIRKEY, 'any': ANYKEY, 'bg': PASSIVE_ACTION, 'backspace': curses.KEY_BACKSPACE, 'backspace2': curses.ascii.DEL, 'delete': curses.KEY_DC, 'cr': ord("\n"), 'enter': ord("\n"), 'space': ord(" "), 'esc': curses.ascii.ESC, 'down': curses.KEY_DOWN, 'up': curses.KEY_UP, 'left': curses.KEY_LEFT, 'right': curses.KEY_RIGHT, 'pagedown': curses.KEY_NPAGE, 'pageup': curses.KEY_PPAGE, 'home': curses.KEY_HOME, 'end': curses.KEY_END, 'tab': ord('\t'), 's-tab': curses.KEY_BTAB, } for char in ascii_lowercase: special_keys['c-' + char] = ord(char) - 96 for char in (ascii_lowercase + '0123456789'): special_keys['a-' + char] = (27, ord(char))