public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
* Progress reports
@  pj
   ` Chuck Hallenbeck
   ` Frost
  0 siblings, 2 replies; 8+ messages in thread
From: pj @  UTC (permalink / raw)
  To: speakup

Greetings,

Lots of important applications display rapidly-updating
progress-report lines, which I find annoying when using speakup.
For example,  wget, or mplayer f.mp3, or aptitude safe-upgrade.
Mostly I can't see a way to switch them off, except brute force:
  echo 7 > /sys/accessibility/speakup/silent
  mplayer f.mp3
  echo 4 > /sys/accessibility/speakup/silent
or:
  wget http://somewhere.com/index.html 2>/dev/null 

Does someone have a collection of appropriate aliasses or
wrapper-scripts ?  Or is there a standard environment variable
like SPEAKUP_IN_USE that we could campaign to have applications
respect ?

Peter Billam

http://www.pjb.com.au       pj@pjb.com.au      (03) 6278 9410
"Was der Meister nicht kann,   vermöcht es der Knabe, hätt er
 ihm immer gehorcht?"   Siegfried to Mime, from Act 1 Scene 2


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Progress reports
@  pj
   ` Chuck Hallenbeck
  0 siblings, 1 reply; 8+ messages in thread
From: pj @  UTC (permalink / raw)
  To: speakup

Greetings,

I wrote:
> Lots of important applications display rapidly-updating
> progress-report lines, which I find annoying when using speakup.
> For example,  wget, or mplayer f.mp3, or aptitude safe-upgrade.
> ... Does someone have a collection of appropriate aliasses or
> wrapper-scripts ?

Chuck Hallenbeck wrote:
> Much simpler. Press the combination speakup+keypad-enter to
> silence spontaneous speech from speakup. The review mode still
> works. Press the combination again to restore full operation.

True.  But, being a newbie, naively reasoning that since this is
a computer it might as well do it automatically, I've written
a little Perl script:   http://www.pjb.com.au/blin/free/quiet
Documentation: http://www.pjb.com.au/blin/quiet.html

  quiet is a wrapper which, if the environment variable QUIET_PLEASE is
  set, silences speakup. Then it runs the system-installed program of
  the same name with the same arguments, then it switches speakup back on.

To install:
 1. Copy it into somewhere in your $PATH which is ahead of the system
    directories which contain the programs you wish were quieter
 2. Make it executable
 3. Link it to names identical to all the noisy programs you wish to wrap.
 4. When you're running speakup, set the environment variable QUIET_PLEASE

It works for me, so may it be useful...

Peter Billam

http://www.pjb.com.au       pj@pjb.com.au      (03) 6278 9410
"Was der Meister nicht kann,   vermöcht es der Knabe, hätt er
 ihm immer gehorcht?"   Siegfried to Mime, from Act 1 Scene 2


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Progress reports
@  pj
  0 siblings, 0 replies; 8+ messages in thread
From: pj @  UTC (permalink / raw)
  To: speakup

> > I believe ln makes hard links by default.
> > > Would either style work in this setup?
> > I don't see why not, but I could be wrong.
> Technically, symlinks can cross filesystem boundaries, whereas
> hard links cannot.  Beyond that, for this particular situation
> I think they're pretty much equivalent.

Yup, you'll only notice the difference when you delete one of
the files; with symlinks, if you happen to delete the original
file (e.g. "quiet") then all its symlinks are left pointing
at nothing :-(  So in this example, as someone might easily
decide to delete the file quiet because it doesn't wrap anything,
hard links might be a safer choice; but the stakes aren't high.

A symlink can link to a directory, whereas hard links can't.
Overall, symlinks are more common.  Hard links date from the very
beginning of unix, whereas symlinks were introduced a few years
later; that's the only reason why ln makes hard links by default.

Peter

http://www.pjb.com.au       pj@pjb.com.au      (03) 6278 9410
"Was der Meister nicht kann,   vermöcht es der Knabe, hätt er
 ihm immer gehorcht?"   Siegfried to Mime, from Act 1 Scene 2


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 Progress reports pj
 ` Chuck Hallenbeck
 ` Frost
 pj
 ` Chuck Hallenbeck
   ` Gregory Nowak
     ` Zachary Kline
 pj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).