Skip to main content

A simple ncurses-based plain text reader

Project description

Curses txt reader

License: MPL 2.0 PyPI version

About

A simple(?) ncurses-based plain text reader written in python.

Instalation

From PyPI:

$ pip install curtxt-reader

From source:

$ git clone https://github.com/1256-bits/curses-txt-reader.git
$ cd curses-txt-reader
$ pip install .

Usage

Curses txt reader accepts text from both stdin via pipes

$ echo something | curtxt

and a (single) file

$ curtxt file.txt

When presented with both stdin and a file at the same time it will open the file. Curses txt reader does not accept multiple files. Use cat instead. Previously opened files will open on the same page they were left off

Controls:

  • Arrow Up/Down - page up and down
  • [page number]g - go to a page with specified number
  • Q - quit (Ctrl+C is also fine)
  • B - toggle progress bar
  • Home - got to the first page
  • End - go to the last page

Command line options:

-h, --help - pring help message and exit
-v, --version - print version number and exit
-c, --clear - clear history file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

curtxt-reader-1.2.2.tar.gz (17.6 kB view hashes)

Uploaded Source

Built Distribution

curtxt_reader-1.2.2-py3-none-any.whl (15.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page