View previous topic :: View next topic |
Author |
Message |
Mike81 n00b
Joined: 05 Jan 2011 Posts: 39
|
Posted: Wed Jan 08, 2014 2:22 am Post subject: Howto clear scrollback buffer on logout (local terminal)? |
|
|
Hi,
a local system, no X, no SSH. I am logging in (i.e terminal, tty1). I am doing something ("ls -l /etc"). When I now logout (I type "exit") I want to clear all the previous output, including the scrollback buffer (the next person who will sit in front of the machine shouldn't be able to press SHIFT+PgUp to see my previous output, in this example the output from "ls").
Well, I have ".bash_logout" which will call "clear". But this won't clear the scrollback buffer. E.g. the next person who sit in front of the machine can press SHIFT+PgUp and would see my last output.
also doesn't help.
The only thing which would help is switching the terminal, e.g. pressing ALT+2... when I now switch back to tty1 (ALT+1) the buffer seems to cleared (SHIFT+PgUp doesn't work anymore).
Is there a way to do that automatically on each logout, e.g. via ".bash_logout"?
PS: I have set CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=256 in my kernel. |
|
Back to top |
|
|
javeree Guru
Joined: 29 Jan 2006 Posts: 453
|
Posted: Wed Jan 08, 2014 11:14 am Post subject: |
|
|
does 'reset' instead of 'clear' do something useful ? |
|
Back to top |
|
|
Mike81 n00b
Joined: 05 Jan 2011 Posts: 39
|
Posted: Wed Jan 08, 2014 2:52 pm Post subject: |
|
|
No, no different when using "reset" instead of "clear". I am still able to view the scrollback buffer using SHIFT+PgUp... |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|