Description:
Starting the non-GPL client on HPUX gives some termcap/terminfo-related errors regardless of the value of the TERM environment variable.
How to repeat:
1. Obtain non-GPL .tar.gz package for HPUX
2. Unzip/tar package
3. Run scripts/mysql_install_db
4. Start the server
5. Start the client
kkegel@hp3750 mysql-enterprise-5.0.30-hpux11.00-hppa2.0w-64bit $ export TERM=xterm
kkegel@hp3750 mysql-enterprise-5.0.30-hpux11.00-hppa2.0w-64bit $ ./bin/mysql --socket=./data/mysql.sock
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.0.30-enterprise MySQL Enterprise Server (Commercial)
No entry for terminal type "xterm";
using dumb terminal settings.
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql 5.0.30-enterprise (root) "test"> Bye
kkegel@hp3750 mysql-enterprise-5.0.30-hpux11.00-hppa2.0w-64bit $ export TERM=ansi
kkegel@hp3750 mysql-enterprise-5.0.30-hpux11.00-hppa2.0w-64bit $ ./bin/mysql --socket=./data/mysql.sock
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.0.30-enterprise MySQL Enterprise Server (Commercial)
No entry for terminal type "ansi";
using dumb terminal settings.
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql 5.0.30-enterprise (root) "test"> Bye
kkegel@hp3750 mysql-enterprise-5.0.30-hpux11.00-hppa2.0w-64bit $ export TERM=dumb
kkegel@hp3750 mysql-enterprise-5.0.30-hpux11.00-hppa2.0w-64bit $ ./bin/mysql --socket=./data/mysql.sock
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.0.30-enterprise MySQL Enterprise Server (Commercial)
No entry for terminal type "dumb";
using dumb terminal settings.
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql 5.0.30-enterprise (root) "test"> Bye
kkegel@hp3750 mysql-enterprise-5.0.30-hpux11.00-hppa2.0w-64bit $ export TERM=v1
kkegel@hp3750 mysql-enterprise-5.0.30-hpux11.00-hppa2.0w-64bit $ ./bin/mysql --socket=./data/mysql.sock
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.0.30-enterprise MySQL Enterprise Server (Commercial)
Cannot read termcap database;
using dumb terminal settings.
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
Suggested fix:
Perhaps the libedit being built is not properly configured to read the HPUX terminfo/termcap database?
A function such as tigetflag() or setupterm() might yield better results?