use GError and G_IO_Status of g_io_channel_read_chars in input_callback, #37