tab completion color for CentOS 7

As title, I want to get colored information by tab completion. I have done this successfully in Ubuntu 16.04 by following method

echo "set colored-stats on" >> ~/.inputrc

so when I type

ls /home/[TAB]

I will get lists with directories and special files colored.

However in CentOS 7, I can't do the same trick.

there's not color even if I set colored-stats in the ~/inputrc file.

When I try to add "set colored-stats on" in /etc/inputrc in vim, the syntax color looked different from others. like this.

It seems that it was an illegal option

following is my readline package info

user@server:~$ yum info readline
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.twaren.net
* epel: mirror01.idc.hinet.net
* extras: linux.cs.nctu.edu.tw
* ius: hkg.mirror.rackspace.com
* updates: linux.cs.nctu.edu.tw
Installed Packages
Name        : readline
Arch        : i686
Version     : 6.2
Release     : 10.el7
Size        : 409 k
Repo        : installed
From repo   : base
Summary     : A library for editing typed command lines
URL         : http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
License     : GPLv3+
Description : The Readline library provides a set of functions that allow users
            : to edit command lines. Both Emacs and vi editing modes are
            : available. The Readline library includes additional functions for
            : maintaining a list of previously-entered command lines for
            : recalling or editing those lines, and for performing csh-like
            : history expansion on previous commands.

Name        : readline
Arch        : x86_64
Version     : 6.2
Release     : 10.el7
Size        : 450 k
Repo        : installed
From repo   : anaconda
Summary     : A library for editing typed command lines
URL         : http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
License     : GPLv3+
Description : The Readline library provides a set of functions that allow users
            : to edit command lines. Both Emacs and vi editing modes are
            : available. The Readline library includes additional functions for
            : maintaining a list of previously-entered command lines for
            : recalling or editing those lines, and for performing csh-like
            : history expansion on previous commands.