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.4.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

curtxt_reader-1.2.4-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file curtxt-reader-1.2.4.tar.gz.

File metadata

  • Download URL: curtxt-reader-1.2.4.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for curtxt-reader-1.2.4.tar.gz
Algorithm Hash digest
SHA256 001dc1d1364c2e255b323d08eba6ab096ea09c15fbbfe11a25e1a69e1da231e5
MD5 15b58dc5d8c4480936da3372d6171836
BLAKE2b-256 5d3585c452b4c7d2fcd68e60666e9d19041038397260a071486d626efab36ab3

See more details on using hashes here.

File details

Details for the file curtxt_reader-1.2.4-py3-none-any.whl.

File metadata

  • Download URL: curtxt_reader-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for curtxt_reader-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 308e539d8eacc59bef348cec9fc920974924465f9955ea25d64a9ed841acfa17
MD5 b35b39610e9f8b28eaab117cb1d5bbac
BLAKE2b-256 bb4ba940712c152a912902b58eddfb8c32b417f1bf325c59cbc8b804d8ba9995

See more details on using hashes here.

Supported by

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