[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Clear screan question



Quoting wes schreiner (wes@infosink.com):

> Not that I can see, though I'd love to know of a clean way to clear the
> scroll-back buffer.  I agree it's a bit hackish.  Can anyone come up
> with something better?

Ehm.. I did this:

knopje# echo -e "\033[2J\033[1;1H" > issue.new
knopje# cat /etc/issue >> issue.new
knopje# mv issue.new /etc/issue

And now when i log out from consoles the screen clears and the scrollback
buffer is empty.. The \0332J is ANSI for Clear Screen and \033[1;1H is ANSI
for place cursor on x1 y1...

Works for me...

-- 
| The soul is dyed by its thoughts.        --Lubbock.
| CistroN Internet Services, Linux Specialists & Perl Experts
| 1024D/08CEC94D - 34B3 3314 B146 E13C 70C8  9BDB D463 7E41 08CE C94D



Reply to: