Modified comma operator to enter only one character (linux)