1. By default, when using DISQL in Linux, garbled characters appear on the up, down, left, and right keys on the input keyboard. As shown in the figure below

This makes it inconvenient to write SQL statements on Linux.

2 rlwrap installation

Download the source code

git clone  https://github.com/hanslub42/rlwrap.git
Copy the code

If You do not have Git installed

yum install git
Copy the code

2. Perform initial configuration

cd rlwrap

autoreconf --install

Copy the code

Autoreconf does not exist. Install autoreconf

yum -y install autoconf automake libtool
Copy the code

Autoreconf –install again

This time, the configure executable appears in the directory

3. Run configure

 ./configure
Copy the code

You can see the following error:

Rlwrap rely on readline

Install the Readline base package

    yum  -y install readline*
    yum -y install libtermcap-devel
   ./configure
Copy the code

If the following figure is displayed, the configuration is complete.

4. Compile and install

  make && make check && make install
Copy the code

The following figure appears

Attempts to execute rlwrap appear as shown below, indicating that the installation is complete

5. Use disql

Now you can move the cursor anywhere you want.