/etc/termcap includes visible bell for linux console?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
/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.
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/
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):
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.