change gs to a command line

Receives from GF non-blocking and uses a readline command line