From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wes James Newsgroups: gmane.emacs.help Subject: Re: send ctrl-g to bash shell in emacs Date: Wed, 07 Nov 2012 14:42:29 -0700 Message-ID: <20E474C8-F945-4C16-9996-C7E952A1BD74@me.com> References: <0922EB50-3C0D-454B-BAEE-00096BD7A6F7@me.com> <716A719C-B2AB-4CE5-8F9F-18CC5872F46A@me.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT X-Trace: ger.gmane.org 1352324420 8325 80.91.229.3 (7 Nov 2012 21:40:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 Nov 2012 21:40:20 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 07 22:40:28 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TWDMD-0002zz-6Y for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Nov 2012 22:40:21 +0100 Original-Received: from localhost ([::1]:44388 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWDM4-00028D-60 for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Nov 2012 16:40:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWDLw-00025X-P1 for help-gnu-emacs@gnu.org; Wed, 07 Nov 2012 16:40:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWDLt-0005cp-Cs for help-gnu-emacs@gnu.org; Wed, 07 Nov 2012 16:40:03 -0500 Original-Received: from nk11p04mm-asmtpout001.mac.com ([17.158.236.236]:45095 helo=nk11p04mm-asmtp001.mac.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWDLt-0005by-6t for help-gnu-emacs@gnu.org; Wed, 07 Nov 2012 16:40:01 -0500 Original-Received: from munkey.nr.usu.edu (munkey.nr.usu.edu [129.123.87.59]) by nk11p04mm-asmtp001.mac.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Jan 3 2012)) with ESMTPSA id <0MD5003LP06LGF90@nk11p04mm-asmtp001.mac.com> for help-gnu-emacs@gnu.org; Wed, 07 Nov 2012 21:39:58 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.9.8185,1.0.431,0.0.0000 definitions=2012-11-07_04:2012-11-07, 2012-11-06, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1203120001 definitions=main-1211070240 In-reply-to: <716A719C-B2AB-4CE5-8F9F-18CC5872F46A@me.com> X-Mailer: Apple Mail (2.1499) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 17.158.236.236 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87577 Archived-At: On Nov 7, 2012, at 1:50 PM, Wes James wrote: > > On Nov 6, 2012, at 4:53 PM, Wes James wrote: > >> ctrl-g means cancel the ctrl commands typed in, but how do you send a ctrl-g to a bash shell inside emacs? ctrl-c ctrl-c will send a ctrl-c. What about sending other keypress sequences through to a shell? > > > I finally got this working. I have an erlang mode installed and I entered that and did c-c c-z to start an erlang shell and this time when I pressed ctrl-g it put a ^G on the line, but this time when I pressed enter, it did what was expected. > > Thanks all for your suggestions! Correction - it was c-q c-g, not just c-g that enter a ^G that I then could press enter and it took affect. wes