EyeWitness icon indicating copy to clipboard operation
EyeWitness copied to clipboard

Prevent terminal screen buffer from being cleared when running application

Open denevin opened this issue 3 years ago • 3 comments
trafficstars

OS Used - ALL Information (architecture, linux flavor, etc.)

Linux

Expected behavior (vs. what you encountered)

When running eyewitness, the terminal screen buffer is cleared and all the information that was there previously is lost. During pentesting, previous information that was in the terminal screen buffer before might have not been saved yet. It would be great if the eyewitness application does not clear the terminal screen buffer when it's started and instead keeps information that was previously there so that it's possible to scroll up in the terminal screen to retried information from other applications that were ran before eyewitness.

denevin avatar Jan 07 '22 23:01 denevin

#456 also.

n00py avatar Feb 18 '22 17:02 n00py

proposed fix: #559

n00py avatar Feb 18 '22 17:02 n00py

I would also like an argument added to avoid clearing the screen upon execution. When running this with automation, especially inside a container, the earlier stages of the automation output are cleared.

sneakerhax avatar Dec 02 '22 21:12 sneakerhax

@ChrisTruncer -- running #647 past you for your opinion. Rather than always clearing like in #559 , this MR passes an optional argument, with the default being a screen clear to your preference

Relkci avatar May 09 '24 03:05 Relkci

Thank you for highlighting this, and apologies for the business as of late. For what its worth, the proposed addition for not clearing the screen by having a CLI flag looks solid. I'm good with that.

ChrisTruncer avatar May 09 '24 13:05 ChrisTruncer

Maybe this is me being dumb, but I've always wondered what the point of clearing the buffer automatically was.

For what it's worth, I would probably prefer not clearing to be default, but at that point I wonder if it would be better to just remove the feature altogether and leave that up to the user via the clear command, rather than adding another command line argument. Just my $0.02

Edit: I see that a PR was previously closed with just this suggestion, sounds like you prefer it to clear automatically. If that's still the case, then I won't bring it up again.

0x6d6f7468 avatar May 09 '24 16:05 0x6d6f7468

When this was first being developed, I preferred it to do that, and still largely do, so that's why. But I don't mind the inclusion of an easy to add cli parameter that changes that

ChrisTruncer avatar May 09 '24 18:05 ChrisTruncer

Merged, closing

Relkci avatar May 15 '24 08:05 Relkci