adds has_input_from_stdin()
Signed-off-by: Sho Nakatani <lay.sakura@gmail.com>