LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Changing the default tty settings. (https://www.linuxquestions.org/questions/linux-general-1/changing-the-default-tty-settings-911912/)

svm 11-04-2011 04:13 PM

Changing the default tty settings.
 
Hello All,

I am trying to change the default tty terminal behavior to send the SIGINT signal, by typing "ctrl+g" instead of "ctrl+c". I understand we can use the stty command to do so.
But is there a way to make this setting -> "stty intr ^g" the default for every new terminal, without putting this command into the .bashrc/shell init scripts?

Thank you for your inputs,
Vidya

unSpawn 11-05-2011 07:23 AM

AFAIK the login process is as follows: a getty waits for a user to log in on the console. On successful login 'login' replaces the getty. Login then spawns the users shell. And while login doesn't your getty may source console-specific settings.


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