novalugml at jgcomp.com
Sat Apr 28 13:15:44 EDT 2012
On Fri, Apr 27, 2012 at 09:24:56PM -0400, shawn wilson wrote:
> ... before i'm asked (should have thought to include it earlier)
> here's the output of my revised linux.terminfo:
The terminfo manpage suggests creating a new terminal type
with the extension "-vb" for the version with the visable bell.
> $ cat linux.terminfo
Most often I've seen terminfo source files use the extension ".ti".
> # Reconstructed via infocmp from file: /lib/terminfo/l/linux
> linux|linux console,
> flash=\E[?5h\E[?5l$<200/>, home=\E[H, hpa=\E[%i%p1%dG,
The visable bell is the "flash" capability. I question this flash
definition, though it matches the linux terminfo on my system. The
problem as I see it is the location of the "$<200/>". This is the
duration, in millisec, that the screen should reverse. But it is
typically given between the "change to reverse" and "revert to normal"
Try "tput flash" to test if you can get a visable bell with the
current definition. If you don't see a screen blink, create a new
terminal definition with "flash=\E[?5h$<200/>\E[?5l", compile with
tic, move the definition to the terminfo tree, change and export
your TERM setting to match the new terminal type and retest with tput.
I'll assume you can get a blink with the current flash definition or
the revised one. I looked for terminals with the "-vb" extension on
my system and compared them to their base definitions. They were
all like this Wyse 50.
$ infocmp wy50 wy50-vb
comparing wy50 to wy50-vb.
I.e., the definition for "bel" was deleted in the -vb version.
> On Fri, Apr 27, 2012 at 21:21, shawn wilson <ag4ve.us at gmail.com> wrote:
> > first, the end goal here is to get a visible bell on the console (that
> > would be the actual console - not in any terminal emulator). i found
> > the answer for termcap in a mini-howto here:
> > http://tldp.org/HOWTO/Visual-Bell-6.html however, the rest has been a
> > show stopper.
> > so far, what i've done is:
> > $ cp /lib/terminfo/l/linux /lib/terminfo/l/linux.orig
> > $ echo $TERM
> > linux
> > $ infocmp linux > ~/linux.terminfo
> > i then vi that file and replaced the ^G after bel= with
> > \E7\E[?5h\E[?5l\E[?5h\E[?5l\E[?5h\E[?5l\E[?5h\E[?5l\E8:\ from the
> > howto. then:
> > $ tic linux.terminfo -o./
> > $ cp l/linux /lib/terminfo/l/linux
> > however, nothing (haven't tried a reboot yet) seems to replace the
> > beep with any visual notification - i've tried 'reset', logging out,
> > and even tried to figure out 'tack' (which i failed at). any ideas?
> Novalug mailing list
> Novalug at calypso.tux.org
>>> End of included message <<<
Jon H. LaBadie novalugml at jgcomp.com
11226 South Shore Rd (703) 787-0688 (H)
Reston, VA 20190 (609) 477-8330 (C)
More information about the Novalug