unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Using control keys in bash shell within emacs
@ 2002-10-10 13:11 Jeff Rancier
  2002-10-10 16:16 ` Chris
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Rancier @ 2002-10-10 13:11 UTC (permalink / raw)


Hi,

I'm using cygwin bash, 2.05b, as my NTEmacs shell (GNU Emacs 21.2.1
(i386-msvc-nt5.1.2600) of 2002-03-19 on buffy).  Is there any way to have
(e.g.) C-p, scroll through the history, instead of the default emacs
behaviour of moving to the previous line in a buffer.  I tried:

    set -o emacs

in my .bash_profile/.bashrc, but that didn't work.  Works fine when I kick
off cygwin bash outside of NTEmacs.  If this kind of thing doesn't work, can
someone explain the advantage of kicking off a bash shell inside of Emacs?

--

Thanks,
Jeff

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

* Re: Using control keys in bash shell within emacs
  2002-10-10 13:11 Using control keys in bash shell within emacs Jeff Rancier
@ 2002-10-10 16:16 ` Chris
  2002-10-11  4:46   ` Knut Forkalsrud
  0 siblings, 1 reply; 4+ messages in thread
From: Chris @ 2002-10-10 16:16 UTC (permalink / raw)


on 10 Oct 2002, "Jeff Rancier" <jeff.rancier@softechnics.com> spake
thusly: 

> Hi,
> 
> I'm using cygwin bash, 2.05b, as my NTEmacs shell (GNU Emacs 21.2.1
> (i386-msvc-nt5.1.2600) of 2002-03-19 on buffy).  Is there any way to
> have (e.g.) C-p, scroll through the history, instead of the default
> emacs behaviour of moving to the previous line in a buffer.  I tried:

You could just use the normal Emacs history scrolling: M-p and M-n. I think 
CTRL-up and CTRL-down work as well...

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

* Re: Using control keys in bash shell within emacs
  2002-10-10 16:16 ` Chris
@ 2002-10-11  4:46   ` Knut Forkalsrud
  2002-10-11 10:14     ` FRC
  0 siblings, 1 reply; 4+ messages in thread
From: Knut Forkalsrud @ 2002-10-11  4:46 UTC (permalink / raw)


Chris <chrisl_ak@hotmail.com> writes:

> > Is there any way to
> > have (e.g.) C-p, scroll through the history, instead of the default
> > emacs behaviour of moving to the previous line in a buffer.  I tried:
> 
> You could just use the normal Emacs history scrolling: M-p and M-n. I think 
> CTRL-up and CTRL-down work as well...

Maybe you want term-mode (M-x term) where most of your keys work as
usual and the Emacs keybindings are changed to be prefixed with C-c.
Cortrol c in the terminal is C-c C-c in Emacs' term-mode.

-Knut

-- 
Hard work often pays off after time.  But laziness always pays off now.

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

* Re: Using control keys in bash shell within emacs
  2002-10-11  4:46   ` Knut Forkalsrud
@ 2002-10-11 10:14     ` FRC
  0 siblings, 0 replies; 4+ messages in thread
From: FRC @ 2002-10-11 10:14 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1292 bytes --]

That's what I've been trying to do for several weeks, but it's much of a
pain to get this working on NT (for me at least).
I managed to get a correct telnet mode after quite a few hours fishing in
google, but I still cannot run my favorite curses programs (man, top,
nethack...). I tried terminal-emulator, to no avail.
I use NTemacs 21.2 (GNU distro), with latest cygwin on NT4sp6. The UNIX
servers I try to get a VT on are AIX and HP-UX (don't think it matters)

If you have useful links, .emacs snippet etc..., I'm interested.
Cheers,

FRC
"Knut Forkalsrud" <knut@forkalsrud.org> a écrit dans le message de news:
m2bs611t37.fsf@bomb.forkalsrud.org...
> Chris <chrisl_ak@hotmail.com> writes:
>
> > > Is there any way to
> > > have (e.g.) C-p, scroll through the history, instead of the default
> > > emacs behaviour of moving to the previous line in a buffer.  I tried:
> >
> > You could just use the normal Emacs history scrolling: M-p and M-n. I
think
> > CTRL-up and CTRL-down work as well...
>
> Maybe you want term-mode (M-x term) where most of your keys work as
> usual and the Emacs keybindings are changed to be prefixed with C-c.
> Cortrol c in the terminal is C-c C-c in Emacs' term-mode.
>
> -Knut
>
> --
> Hard work often pays off after time.  But laziness always pays off now.

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

end of thread, other threads:[~2002-10-11 10:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-10 13:11 Using control keys in bash shell within emacs Jeff Rancier
2002-10-10 16:16 ` Chris
2002-10-11  4:46   ` Knut Forkalsrud
2002-10-11 10:14     ` FRC

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).