aboutsummaryrefslogtreecommitdiff
path: root/src/core_modules/commands/outs.py
diff options
context:
space:
mode:
authorGravatar jesopo2020-03-03 11:15:00 +0000
committerGravatar jesopo2020-03-03 11:16:39 +0000
commit7bf0b6edbffd45118c8a7f4f638bdd7f784a2598 (patch)
treef7fdd54439c3f673e51db6b447168a2837040a99 /src/core_modules/commands/outs.py
parentrefactor perform.py (diff)
signature
rewrite command output truncation
Diffstat (limited to 'src/core_modules/commands/outs.py')
-rw-r--r--src/core_modules/commands/outs.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core_modules/commands/outs.py b/src/core_modules/commands/outs.py
index e82ceefd..c6b489ae 100644
--- a/src/core_modules/commands/outs.py
+++ b/src/core_modules/commands/outs.py
@@ -6,6 +6,13 @@ class StdOut(object):
self.prefix = prefix
self._lines = []
self._assured = False
+ self._overflowed = False
+
+ def copy_from(self, other):
+ self.prefix = other.prefix
+ self._lines = other._lines
+ self._assured = other._assured
+ self._overflowed = other._overflowed
def assure(self):
self._assured = True