Mercurial > libervia-backend
comparison frontends/src/primitivus/primitivus @ 1162:b32800b9793e
primitivus: SIGINT is now ignored, APP_QUIT key/menu or :quit command must be used to quit Primitivus
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 04 Sep 2014 19:05:57 +0200 |
parents | 2ff15a6c5791 |
children | 60ebe98c9d04 |
comparison
equal
deleted
inserted
replaced
1161:344bbe6fd1de | 1162:b32800b9793e |
---|---|
40 from sat_frontends.primitivus import config | 40 from sat_frontends.primitivus import config |
41 from sat_frontends.tools.misc import InputHistory | 41 from sat_frontends.tools.misc import InputHistory |
42 from sat_frontends.constants import Const as commonConst # FIXME | 42 from sat_frontends.constants import Const as commonConst # FIXME |
43 from sat_frontends.tools.jid import JID | 43 from sat_frontends.tools.jid import JID |
44 from os.path import join | 44 from os.path import join |
45 import signal | |
45 | 46 |
46 | 47 |
47 class ChatList(QuickChatList): | 48 class ChatList(QuickChatList): |
48 """This class manage the list of chat windows""" | 49 """This class manage the list of chat windows""" |
49 | 50 |
192 self.progress_wid = Progress(self) | 193 self.progress_wid = Progress(self) |
193 urwid.connect_signal(self.notBar.progress, 'click', lambda x: self.addWindow(self.progress_wid)) | 194 urwid.connect_signal(self.notBar.progress, 'click', lambda x: self.addWindow(self.progress_wid)) |
194 self.__saved_overlay = None | 195 self.__saved_overlay = None |
195 | 196 |
196 self.x_notify = Notify() | 197 self.x_notify = Notify() |
198 | |
199 # we already manage exit with a_key['APP_QUIT'], so we don't want C-c | |
200 signal.signal(signal.SIGINT, signal.SIG_IGN) | |
197 | 201 |
198 @property | 202 @property |
199 def mode(self): | 203 def mode(self): |
200 return self.editBar.mode | 204 return self.editBar.mode |
201 | 205 |