Support stdin/stdout.