Skip to main content
Jun 1, 2018 5:33 AM UTC

Mc and cursor keys

I am just taking my first steps in using USS as a dev environment and am trying to set it up like the Linux systems I am used to. I am connecting to USS via Putty using telnet. I installed mc and it starts up OK but when I try to navigate around the panels the cursor and backspace keys just produce text. Function keys work OK. OTOH, I installed vim and bash and the cursor keys work normally. I have

declare -x TERM=“xterm”
declare -x TERMINFO="./share/mc"

set as advised. What have I missed?

Thanks
Robin

    4 replies

    Tatiana Balaburkina
    Rocketeer
    Jun 4, 2018 3:01 AM UTC

    I am just taking my first steps in using USS as a dev environment and am trying to set it up like the Linux systems I am used to. I am connecting to USS via Putty using telnet. I installed mc and it starts up OK but when I try to navigate around the panels the cursor and backspace keys just produce text. Function keys work OK. OTOH, I installed vim and bash and the cursor keys work normally. I have

    declare -x TERM=“xterm”
    declare -x TERMINFO="./share/mc"

    set as advised. What have I missed?

    Thanks
    Robin

    Hi Robin,

    Did you try to run “mc -u”?

    Thanks,
    Tatyana

    Jun 4, 2018 3:07 AM UTC

    Hi Robin,

    Did you try to run “mc -u”?

    Thanks,
    Tatyana

    Tatyana-
    Thanks for the response. I just tried “mc -u” and it made no difference, the cursor keys still don’t work. The curious thing is that the mouse works fine, I can position the cursor with it.

    Robin

    Tatiana Balaburkina
    Rocketeer
    Jun 5, 2018 3:53 AM UTC

    Tatyana-
    Thanks for the response. I just tried “mc -u” and it made no difference, the cursor keys still don’t work. The curious thing is that the mouse works fine, I can position the cursor with it.

    Robin

    Robin,

    Try to do that:

    export MC_DATADIR=/path_to_mc_directory/share/mc
    mc -u

    Be careful, you should use absolute path instead of relative like “./share/mc”

    Jun 5, 2018 4:15 AM UTC

    Robin,

    Try to do that:

    export MC_DATADIR=/path_to_mc_directory/share/mc
    mc -u

    Be careful, you should use absolute path instead of relative like “./share/mc”

    Tatyana-

    That did the trick!

    Thanks

    Robin