Read User Input from File-Descriptor

Read User Input from File-Descriptor instead of using GNU readline