2022-03-03 17:22:20 +01:00
|
|
|
# TDTCli
|
|
|
|
|
2022-03-04 23:42:36 +01:00
|
|
|
A cli program written in Perl to watch the TDT.
|
|
|
|
|
2022-03-06 18:24:50 +01:00
|
|
|
## Demostration
|
|
|
|
|
|
|
|
![A demo video of the program](https://gitea.sergiotarxz.freemyip.com/sergiotarxz/TDTCli/raw/branch/main/demostration.gif)
|
|
|
|
|
2022-03-04 23:53:11 +01:00
|
|
|
## Dependencies
|
|
|
|
|
|
|
|
In order of this program to do something is
|
|
|
|
absolutelly required the `mpv` program.
|
|
|
|
|
2022-03-04 23:42:36 +01:00
|
|
|
## How to install
|
|
|
|
|
|
|
|
Clone this repository and `cd` into the new directory.
|
|
|
|
|
|
|
|
Install the program using cpan:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
cpan .
|
|
|
|
```
|
|
|
|
|
2022-03-04 23:47:44 +01:00
|
|
|
If you get errors because missing libraries you
|
|
|
|
should install the headers libs of openssl and
|
|
|
|
the openssl command-line utils, this is distro
|
|
|
|
specific.
|
|
|
|
|
2022-03-04 23:42:36 +01:00
|
|
|
If you get prompted by questions press intro to
|
|
|
|
use the defaults and run: (Supposing your are
|
|
|
|
using bash.)
|
|
|
|
|
|
|
|
```shell
|
|
|
|
. ~/.bashrc
|
|
|
|
echo $PERL5LIB
|
|
|
|
```
|
|
|
|
|
|
|
|
If you don't get an output that looks like
|
|
|
|
|
|
|
|
```
|
|
|
|
/home/sergio/perl5/lib/perl5:/home/sergio/perl5/lib/perl5
|
|
|
|
```
|
|
|
|
|
|
|
|
Run `perl -I${HOME}/perl5/lib/ -Mlocal::lib` to
|
|
|
|
see what enviroment variables you will have to set in your .profile, .shellrc or whatever
|
|
|
|
file your shell sources.
|
|
|
|
|
|
|
|
Once you have a working local::lib you will
|
|
|
|
be able to run:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
tdtcli.pl
|
|
|
|
```
|
|
|
|
|
|
|
|
It should get you into a new command line that
|
|
|
|
looks like:
|
|
|
|
|
|
|
|
```
|
|
|
|
tdtcli ~>
|
|
|
|
```
|
|
|
|
|
|
|
|
Now type `help` to get further instructions of usage.
|
2022-03-04 23:47:44 +01:00
|
|
|
|
|
|
|
## Sugar
|
|
|
|
|
|
|
|
In order to get advanced editing in TDTCli
|
2022-03-04 23:48:59 +01:00
|
|
|
including auto-completion you will have to
|
|
|
|
install `Term::ReadLine::Gnu` you can do
|
|
|
|
that using:
|
2022-03-04 23:47:44 +01:00
|
|
|
|
|
|
|
```
|
|
|
|
cpan Term::ReadLine::Gnu
|
|
|
|
```
|
|
|
|
|
|
|
|
If you get errors related to missing libraries
|
|
|
|
then you will have to install the headers for
|
|
|
|
ncurses and readline, this is distro specific.
|