jackline icon indicating copy to clipboard operation
jackline copied to clipboard

should /clear also erase input history?

Open cfcs opened this issue 8 years ago • 3 comments

/clear currently erases the backlog of received messages, originally as a privacy feature to "burn after reading". It occurred to me that we might want to also blank the input state - so it is not available by accidentally scrolling up with the mouse wheel, or with the arrow keys.

cfcs avatar Dec 16 '17 20:12 cfcs

sounds like a good idea! thanks!

hannesm avatar Dec 16 '17 20:12 hannesm

should we also do a full GC collection afterwards? this won't zero out all the memory (i.e. strings /dev/mem will still contain all the text), but it's better than not doing it, maybe!?

hannesm avatar Dec 16 '17 21:12 hannesm

@hannesm yes!

I had a package on the drawing board that would in the spirit of "best effort" call mlockall()/(mlock() on as much as possible) as well as hook the runtime to clean heap data, I hope to get back to that sometime.

cfcs avatar Dec 17 '17 08:12 cfcs