pub fn should_allocate_pty(config: &PtyConfig) -> Result<bool>
Check if PTY should be allocated based on configuration and terminal state