[comp.unix.questions] visible bell

jfjr@mitre-bedford.arpa (Freedman) (08/14/87)

  I asked a question like this months ago - unfortunately I never
got around to implementing the answer and the answer has been lost.

  I work on a vax 8600 running Ultrix with a vt100. 
I like my terminal set up with black letters on white 
background. Certain programs (rn,emacs with a visible bell etc) 
try to tell me that I have goofed when I goof
by blinking the terminal. This causes the terminal to go into
the other mode (white letters - dark background) and stay there.
To go back to black letters-white background I have to go into
set up mode and re-adjust things. Needless to say, early in
the mornings, on bad days etc I can spend some time readjusting
things. There is something I can do to fix this but I don't
remember what it was. This is not a big deal, or a major emergency
but I would appreciate some advice. Thank you.




Jerry Freedman, Jr      "As you wander through life
jfjr@mitre-bedford.arpa   Whatever be your goal
(617)271-6248 or 7555    Keep your eye upon the doughnut
                          and not on the hole"

aad@stpstn.UUCP (Anthony A. Datri) (07/20/88)

I've got a variety of termcap entries here, some standard, some homebrew,
that include the vb (visible bell) attribute.  My question:  How do I get
things (eg, csh) to use the visible bell instead of beeping?

(sun3/variety, sunos 3.2/4.0)
-- 
@disclaimer(Any concepts or opinions above are entirely mine, not those of my
	    employer, my GIGI, or my 11/34)
beak is								  beak is not
Anthony A. Datri,SysAdmin,StepstoneCorporation,stpstn!aad

karish@denali.stanford.edu (Chuck Karish) (07/20/88)

In article <1889@stpstn.UUCP> aad@stpstn.UUCP (Anthony A. Datri) writes:

>I've got a variety of termcap entries here, some standard, some homebrew,
>that include the vb (visible bell) attribute.  My question:  How do I get
>things (eg, csh) to use the visible bell instead of beeping?

Csh doesn't use termcap.  In general, programs that produce line-oriented
output, as opposed to full-screen output, don't need termcap.

The only way I can think of to make visible bell work as you want it to
is to convince the terminal to interpret an ASCII 7 (BEL) as a request
for the flash.  If the terminal is not smart enough (your GIGI? Hah!)
you may have to run all your programs through a filter to translate
\07 to the correct code for the terminal.  See the discussion in
comp.unix.wizards on command line interpretors; that would be the
logical place to put this translation code.



Chuck Karish	ARPA:	karish@denali.stanford.edu
		BITNET:	karish%denali@forsythe.stanford.edu
		UUCP:	{decvax,hplabs!hpda}!mindcrf!karish
		USPS:	1825 California St. #5   Mountain View, CA 94041

karish@denali.stanford.edu (Chuck Karish) (07/20/88)

In article <1889@stpstn.UUCP> aad@stpstn.UUCP (Anthony A. Datri) writes:

>I've got a variety of termcap entries here, some standard, some homebrew,
>that include the vb (visible bell) attribute.  My question:  How do I get
>things (eg, csh) to use the visible bell instead of beeping?

Csh doesn't use termcap.  In general, programs that produce line-oriented
output, as opposed to full-screen output, don't need termcap.

The only way I can think of to make visible bell work as you want it to
is to convince the terminal to interpret an ASCII 7 (BEL) as a request
for the flash.  If the terminal is not smart enough (your GIGI? Hah!)
you may have to run all your programs through a filter to translate
\07 to the correct code for the terminal.  See the discussion in
comp.unix.wizards on command line editors; that would be the
logical place to put this translation code.

Chuck Karish	ARPA:	karish@denali.stanford.edu
		BITNET:	karish%denali@forsythe.stanford.edu
		UUCP:	{decvax,hplabs!hpda}!mindcrf!karish
		USPS:	1825 California St. #5   Mountain View, CA 94041

shipley@web2a.berkeley.edu (Pete Shipley) (07/22/88)

In article <1889@stpstn.UUCP> aad@stpstn.UUCP (Anthony A. Datri) writes:
>
>I've got a variety of termcap entries here, some standard, some homebrew,
>that include the vb (visible bell) attribute.  My question:  How do I get
>things (eg, csh) to use the visible bell instead of beeping?
>
>(sun3/variety, sunos 3.2/4.0)


One way is to defile the audible bell character "bl" to the 
visible bell sequence.



Pete Shipley: 
email: shipley@widow.berkeley.edu           Flames:  cimarron@zen.berkeley.edu 
       uunet!lurnix!shipley or ucbvax!zen!shipley or pyramid!hippo!peter
Spelling corections: /dev/null                    Quote: "Anger is an energy"