The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Ctrl-M at end of each line navi Shell Programming and Scripting 3 06-04-2008 03:09 AM
Script doesn't work, but commands inside work cheongww UNIX for Dummies Questions & Answers 2 11-14-2006 10:52 PM
Catching ctrl-C or ctrl-D sendhilmani123 Shell Programming and Scripting 2 05-02-2006 05:02 PM
how to enable Ctrl + C in ksh dradhzn Shell Programming and Scripting 0 05-01-2006 10:32 PM
Disable ctrl-c,ctrl-d,ctrl-d in ksh script wtofu AIX 6 06-29-2005 04:41 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-01-2005
yankee428 yankee428 is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 29
my ctrl+c doesn't work

it seams that my ctrl+c and my ctrl+d don't work. if I type a bunch of jiberish on a line and ctrl+c I expect the command to be cancelled and to be given a fresh prompt, but instead it just putts ^C at the end of the line.

Also, ctrl+d should close the session, but instead mine just puts ^D at the end of the line.

Both work if I login with a different user, so it must be something within my user profile, but I have looked in .cshrc all over.
  #2 (permalink)  
Old 06-01-2005
google's Avatar
google google is offline Forum Advisor  
Moderator
  
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
You can set these key sequences using stty. Here is a link to the stty man page. Just add it to the end of your .profile, then be sure to source your .profile once you have saved the file.
  #3 (permalink)  
Old 06-01-2005
bhargav's Avatar
bhargav bhargav is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2004
Location: USA
Posts: 511
Code:
$ stty -isig
$ ^C
/bin/ksh: ^C:  not found.
$ stty isig
$ 
$ stty -isig
$ ^C
/bin/ksh: ^C:  not found.
$ stty isig 
$ 
$
  #4 (permalink)  
Old 06-02-2005
yankee428 yankee428 is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 29
Thumbs up

Thanks guys,

between the two I was able to come up with:

stty intr '^C'

in my.cshrc file and it works great!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:39 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0