This page is no longer maintained — Please continue to the home page at www.scala-lang.org

alt-f, alt-b in REPL?

2 replies
kamatsuoka
Joined: 2010-07-31,
User offline. Last seen 1 year 27 weeks ago.

Is there a way to get readline shortcuts like alt-f and alt-b (forward and
backward word) to work in REPL?

Thanks,

Kenji

ngarthl
Joined: 2009-07-19,
User offline. Last seen 34 weeks 4 days ago.
Re: alt-f, alt-b in REPL?

$ rlwrap scala

On Jul 31, 2010 2:55 AM, "Kenji Matsuoka" <kenjim@gmail.com> wrote:

Is there a way to get readline shortcuts like alt-f and alt-b (forward and
backward word) to work in REPL?

Thanks,

Kenji

kamatsuoka
Joined: 2010-07-31,
User offline. Last seen 1 year 27 weeks ago.
Re: alt-f, alt-b in REPL?

Really? That doesn't work for me. I get literal b's and f's.
Control-b and -f work, but not alt-b and alt-f. What's your setup?

> uname -a
Linux [...] 2.6.32-24-generic #38-Ubuntu SMP Mon Jul 5 09:20:59 UTC
2010 x86_64 GNU/Linux

> rlwrap -v
rlwrap 0.34

> scala
Welcome to Scala version 2.8.0.final (Java HotSpot(TM) 64-Bit Server
VM, Java 1.6.0_14).

Kenji

On Sat, Jul 31, 2010 at 2:32 PM, Erlend Hamnaberg wrote:
> $ rlwrap scala
>
> On Jul 31, 2010 2:55 AM, "Kenji Matsuoka" wrote:
>
> Is there a way to get readline shortcuts like alt-f and alt-b (forward and
> backward word) to work in REPL?
>
> Thanks,
>
> Kenji
>
>

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland