Sha256: 1fc89bdef6948f681d4c758ba1ea36d552f4e322ea50e0bb9a20437337a0f718

Contents?: true

Size: 167 Bytes

Versions: 3

Compression:

Stored size: 167 Bytes

Contents

# encoding: utf-8

require 'tty-pager'

pager = TTY::Pager::BasicPager.new(width: 80)
file = File.join(File.dirname(__FILE__), 'temp.txt')
pager.page(File.read(file))

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tty-pager-0.10.0 examples/basic_pager.rb
tty-pager-0.9.0 examples/basic_pager.rb
tty-pager-0.8.0 examples/basic_pager.rb