SUMMARY I would like to set scrollback limit to a specific number of megabytes and store it in RAM. The objective is to have a deep enough history stored in RAM, but still limit it to using a reasonable amount of RAM (e.g. up to 2 GB). For my use case I can't use Unlimited scrollback stored on disk for information security reasons. STEPS TO REPRODUCE 1. 2. 3. OBSERVED RESULT EXPECTED RESULT SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION konsole Version 19.08.0
We have a patch for Konsole that encrypts the file in disk: https://phabricator.kde.org/D16134 It's not landed, but maybe you can take a look on it to see if you feel it would be a good alternative for what you are describing?
(In reply to tcanabrava from comment #1) > We have a patch for Konsole that encrypts the file in disk: > https://phabricator.kde.org/D16134 Yes, this would be a perfect solution for my use case. Thanks!
I've abandoned that patch; it would better to use an OS encrypted folder/file/HD
(In reply to Kurt Hindenburg from comment #3) > I've abandoned that patch; it would better to use an OS encrypted > folder/file/HD This would be less secure (than a random security key per Konsole tab) because a user typically has access to the encrypted files, therefore the Konsole scrollback can be recovered by an attacker in a case when the encryption key is revealed.
> random security key I meant: random encryption [private] key
I would agree that perhaps instead of lines, the user could specify MBs. However, I'm sure if that's possible or how complex that would be.