|
From: | JuanPablo |
Subject: | Re: capturing the bell |
Date: | Wed, 28 Jan 2009 12:16:33 -0300 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Try C-a : exec :.. /path/to/filter.pl <RET>
JuanPablo wrote:
> hi,
> is posible capture the bell of screen in other program?
> example:
> if screen launch a bell, the dialog program is called
> dialog --msgbox "hello world" 6 25
>
> thanks
> JuanPablos
filter.pl:
- -------------------------------------
#!/usr/bin/perl
use warnings;
use strict;
use bytes;
my $foo=`stty -g`;
system("stty -icanon");
while (defined(my $c = getc)) {
if ($c eq "\a") {
system('dialog --msgbox "hello world" 6 25');
}
}
system("stty $foo");
- -------------------------------------
- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
GNU Maintainer: wget, screen, teseq
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkl/+14ACgkQ7M8hyUobTrEMSQCfenb7JGQrhbWGUCMhH1v2z/Qa
KpkAnj3+RgAUQe9MyvJNYJfLBatDkiv7
=fROl
-----END PGP SIGNATURE-----
[Prev in Thread] | Current Thread | [Next in Thread] |