>> Well, I checked it, and it works.
>> Uday K Verma

>what if the console is cleared using ctrl+l ?

Oooo nasty! Never knew that shortcut existed (Hey! I'm a newbie).

Well there are two ways to tackle this problem, first one is easier and
convinient one to do; just remove the key-binding. You will have to add a
new line in your /etc/inputrc (If I'm correct this only holds for bash and
bash-like shells)

"\C-l":"clear"

Or set it to blank altogether

"\C-l":""

I don't know how exactly to make a command execute through a key-binding
(that would've been cool, if it comes out to be a possibility), but the
first one here would print clear on the command prompt for the user to press
return, and the second one would effectively disable it. I know this is just
a hack to force your users to use clear instead of Ctrl-l. This could get
annoying for some. 
I'm not sure if the key-binding could be reenabled by a local ~/.inputrc
file.

Secondly, you can edit your keymap to override the Ctrl-l keystroke. But,
I'm not sure if there is a way that helps prevent kernel (kbd-driver) from
forwarding the keystroke to bash.

Uday K Verma



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to