|
@@ -472,13 +472,13 @@ class BaseCommands(HelpUIMixin, AliasesMixin, BaseUtilsMixin):
|
|
|
|
|
|
node = self._db_entries_to_nodes(nodes)[0]
|
|
node = self._db_entries_to_nodes(nodes)[0]
|
|
print(node)
|
|
print(node)
|
|
- flushtimeout = self.config.get_value('Global', 'cls_timeout')
|
|
|
|
|
|
+ flushtimeout = int(self.config.get_value('Global', 'cls_timeout'))
|
|
|
|
|
|
- if int(flushtimeout) != 0:
|
|
|
|
|
|
+ if flushtimeout > 0:
|
|
flushtimeout = flushtimeout or 10
|
|
flushtimeout = flushtimeout or 10
|
|
- print("Type Enter to flush screen or wait %s sec. " % flushtimeout)
|
|
|
|
|
|
+ print("Type Enter to flush screen or wait %d sec. " % flushtimeout)
|
|
|
|
|
|
- _wait_until_enter(_heard_enter, float(flushtimeout))
|
|
|
|
|
|
+ _wait_until_enter(_heard_enter, flushtimeout)
|
|
self.do_cls('')
|
|
self.do_cls('')
|
|
|
|
|
|
def do_delete(self, args):
|
|
def do_delete(self, args):
|