class ChefCLI::Pager

def start

def start
  return false unless pager_enabled?
  # Ignore CTRL-C because it can cause the parent to die before the
  # pager which causes wonky behavior in the terminal
  Kernel.trap(:INT, "IGNORE")
  @pager_pid = Process.spawn(pager_env, env["PAGER"], in: child_stdin)
  child_stdin.close
end