Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swiss Teletext CLI

A small Node.js CLI for viewing Swiss television teletext pages from api.teletext.ch.

Install

npm install -g swiss-teletext-cli

This installs two commands: teletext and swisstxt.

Usage

teletext 113

Print one page and exit:

teletext 113 --no-interactive

Options:

teletext [page] [options]

-c, --channel <name>   Channel, e.g. SRF1, SRF2, RTS1, RSI1 (default: SRF1)
-s, --subpage <n>      Subpage number/index to display
--plain                Disable ANSI colours
--no-interactive       Print one page and exit

Interactive keys:

0-9          Type three digits on the page number to jump immediately, e.g. 113
Backspace    Remove typed digit
n / Space    Next page
p            Previous page
r            Refresh
q            Quit

Development

npm test
node ./bin/teletext.js 113 --no-interactive

Requires Node.js 18+.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages