replace key function


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users replace key function
# 1  
Old 04-29-2008
replace key function

in my system , the ctrl-C is not work ( ctrl-C should be used to break the running process ) , but ctrl-Z works , I don't know why ctrl-C is not work , I still can't find the reason . Now I would like to replace its function --> if the user press ctrl-Z then it will send the same command as ctrl-C to our system , is it possible ? thx
# 2  
Old 04-29-2008
stty will show you how your keys are set up, and will change them for you when you put an stty command in your .profile or .bashrc

man stty
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find Key and replace value

Hi, I am new to shell scripting. I have a config file where key and value is stored as below. In my shell script, I want to look for Test ID in the config file and replace the value 1 with another value stored in a variable. How would I do that ? <Config Key="Test ID" Value="1"/> I... (6 Replies)
Discussion started by: Vishnuvardhanh
6 Replies

2. SuSE

Rdesktop connect to opensuse, < > Key without function

Hello all. We have running one xubuntu VM on VMware. On this Desktop System 12.03 32 BIT we connect us through x2go. From this System, we go to by rdesktop to an opensuse vm. But there, our <> key does not work. It is an opensuse VM. The keyboad layout is german, 105 Keys. Any Idea? (0 Replies)
Discussion started by: ortsvorsteher
0 Replies

3. Shell Programming and Scripting

Shell Script @ Find a key word and If the key word matches then replace next 7 lines only

Hi All, I have a XML file which is looks like as below. <<please see the attachment >> <?xml version="1.0" encoding="UTF-8"?> <esites> <esite> <name>XXX.com</name> <storeId>10001</storeId> <module> ... (4 Replies)
Discussion started by: Rajeev_hbk
4 Replies

4. Shell Programming and Scripting

Find and replace value using a key from other file

Dear Friends, I am looking for a way how to find and replace a value in two files using a reference a file where are the key to replace. Basically, I want to keep a copy of the original file and make a new one in order to compare at the end that the change was done whitout change the rest of... (26 Replies)
Discussion started by: jiam912
26 Replies

5. UNIX for Advanced & Expert Users

command to replace the entire line from the key point

Hi everyone I am new to Unix. I got stuck up by small issue. I have text file something like this abc 'xyz' '5' lmn 'pqr' '7' i want to replace the abc 'xyz' '5' to abc 'xyz' '6' but i have a key as 'xyz' based on this key i want to do that. I am not aware of how to use sed... (7 Replies)
Discussion started by: Vijayaragavan
7 Replies

6. Shell Programming and Scripting

Perl function to sort a file based on key fields

Hi, I am new to PERL.I want to sort all the lines in a file based on 1,2 and 4th filelds. Can U suggest me a command/function in perl for this operation.. (5 Replies)
Discussion started by: karthikd214
5 Replies

7. UNIX and Linux Applications

Disable Function Key F3 from Unix

hie. i would want to disable the function key F3 from Unix Sco. I could not do this from my apllication due to its limitatation. i included the following line in the .profile file stty susp . Unfortunately this is disabling all the function keys. Is there a way in which i can disable... (1 Reply)
Discussion started by: kud
1 Replies

8. UNIX for Dummies Questions & Answers

ncurses function key problem - termcap ??

My ncurses program has been displaying "OP" (junk) on pressing F1 (instead of catching it). I have finally discovered that it runs fine (traps F1) when run under screen (program), but not in my login terminal (xterm-color) I did a check of "Set" and "env" under screen, there is a "TERMCAP"... (0 Replies)
Discussion started by: sentinel
0 Replies

9. SuSE

Disabling interrupt function of Control-C key combination

I am using informix RDBMS over SUSE LINUX. In linux if you press control-c it acts as an interrupt key. In my program I have used control-c to perform certain functions but it is being overriden by interrupt function of control-c key combination of SUSE LINUX. Kindly suggest me a solution by which... (1 Reply)
Discussion started by: V.V.KUMAR
1 Replies

10. Programming

How to toggle BACKSPACE/DEL function for backArrow key for terminal other than xterm?

Hi all, I've got the problem which I can't resolve with my knowledge :) For xterm terminal we have resource class XTerm*backarrowKey. If we set it to true, backspace code (ASCII 0x8) will be sent to program. We can get it using e.g. getc() function. If it is disabled getc() returns DEL(0x7F). ... (0 Replies)
Discussion started by: dmitryb
0 Replies
Login or Register to Ask a Question