mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-08 02:37:39 +02:00
Rejig text output to allow for progress callbacks.
This commit is contained in:
@@ -64,10 +64,12 @@ class QuickTextRenderer(interfaces.renderers.Renderer):
|
||||
outfd.write("\n")
|
||||
|
||||
def visitor(node, accumulator):
|
||||
accumulator.write("\n")
|
||||
for column in grid.columns:
|
||||
renderer = self.type_renderers.get(column.type, self.type_renderers['default'])
|
||||
accumulator.write("\t" + renderer(node.values[column.index]))
|
||||
accumulator.write("\n")
|
||||
return accumulator
|
||||
|
||||
grid.populate(visitor, outfd)
|
||||
|
||||
outfd.write("\n")
|
||||
|
||||
Reference in New Issue
Block a user