Hello Kel,

I'm sure that you are aware of the "progress" command to Splashy. What
you are saying can be done by simply doing:

splashy_update "progress progress_bar_percentage"
splashy_update "print text"

The messages are written to a FIFO which pretty much act like a queue.
They will be read as soon as the thread that reads the FIFO is ready
to receive messages.

To ensure that the messages are actually written, you need to check
the exit code of splashy_update and re-send messages if the exit
status is not 0

#!/usr/bin/perl -w
use strict;

function send_cmd($)
{
  my $cmd = shift;
  while(1)
  {
    system("splashy_update '$cmd'");
    last if ( $? == 0 );
    sleep(0.3);
  }
}

send_cmd("print foo bar");

That should take care of re-sending lost commands.

On 8/2/06, Kel Modderman <[EMAIL PROTECTED]> wrote:
Package: splashy
Version: 0.1.8.1-3
Severity: wishlist

Hi, splashy is great.

The Kanotix[0] Live-CD is developing a themeset, it will also have a
splashy theme. We'd love to use it on the live-cd too. This would
require the ability to manually increment the progress bar. Currently, I
can see no method of doing this.

I can imagine an extension of splashy_update being extended in the
following way:

SYNOPSIS
splashy_update ``<text>'' [progress_bar_percentage]

An optional second argument; the percentage of the progress bar.

Thanks, Kel.

-- System Information:
Debian Release: testing/unstable
  APT prefers experimental
  APT policy: (500, 'experimental'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-rc3-kel-1
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)

Versions of packages splashy depends on:
ii  libc6                         2.3.6-16   GNU C Library: Shared libraries

Versions of packages splashy recommends:
ii  lsb-base                      3.1-10     Linux Standard Base 3.1 init scrip

-- no debconf information





--
----)(-----
Luis Mondesi
*NIX Guru

Kiskeyix.org

"We think basically you watch television to turn your brain off, and
you work on your computer when you want to turn your brain on" --
Steve Jobs in an interview for MacWorld Magazine 2004-Feb

No .doc: http://www.gnu.org/philosophy/no-word-attachments.es.html


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to