maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Torchio - an all-purpose command-line flashlight app (https://talk.maemo.org/showthread.php?t=92999)

Copernicus 2014-04-10 04:28

[Announce] Torchio - an all-purpose command-line flashlight app
 
Torchio is a derivative of the Lanterne flashlight app. It features a subset of Lanterne's capabilities, including pulsed and SOS mode flashing, use of either the white or red LEDs, and a timeout feature.

Version 0.0.1 should now be in the extras-devel repository.

Please run "torchio -h" at the command line to see all the available options. (Torchio should install into /opt/torchio, so the path to find the executable should be /opt/torchio/bin/torchio.)

Torchio is open-source software, licensed under the GPL version 2 (or greater). The source code is housed at Github:

https://github.com/jpietrzak8/Torchio

nokiabot 2014-04-10 04:41

Re: [Announce] Torchio - an all-purpose command-line flashlight app
 
Good name good app :)

xes 2014-04-10 08:22

Re: [Announce] Torchio - an all-purpose command-line flashlight app
 
...It's nice to see that you don't like sleep too much ;)

Thanks again!

handaxe 2014-04-10 14:40

Re: [Announce] Torchio - an all-purpose command-line flashlight app
 
Ha, I thought, he has drifted away from the pasta theme! And then google showed me otherwise.....

Inuit have a trillion descriptors for snow and Italians similarly for pasta.

Copernicus 2014-04-10 15:32

Re: [Announce] Torchio - an all-purpose command-line flashlight app
 
Quote:

Originally Posted by handaxe (Post 1420702)
Ha, I thought, he has drifted away from the pasta theme! And then google showed me otherwise.....

I really have to give credit here to Sixwheeledbeast for this pasta name; he pointed it out to me a long, long time ago. :)

Copernicus 2014-04-10 22:07

Re: [Announce] Torchio - an all-purpose command-line flashlight app
 
Torchio version 0.0.2 is now heading up to the extras-devel repository. This update contains support for parsing ASCII text into Morse code. There are two modes available:

"torchio -m" will read input from the STDIN stream.

"torchio -mf <filename>" will attempt to open the named file and read text from it.

In both cases, torchio will exit when it reaches the end of the text. The STDIN option allows text to be piped in from another process; for example, the command:

Code:

ls | /opt/torchio/bin/torchio -m
will flash out the names of the current directory's files in Morse code. :)

pichlo 2014-04-10 22:13

Re: [Announce] Torchio - an all-purpose command-line flashlight app
 
No torchio "hello world" then? :)
Or will the stdin variant recognize a string parameter?
If not, then I suggest -ms "bla bla" or -mi "bla bla" (s for string, i for immediate).

Copernicus 2014-04-10 22:22

Re: [Announce] Torchio - an all-purpose command-line flashlight app
 
Quote:

Originally Posted by pichlo (Post 1420763)
No torchio "hello world" then? :)
Or will the stdin variant recognize a string parameter?
If not, then I suggest -ms "bla bla" or -mi "bla bla" (s for string, i for immediate).

Actually, since it's using stdin, you can do things like

Code:

> echo 'hello world' | /opt/torchio/bin/torchio -m
or, you could just type text in directly from the console:

Code:

> /opt/torchio/bin/torchio -m
hello world

So, I was kind of thinking that a string input option would be unnecessary. :)

pichlo 2014-04-10 22:27

Re: [Announce] Torchio - an all-purpose command-line flashlight app
 
Yeah, I realized that 5 minutes after that post :)
Incidentally, one can just as well do this, making the -mf option unnecessary:
Code:

torchio -m < file

Copernicus 2014-04-10 22:36

Re: [Announce] Torchio - an all-purpose command-line flashlight app
 
Quote:

Originally Posted by pichlo (Post 1420766)
Incidentally, one can just as well do this, making the -mf option unnecessary:
Code:

torchio -m < file

Hmm, I suppose so... Torchio is never going to do more than read the data, so there should never really be any advantage to letting it do the file manipulation work internally, right? (I don't think there'd be any advantages to letting Torchio do the error handling, for example...) Perhaps I should just remove that option...


All times are GMT. The time now is 16:13.

vBulletin® Version 3.8.8