本文整理汇总了Python中terminal.Terminal.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Terminal.__init__方法的具体用法?Python Terminal.__init__怎么用?Python Terminal.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类terminal.Terminal
的用法示例。
在下文中一共展示了Terminal.__init__方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from terminal import Terminal [as 别名]
# 或者: from terminal.Terminal import __init__ [as 别名]
def __init__(self, text, generatorFunc = None):
Terminal.__init__(self, text)
if generatorFunc is None:
generatorFunc = lambda _: text
self.generator = generatorFunc
示例2: __init__
# 需要导入模块: from terminal import Terminal [as 别名]
# 或者: from terminal.Terminal import __init__ [as 别名]
def __init__(self, cfg):
Terminal.__init__(self, cfg)
self.term_widget = None
self.session = None
self.col = 0
self.row = 0
self.remain_buffer = []
self.cur_line_option = get_default_text_attribute()
self.saved_screen_buffer, self.saved_cursor, \
self.saved_cur_line_option = \
ScreenBuffer(), (0, 0), get_default_text_attribute()
self.status_line = []
self.status_line_mode = 0
self.charset_modes_translate = [None, None]
self.charset_mode = 0
self._saved_charset_modes_translate = [None, None]
self._saved_charset_mode = 0
self._data_lock = threading.RLock()
self._screen_buffer = ScreenBuffer()
self._dec_mode = False
self._force_column = False
self._force_column_count = 80
self._origin_mode = False
self._saved_origin_mode = False
self._tab_stops = {}
self._set_default_tab_stops()
self._cursor_visible = True
示例3: __init__
# 需要导入模块: from terminal import Terminal [as 别名]
# 或者: from terminal.Terminal import __init__ [as 别名]
def __init__(self, start_dir, end_dir, validation, hints=[""]):
Terminal.__init__(self, start_dir, end_dir, validation, hints=[""])
示例4: __init__
# 需要导入模块: from terminal import Terminal [as 别名]
# 或者: from terminal.Terminal import __init__ [as 别名]
def __init__(self, cfg):
Terminal.__init__(self, cfg)