Automatic flushing for PipeReader (with Patch)

Jochen Keil jochen.keil at gmail.com
Sun Aug 5 11:30:10 BST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I've written a small patch for PipeReader which does the following.

After a given amount of time (atm in tenth of seconds) the input is
"flushed" i.e. overwritten with "" so that any previous input becomes
invisible.

The old behaviour is still available by specifying 0 as flush delay.

As an use case example, I'm using it to temporarily display the
current Volume and Brightness while changing it. Like a much simpler
OSD. :)
If anyone is interested in the shell script that I'm using for this,
just send me a mail.

Best Wishes,

Jochen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iEYEARECAAYFAlAeSzIACgkQtVwvsA+W4CCK7QCeNEvcv7qIASMrYR1vSIVV9sKS
H4UAn0sEERKsV/ZSPipcpfDKyoXQSrex
=WyQB
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PipeReader.hs.patch
Type: text/x-patch
Size: 1202 bytes
Desc: not available
URL: <http://projects.haskell.org/pipermail/xmobar/attachments/20120805/d967699c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PipeReader.hs.patch.sig
Type: application/pgp-signature
Size: 72 bytes
Desc: not available
URL: <http://projects.haskell.org/pipermail/xmobar/attachments/20120805/d967699c/attachment.pgp>


More information about the Xmobar mailing list