Professional Web Applications Themes

correct term setting? - Linux / Unix Administration

I log into my linux machine from a windows machine using puTTY over ssh, and most programs I run using screen. I posted the below originally on comp.editors thinking it was a vim issue, but now am thinking it is a term/puTTY problem: ----- originally posted comp.editors ----- Something has bothered me for ages but have managed to do without is the use of the numbers on my keypad with numlock on. In my shell (bash) I can type keypad numbers and they work, but in vim they don't. Searched the vim help for numlock, keypad, and numpad etc only ...

  1. #1

    Default correct term setting?

    I log into my linux machine from a windows machine using puTTY over ssh,
    and most programs I run using screen.

    I posted the below originally on comp.editors thinking it was a vim
    issue, but now am thinking it is a term/puTTY problem:

    ----- originally posted comp.editors -----
    Something has bothered me for ages but have managed to do without is the
    use of the numbers on my keypad with numlock on.

    In my shell (bash) I can type keypad numbers and they work, but in vim
    they don't. Searched the vim help for numlock, keypad, and numpad etc
    only turned up bindings.

    Is there a setting to enable them? What is it?
    ----- end -----

    I should clarify that when I say they don't work in vim, they do send
    "some characters" but I don't know what they are, and they certainly
    aren't the numbers.

    In the bash shell (no screen running) $TERM is xterm; in bash using
    screen $TERM is xterm; in vim term defaults to $TERM; in
    puTTY->terminal->keyboard->"Function keys and keypad" are set to "ESC[n~"

    In vim I tried setting term=ansi, and the keypad worked then, but the
    function keys didn't.

    Any ideas? Not sure what other information to provide:
    vim 6.1, bash 2.05b, puTTY 0.58, 104 key qwerty keyboard?

    --
    Troy Piggins
    Where I live: 27 27 44 S 153 02 28 E
    http://earth.google.com
    Troy Guest

  2. #2

    Default Re: correct term setting?

    * Stephane CHAZELAS wrote: 
    > [...]
    >
    > Go to the default settings in putty and use TERM=putty. Ensure that
    > the terminfo entry for putty on your system is there:[/ref]

    Sorry to sound like a complete noob, but what do you mean by the first
    sentence in that last paragraph? Do you mean just use all the default
    putty settings, and on the linux machine I am connecting to put
    TERM=putty in the ~/.bashrc? Tried that and no joy. In fact the
    function keys no longer worked correctly either.
     

    Yes, it showed up.

    [troyarmadillo:troy]$ infocmp putty
    # Reconstructed via infocmp from file: /usr/share/terminfo/p/putty
    putty|xterm clone (win32),
    am, bw, ccc, km, mir, msgr, xenl,
    colors#8, cols#80, it#8, lines#24, pairs#64,
    [snip]
     

    Looked at that website and there were 2 terminfos, no idea which one you
    mean for me to use, and since I have one already do I need it?

    Thanks anyway.

    --
    Troy Piggins
    Where I live: 27 27 44 S 153 02 28 E
    http://earth.google.com
    Troy Guest

  3. #3

    Default [solved] Re: correct term setting?

    * Troy Piggins wrote: 

    Ok, don't know how I stumbled onto this, but there was a check-box in
    putty's settings terminal->features->"disable application keypad mode"
    which by default seems to be unchecked. I checked it and works now.

    Thanks anyway.

    --
    Troy Piggins
    Where I live: 27 27 44 S 153 02 28 E
    http://earth.google.com
    Troy Guest

Similar Threads

  1. Term::Cap -- Setting terminal type under Windows XP
    By Chubasco in forum PERL Modules
    Replies: 3
    Last Post: June 1st, 11:10 AM
  2. Setting default .term file in Terminal
    By fishfry in forum Mac Networking
    Replies: 3
    Last Post: February 22nd, 09:42 AM
  3. setting and retriving the correct text member height!
    By garwspeed in forum Macromedia Director Lingo
    Replies: 2
    Last Post: November 19th, 09:17 PM
  4. What is the term for this?
    By Steven Fisher in forum Mac Applications & Software
    Replies: 4
    Last Post: June 30th, 02:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139