Method: TTY::Pager::SystemPager#close

Defined in:
lib/tty/pager/system.rb

#closeBoolean

Stop the pager, wait for the process to finish. If no pager has been started, returns true.

Returns:

  • (Boolean)

    the exit status of the child process



173
174
175
176
177
178
179
# File 'lib/tty/pager/system.rb', line 173

def close
  return true unless @pager_io

  success = @pager_io.close
  @pager_io = nil
  success
end