Bug #315 Ctrl-U/Ctrl-R/Home/End/PgUp/PgDn are broken in 'mysql' client
Submitted: 23 Apr 2003 5:47 Modified: 26 Apr 2003 5:15
Reporter: Guilhem Bichot Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:4.1 OS:Linux (linux at least)
Assigned to: CPU Architecture:Any

[23 Apr 2003 5:47] Guilhem Bichot
Description:
Apperently the behaviour of keys in the 'mysql' client was badly
changed between 4.0 and 4.1 :

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 5.0.0-alpha-debug

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> select~~~~
 
Above I just typed select then Home, End, PageUp, PageDown
All just print ~ instead of moving to the beginning and the end of the row,
and of moving in the history, like they do in 4.0.

And Jeremy reported :

"In 4.1.0, Ctrl-U and Ctrl-R don't do anything in the command line client.
It's basically impossible to show a paste to show that, so you will have
to try for yourself. "

How to repeat:
Open a 4.1 'mysql' client and compare the behaviour of the keys
to what it was in 4.0.
[26 Apr 2003 5:15] Michael Widenius
Thank you for your bug report. This issue has been fixed in the latest
development tree for that product. You can find more information about
accessing our development trees at 
    http://www.mysql.com/doc/en/Installing_source_tree.html

This is becasue we changed to libedit (for copyright reasons) insead of readline.

We will change back to readline for the GPL MySQL distribution in 4.1.1