Sending the "down" key via Expect

Discussion in 'Perl Misc' started by Nick Leeson, Jun 29, 2003.

  1. Nick Leeson

    Nick Leeson Guest

    Hi,
    I am using an expect script to interact with lynx running on a remote
    server.I am trying to figure out how to send the direction keys
    ....left(->), right(<-),up and down keys....I know i need to send their
    equivalent ASCII values..but what would they be?
    Please let me know...

    Thanks...

    Nick
     
    Nick Leeson, Jun 29, 2003
    #1
    1. Advertising

  2. Nick Leeson

    Vlad Tepes Guest

    Nick Leeson <> wrote:

    > Hi,
    > I am using an expect script to interact with lynx running on a remote
    > server.I am trying to figure out how to send the direction keys
    > ...left(->), right(<-),up and down keys....I know i need to send their
    > equivalent ASCII values..but what would they be?
    > Please let me know...


    If you have trouble with the escapes for the arrow buttons, you could
    start lynx with vi-keys:

    lynx -vikeys

    and use h,j,k,l instead of left, down, up and right.

    --
    Vlad
     
    Vlad Tepes, Jun 30, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    464
  2. Mervin Williams

    Select datagrid rows with key-up and key-down?

    Mervin Williams, Oct 19, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    127
    Cor Ligthert
    Oct 20, 2004
  3. M P
    Replies:
    1
    Views:
    494
  4. Simon Strandgaard

    how to expect eof with expect+pty

    Simon Strandgaard, Dec 20, 2006, in forum: Ruby
    Replies:
    4
    Views:
    360
    Simon Strandgaard
    Dec 20, 2006
  5. Phil
    Replies:
    0
    Views:
    169
Loading...

Share This Page