2011-01-05 17:00:54 +01:00
|
|
|
# UI module
|
2011-10-26 16:47:21 +02:00
|
|
|
# Copyright (C) 2010-2011 Sebastian Spaeth & contributors
|
2002-07-12 03:58:51 +02:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
2003-04-16 21:23:45 +02:00
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
2002-07-12 03:58:51 +02:00
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
2006-08-12 06:15:55 +02:00
|
|
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
2002-07-12 03:58:51 +02:00
|
|
|
|
2011-01-05 17:00:54 +01:00
|
|
|
from offlineimap.ui.UIBase import getglobalui, setglobalui
|
|
|
|
from offlineimap.ui import TTY, Noninteractive, Machine
|
2002-07-12 03:58:51 +02:00
|
|
|
|
2011-03-06 11:04:46 +01:00
|
|
|
UI_LIST = {'ttyui': TTY.TTYUI,
|
|
|
|
'basic': Noninteractive.Basic,
|
2013-07-21 21:00:23 +02:00
|
|
|
'quiet': Noninteractive.Quiet,
|
2015-10-12 19:35:57 +02:00
|
|
|
'syslog': Noninteractive.Syslog,
|
2011-03-06 11:04:46 +01:00
|
|
|
'machineui': Machine.MachineUI}
|
2003-01-05 08:51:35 +01:00
|
|
|
|
2020-08-29 09:51:31 +02:00
|
|
|
# add Blinkenlights UI if it imports correctly (curses installed)
|
2003-01-05 08:51:35 +01:00
|
|
|
try:
|
2011-01-05 17:00:54 +01:00
|
|
|
from offlineimap.ui import Curses
|
2011-03-06 11:04:46 +01:00
|
|
|
UI_LIST['blinkenlights'] = Curses.Blinkenlights
|
2003-01-05 08:51:35 +01:00
|
|
|
except ImportError:
|
|
|
|
pass
|