change ^W to ^G and add readline ^W