Tiny Core Extensions > TCE News

Guidelines for extension submission

<< < (8/11) > >>

Rich:
Hi Scampada
It should already be included under  /usr/bin/

Scampada:

--- Quote ---As I recall Tinycore comes with a screenshot utility. Does it find anything if you enter:
Code:

screenshot.sh
--- End quote ---

--- Quote from: Rich on April 01, 2015, 02:42:51 PM ---Hi Scampada
It should already be included under  /usr/bin/

--- End quote ---
No trace.

In addition, as far as I know there is NO console framebuffer image viewer for TC (in the current). They all require X.

coreplayer2:
Am not exactly sure if this is the right place for this discussion but screenshot.sh is included in a normal tc install and can be found by installing the extension Xprogs.tcz


--- Code: ---tc@box:~$ sudo find / -iname "screenshot*"
/usr/local/bin/screenshot.sh
/tmp/tcloop/Xprogs/usr/local/bin/screenshot.sh
--- End code ---


--- Quote ---Why, can't I do the same using tce-ab (K)eywords search?..
--- End quote ---
Also searching for screenshot under tce-ab > Provides:  results in the following, (which also lists Xprogs.tcz)

--- Code: ---tce-ab
S)earch P)rovides K)eywords or Q)uit:p
Enter search term, e.g. iwconfig:screenshot
tce - Tiny Core Extension browser

         1. fox-doc.tcz
         2. fpc-src.tcz
         3. gimp2.tcz
         4. lazarus.tcz
         5. libimobiledevice-dev.tcz
         6. libimobiledevice.tcz
         7. lxde-icon-theme.tcz
         8. pilot-link-dev.tcz
         9. qt4-htmldoc.tcz
        10. totem-dev.tcz
        11. totem.tcz
        12. Xprogs.tcz

Enter selection ( 1 - 12 ) or (q)uit:
--- End code ---



Also before submitting a new extension you may find testing with "submitqc6.tcz" useful

Scampada:
Thanks coreplayer,
I had checked tce-ab for (K)eyword 'screenshot'. I had seen all those entries but, I should remind that I want CLI-only environment atap (as tiny as possible). It's my goal to have as many utilities as possible without Xprogs and other big-sized dependence-packages. Look, fbgrab does only need libpng while screenshot.sh needs Xprogs, and the rest need lxde, gimp (which needs X), qt, totem etc. Install Xprogs just for a screenshot utility? Ew.
Now I have built fbida to have framebuffer only image viewer with no need in Xlibs or Xprogs or something. It needs: libpng, libtiff, libjpeg-turbo, libexif, giflib, fontconfig and some fonts package. It's able of zooming and even editing pictures, vieweing PDF documents (have not tested yet) and is pretty tiny, hey. I'll send them altogether, mp3blaster and fbida I think. And maybe fbgrab too. Just gotta make them clean, stripped and nice.

Rava:

--- Quote from: Scampada on April 01, 2015, 05:23:50 PM ---In addition, as far as I know there is NO console framebuffer image viewer for TC (in the current). They all require X.

--- End quote ---

All I managed to code is a virtual console "framebuffer" copy script. ;)

It is able to copy the framebuffer from the virtual consoles of F1 to F6 (and also any others when "activated" in that system, usually that means non-commented in /etc/inittab, e.g. F8-F12)

Sadly, I was never able to figure how to copy from a xterm...  :(

It only works okay when the $COLUMNS of the virtual console and the xterm you might start it from have the same columns / width, e.g. 80 for both. Otherwise the needed folding will mess up the lines!
Usually the variable $COLUMNS is not exported and so cannot be read by the xterm or virtual console script. (It can be read when you type the line in the terminal by hand, but not in a script, that is)

Therefore you need to put export COLUMNS into /etc/profile. Or run that line beforehand on the VT or XTerm you want to run the script from.


--- Code: (bash) ---#!/bin/sh
VERSION=0.6
MYNAME=ct
# ct (aka catterm) (c) Rava
# usage: ct 1 for cat of tty1 from other tty (console or xterm)
#  ct 1 1 for cat of tty and tail only 1 (=last) line, good for ctorrent or wget output or such.
if [ "$COLUMNS"x = "x" ] ;then
    echo $MYNAME V$VERSION - could not read \$COLUMNS - assume 80.
    COLUMNS=80
fi
if [ $# -eq 1 ]; then
    cat /dev/vcs$1 | fold -w $COLUMNS | sed 's/[ \t]*$//'
    echo
elif [ $# -eq 2 ]; then
    cat /dev/vcs$1 | fold -w $COLUMNS | sed 's/[ \t]*$//' | tail -n $2
    echo
else
    echo $MYNAME V$VERSION Unknown parameter - Abort.
fi

--- End code ---

Cave! Some Linux use /dev/tty* while others use /dev/vcs* !
usually, both refer to the Virtual Consoles, but I never encountered a system that would use both, it is either tty or vcs!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version