when u input it is indeed typing an ascii code to terminal instead of 0.5. the encoding says you did used backspace...it cud be due to corrupted input output stream
how are you giving input?