txtv: Bringing Swedish Text TV to your Terminal
Are you a fan of text-based news that gets straight to the point? If so, then txtv is perfect for you! With txtv, you can read Swedish text TV right from your terminal, without the need for a mouse or TV remote. In this article, we will explore how to install and use txtv, as well as configure it to suit your preferences.
Installation
Installing txtv is simple. You just need Python 3.6 or later with pip installed. Run the following command:
pip3 install --user txtv
Please note that at the moment, txtv does not work natively on the Windows command line due to readline limitations. However, you can still use it with Ubuntu for Windows.
Usage
Once installed, you can launch txtv in interactive mode by running the following command:
txtv
Once in interactive mode, you have access to several commands:
-
help
,h
, or?
: Show the help text. -
quit
,q
, orexit
: Quit the program. -
list
,ls
, orl
: List all available articles. -
next
,n
, or>
: Show the next available page. -
previous
,prev
,p
, or<
: Show the previous available page. -
<PAGE NUMBER>
: Show the page at the specified number.
You can also run txtv with a specific command as an argument on the command line for a non-interactive experience.
For example:
txtv 100 # Show page 100
txtv ls # List all news articles
Configuration
txtv allows you to configure certain aspects to personalize your experience. By default, txtv generates a config file at ~/.config/txtv/txtv.cfg
. The config file follows the configparser format.
Alias
Under the alias
category in the config file, you can specify any number of aliases for txtv commands. These aliases work in both interactive mode and as subcommands when calling txtv from your shell.
Here’s an example:
[alias]
all=list
With this config, you can list all articles from your shell using:
txtv all
Or you can simply type all
in interactive mode.
General
Currently, the only option available under the general
category is prompt
. This option allows you to customize the prompt string used in interactive mode.
For example:
[general]
prompt = kommandorörelse>
Set the prompt to “kommandorörelse>” for a unique interactive mode prompt.
Links and Resources
- txtv Trello Board: Follow the development progress of txtv on this Trello board.
- txtv Data Source: Discover where txtv scrapes its data from.
Whether you’re a fan of Swedish text TV or simply enjoy the efficiency of plaintext news, txtv brings a unique experience to your terminal. Install it, explore its features, and configure it to suit your preferences. Stay up-to-date with concise news without the need for unnecessary filler. Give txtv a try and enhance your reading experience today!
References:
– txtv Repository
– txtv README
Leave a Reply