help: up/down arrows in 2.3.4 interactiv

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jerald

    help: up/down arrows in 2.3.4 interactiv

    Hi.

    I've just installed 2.3.4 from the source on a linux box.
    In the interactive mode, up/down arrows do not work.
    When I press 'up' python prints '^[[A' and down gives '^[[B'
    What is wrong?

    Thanks,

    Gerald
  • Erik Heneryd

    #2
    Re: help: up/down arrows in 2.3.4 interactiv

    Jerald wrote:[color=blue]
    > Hi.
    >
    > I've just installed 2.3.4 from the source on a linux box.
    > In the interactive mode, up/down arrows do not work.
    > When I press 'up' python prints '^[[A' and down gives '^[[B'
    > What is wrong?
    >
    > Thanks,
    >
    > Gerald[/color]

    You need to build the readline module. Enable it in Modules/Setup and
    do make, make install again.

    (assuming you got the readline lib+headers to begin with)


    Erik

    Comment

    • Michael Hudson

      #3
      Re: help: up/down arrows in 2.3.4 interactiv

      Jerald <jfj@freemail.g r> writes:
      [color=blue]
      > I've just installed 2.3.4 from the source on a linux box.
      > In the interactive mode, up/down arrows do not work.
      > When I press 'up' python prints '^[[A' and down gives '^[[B'
      > What is wrong?[/color]

      Try installing readline-dev, or whatever package you need to convince
      your distro to install readline's headers.

      Cheers,
      mwh

      --
      <Nafai> w00t w00t w00t w00t!
      <Nafai> I don't understand all of the code, but it works!
      <Nafai> I guess I should check it in.
      -- from Twisted.Quotes

      Comment

      • DogWalker

        #4
        Re: up/down arrows in 2.3.4 interactiv

        Besides the good advice from others you might want to do the following:

        [1] Read the readme well! Especially the section about building.
        [2] Run configure like this:
        configure >configure.lo g 2>&1
        [3] Open config.log and configure.log in a word processor and search for
        "no"
        and "fail"
        (this will tell you what the configure's view of your world is: such
        as it cannot find some module's headers and other anomalies. You'll have to
        fix the problems with modules you want to use.
        [4] do the same thing with make.

        A python gets along without arms, legs and batteries, but Python doesn't
        do well at all.

        "Jerald" <jfj@freemail.g r> wrote in message
        news:ci4i04$1h1 v$1@ulysses.noc .ntua.gr...[color=blue]
        > Hi.
        >
        > I've just installed 2.3.4 from the source on a linux box.
        > In the interactive mode, up/down arrows do not work.
        > When I press 'up' python prints '^[[A' and down gives '^[[B'
        > What is wrong?
        >
        > Thanks,
        >
        > Gerald
        > --
        > http://mail.python.org/mailman/listinfo/python-list
        >[/color]


        Comment

        • Thorsten Kampe

          #5
          Re: help: up/down arrows in 2.3.4 interactiv

          * Jerald (2004-09-14 04:37 +0200)[color=blue]
          > I've just installed 2.3.4 from the source on a linux box.
          > In the interactive mode, up/down arrows do not work.
          > When I press 'up' python prints '^[[A' and down gives '^[[B'
          > What is wrong?[/color]

          No readline? Mangled $INPUTRC? Anyway, probably not a python thing.

          Comment

          Working...