all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* send ctrl-g to bash shell in emacs
@ 2012-11-06 23:53 Wes James
  2012-11-07  0:03 ` Peter Dyballa
  2012-11-07 20:50 ` Wes James
  0 siblings, 2 replies; 9+ messages in thread
From: Wes James @ 2012-11-06 23:53 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

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?

Thanks,

Wes



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: send ctrl-g to bash shell in emacs
  2012-11-06 23:53 send ctrl-g to bash shell in emacs Wes James
@ 2012-11-07  0:03 ` Peter Dyballa
  2012-11-07 16:29   ` Wes James
       [not found]   ` <mailman.12483.1352305663.855.help-gnu-emacs@gnu.org>
  2012-11-07 20:50 ` Wes James
  1 sibling, 2 replies; 9+ messages in thread
From: Peter Dyballa @ 2012-11-07  0:03 UTC (permalink / raw)
  To: Wes James; +Cc: help-gnu-emacs@gnu.org


Am 07.11.2012 um 00:53 schrieb Wes James:

> ctrl-g means cancel the ctrl commands typed in, but how do you send a ctrl-g to a bash shell inside emacs?

Have you tried that very simple and basic C-q C-g?

--
Greetings

  Pete

These are my principles and if you don't like them... well, I have others.
				- Groucho Marx




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: send ctrl-g to bash shell in emacs
  2012-11-07  0:03 ` Peter Dyballa
@ 2012-11-07 16:29   ` Wes James
  2012-11-07 16:49     ` Peter Dyballa
       [not found]   ` <mailman.12483.1352305663.855.help-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 9+ messages in thread
From: Wes James @ 2012-11-07 16:29 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: help-gnu-emacs@gnu.org

Hi,

On Nov 6, 2012, at 5:03 PM, Peter Dyballa <Peter_Dyballa@Web.DE> wrote:

> 
> Am 07.11.2012 um 00:53 schrieb Wes James:
> 
>> ctrl-g means cancel the ctrl commands typed in, but how do you send a ctrl-g to a bash shell inside emacs?
> 
> Have you tried that very simple and basic C-q C-g?
> 

I tried that and it just puts ^G on the screen

> --
> Greetings
> 
>  Pete


wes



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: send ctrl-g to bash shell in emacs
       [not found]   ` <mailman.12483.1352305663.855.help-gnu-emacs@gnu.org>
@ 2012-11-07 16:47     ` Barry Margolin
  2012-11-07 17:06       ` Wes James
       [not found]       ` <mailman.12490.1352307866.855.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 9+ messages in thread
From: Barry Margolin @ 2012-11-07 16:47 UTC (permalink / raw)
  To: help-gnu-emacs

In article <mailman.12483.1352305663.855.help-gnu-emacs@gnu.org>,
 Wes James <comptekki@me.com> wrote:

> Hi,
> 
> On Nov 6, 2012, at 5:03 PM, Peter Dyballa <Peter_Dyballa@Web.DE> wrote:
> 
> > 
> > Am 07.11.2012 um 00:53 schrieb Wes James:
> > 
> >> ctrl-g means cancel the ctrl commands typed in, but how do you send a 
> >> ctrl-g to a bash shell inside emacs?
> > 
> > Have you tried that very simple and basic C-q C-g?
> > 
> 
> I tried that and it just puts ^G on the screen

And when you press Return, it will be sent, just like anything else you 
type.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: send ctrl-g to bash shell in emacs
  2012-11-07 16:29   ` Wes James
@ 2012-11-07 16:49     ` Peter Dyballa
  0 siblings, 0 replies; 9+ messages in thread
From: Peter Dyballa @ 2012-11-07 16:49 UTC (permalink / raw)
  To: Wes James; +Cc: help-gnu-emacs@gnu.org


Am 07.11.2012 um 17:29 schrieb Wes James:

>> Have you tried that very simple and basic C-q C-g?
>> 
> 
> I tried that and it just puts ^G on the screen

So the shell, or whatever is running inside it, is not waiting for ^G input? There is also the function send-invisible.

Maybe it helps to understand your or your shell's needs when you would explain what you intend to do and to achieve…

--
Greetings

  Pete

If we don't succeed, we run the risk of failure.
				– George W. Bush




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: send ctrl-g to bash shell in emacs
  2012-11-07 16:47     ` Barry Margolin
@ 2012-11-07 17:06       ` Wes James
       [not found]       ` <mailman.12490.1352307866.855.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 9+ messages in thread
From: Wes James @ 2012-11-07 17:06 UTC (permalink / raw)
  To: Barry Margolin; +Cc: help-gnu-emacs


On Nov 7, 2012, at 9:47 AM, Barry Margolin <barmar@alum.mit.edu> wrote:

> In article <mailman.12483.1352305663.855.help-gnu-emacs@gnu.org>,
> Wes James <comptekki@me.com> wrote:
> 
>> Hi,
>> 
>> On Nov 6, 2012, at 5:03 PM, Peter Dyballa <Peter_Dyballa@Web.DE> wrote:
>> 
>>> 
>>> Am 07.11.2012 um 00:53 schrieb Wes James:
>>> 
>>>> ctrl-g means cancel the ctrl commands typed in, but how do you send a 
>>>> ctrl-g to a bash shell inside emacs?
>>> 
>>> Have you tried that very simple and basic C-q C-g?
>>> 
>> 
>> I tried that and it just puts ^G on the screen
> 
> And when you press Return, it will be sent, just like anything else you 
> type.


I did press return and it just brought the command line back without doing anything. 

I'm running erlang inside of emacs.  I.e., I type in erl and it takes me in to an erlang command-line.  It accepts certain ctrl command to do things.

In erlang, when you press ctrl-g it should bring up a line that says:

User switch command
-->

so I can do other commands.

wes 



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: send ctrl-g to bash shell in emacs
       [not found]       ` <mailman.12490.1352307866.855.help-gnu-emacs@gnu.org>
@ 2012-11-07 17:52         ` Barry Margolin
  0 siblings, 0 replies; 9+ messages in thread
From: Barry Margolin @ 2012-11-07 17:52 UTC (permalink / raw)
  To: help-gnu-emacs

In article <mailman.12490.1352307866.855.help-gnu-emacs@gnu.org>,
 Wes James <comptekki@me.com> wrote:

> On Nov 7, 2012, at 9:47 AM, Barry Margolin <barmar@alum.mit.edu> wrote:
> 
> > In article <mailman.12483.1352305663.855.help-gnu-emacs@gnu.org>,
> > Wes James <comptekki@me.com> wrote:
> > 
> >> Hi,
> >> 
> >> On Nov 6, 2012, at 5:03 PM, Peter Dyballa <Peter_Dyballa@Web.DE> wrote:
> >> 
> >>> 
> >>> Am 07.11.2012 um 00:53 schrieb Wes James:
> >>> 
> >>>> ctrl-g means cancel the ctrl commands typed in, but how do you send a 
> >>>> ctrl-g to a bash shell inside emacs?
> >>> 
> >>> Have you tried that very simple and basic C-q C-g?
> >>> 
> >> 
> >> I tried that and it just puts ^G on the screen
> > 
> > And when you press Return, it will be sent, just like anything else you 
> > type.
> 
> 
> I did press return and it just brought the command line back without doing 
> anything. 
> 
> I'm running erlang inside of emacs.  I.e., I type in erl and it takes me in 
> to an erlang command-line.  It accepts certain ctrl command to do things.
> 
> In erlang, when you press ctrl-g it should bring up a line that says:
> 
> User switch command
> -->
> 
> so I can do other commands.
> 
> wes 

Don't try to run full-screen programs in an Emacs shell buffer. Use M-x 
terminal-emulator if you must run them inside Emacs.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: send ctrl-g to bash shell in emacs
  2012-11-06 23:53 send ctrl-g to bash shell in emacs Wes James
  2012-11-07  0:03 ` Peter Dyballa
@ 2012-11-07 20:50 ` Wes James
  2012-11-07 21:42   ` Wes James
  1 sibling, 1 reply; 9+ messages in thread
From: Wes James @ 2012-11-07 20:50 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org


On Nov 6, 2012, at 4:53 PM, Wes James <comptekki@me.com> 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!

wes



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: send ctrl-g to bash shell in emacs
  2012-11-07 20:50 ` Wes James
@ 2012-11-07 21:42   ` Wes James
  0 siblings, 0 replies; 9+ messages in thread
From: Wes James @ 2012-11-07 21:42 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org


On Nov 7, 2012, at 1:50 PM, Wes James <comptekki@me.com> wrote:

> 
> On Nov 6, 2012, at 4:53 PM, Wes James <comptekki@me.com> 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



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-11-07 21:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-06 23:53 send ctrl-g to bash shell in emacs Wes James
2012-11-07  0:03 ` Peter Dyballa
2012-11-07 16:29   ` Wes James
2012-11-07 16:49     ` Peter Dyballa
     [not found]   ` <mailman.12483.1352305663.855.help-gnu-emacs@gnu.org>
2012-11-07 16:47     ` Barry Margolin
2012-11-07 17:06       ` Wes James
     [not found]       ` <mailman.12490.1352307866.855.help-gnu-emacs@gnu.org>
2012-11-07 17:52         ` Barry Margolin
2012-11-07 20:50 ` Wes James
2012-11-07 21:42   ` Wes James

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.