List:General Discussion« Previous MessageNext Message »
From:Michael Stassen Date:December 3 2005 7:00am
Subject:Re: Clear Screen in MySQL?
View as plain text  
Rhino wrote:
> 
> ----- Original Message ----- From: "untz" <untz786@stripped>
> To: <mysql@stripped>
> Sent: Friday, December 02, 2005 10:47 PM
> Subject: Clear Screen in MySQL?
> 
> 
>> Hello there,
>>
>> Is there a way to clear the screen in MySQL's command line prompt 
>> (mysql>)?
>>
>> I am using OS X Tiger with MySQL 5....
>>
> 
> I don't have a Mac and I'm not running MySQL 5 but when I was at the 
> MySQL prompt in Linux running MySQL Version 4.0.15 just now, the 
> following worked fine:
> 
> \! clear
> 
> Since 'clear' is a Linux operating system command and Linux and Mac OS X 
> are both forms of Unix, this command might very well work fine for you too.
> 
> Please note that the '\! ' in front of the clear command is used to tell 
> MySQL to pass the command back to the OS to handle.
> 
> 
> Rhino

That does work in OS X, but it's simpler to just press ctrl-L.

Michael

Thread
Clear Screen in MySQL?untz3 Dec
  • Re: Clear Screen in MySQL?Rhino3 Dec
    • Re: Clear Screen in MySQL?Michael Stassen3 Dec