LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-14-2012, 11:51 AM   #1
lolnameless
LQ Newbie
 
Registered: Jan 2012
Location: Hong Kong
Distribution: Slackware
Posts: 18

Rep: Reputation: Disabled
/etc/termcap includes visible bell for linux console?


if you use visible bell (i think most people do!)

if on bash or readline be sure you set bell-style visible on inputrc

then,

add this line on /etc/termcap
under the "#Slackware 3.1 liunx...." session
:vb=\E7\E[?5h\E[?5l\E8:\

done!

kind of weird,
it's a basic feature but it needs this line to get the visible bell to work, i don't think people know how unless they search for it....
indeed, most other $TERM we uses today uses terminfo or it just works anyway
but i use the plain linux console often, too.
 
Old 09-15-2012, 04:46 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by lolnameless View Post
if you use visible bell (i think most people do!)

if on bash or readline be sure you set bell-style visible on inputrc

then,

add this line on /etc/termcap
under the "#Slackware 3.1 liunx...." session
:vb=\E7\E[?5h\E[?5l\E8:\

done!

kind of weird,
it's a basic feature but it needs this line to get the visible bell to work, i don't think people know how unless they search for it....
indeed, most other $TERM we uses today uses terminfo or it just works anyway
but i use the plain linux console often, too.
Hey lolnameless

Care to add this as a new small HOTWO page in the Slackware Documentation Wiki? This is literally the first time I saw how to enable visual bell.
See http://docs.slackware.com/


Cheers, Eric
 
Old 09-16-2012, 07:26 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member Response

Hi,

Not one to re-invent the wheel, there is a visual bell mini HOWTO already written;
Visible bell mini-Howto - The Linux Documentation Project
This howto does show the user how to change the visual bell;
Quote:
6. Defining a Visible Bell
You can add the entry for the vb capability in your own termcap file, if it doesn't already define one. Dennis Henriksen (duke@diku.dk) suggested to insert the following line in the termcap entry for linux (note that the entry is called console in old distributions):
:vb=\E7\E[?5h\E[?5l\E[?5h\E[?5l\E[?5h\E[?5l\E[?5h\E[?5l\E8:\
The trailing backslash is used to escape the newline in the database. Dennis' code does the following (his own words):
  • Save the cursor position (uust a safety precaution).
  • Change the background color several times between normal and reverse.
  • Restore the cursor position.
Plus from the same author of the above howto in article format: https://www.linux.com/learn/docs/ldp/811-Visual-Bell.

One caution as noted by the author;
Quote:
9. The Dark Side of the Problem

The bad news is that not every application uses termcap or terminfo. Most small programs feature 'backslash-a' (alarm) characters in the C source code. The "alarm" code becomes a literal ASCII BEL in the strings as stored in the executable binary. Real application don't usually fall in this category, but be careful of C newcomers who give you their own programs. Students of computer science are the worst of all, granted.
The only way to make these programs silent applications is spekearectomy, or using the escape sequences by Martin Mares.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cscope usage options not visible, but the search results are visible balemarthy Linux - Newbie 1 02-15-2012 02:46 PM
Jboss 5.0.1, web-console not visible jnojr Linux - Server 0 05-04-2009 05:23 PM
X is defaulting to no console bell edman007 Linux - Software 1 12-19-2005 03:02 AM
termcap bsd or termcap linux? little_ball Slackware 5 12-01-2004 10:22 AM
aterm: display bell and audio bell hallamigo Linux - Software 4 05-02-2004 12:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration