LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (https://www.linuxquestions.org/questions/gentoo-87/)
-   -   nano throwing all kinds of jiberish (https://www.linuxquestions.org/questions/gentoo-87/nano-throwing-all-kinds-of-jiberish-733140/)

theabcasian 06-15-2009 03:14 PM

nano throwing all kinds of jiberish
 
Hello again LQ
so i tried to look this up but im not even sure what i need to search for.
ok so when I use nano it inserts some code like the down arrow returns
Code:

get_key_buffer(): key_buffer_len = 1
                                  parse_kbinput(): kbinput = 258, neta_key = FALSE, func_key = FALSE, escapes = 0, byte_digits = 0, retval = 14
                                        get_shortcut(): kbinput = 14, meta_key = FALSE, func_key = FALSE
      matched seq "^N" and btw meta was 0 (menus 1 = 1)

page up and down seem to work and so do nano's ctrl keys and then i hit a letter i get the same jumble of commands. on the terminal under nano i get a bunch of
Code:

Hey, set sequence to 7 for shortcut "^G"
and a lot of others.

thanks in advance for any help

i92guboj 06-15-2009 03:24 PM

Do you by any chance have the "debug" USE flag on? Try disabling it for nano at least.

If you are not sure, please, post the output of "emerge -pv nano".

theabcasian 06-15-2009 06:25 PM

didnt even notice i added debug any ideas how to remove it

i92guboj 06-15-2009 06:38 PM

Check your /etc/make.conf file. If you can see "debug" in between your USE flags, remove it or modify it with a minus in front of it so it's "-debug".

Then do "emerge -auDvN world" to synchronize your installation with the change. nano, and probably many others should be shown in the list of package to emerge. If that's the case, answer "yes". If not, then we will need to look into something else.

milomak 06-15-2009 07:23 PM

do you not want debug altogether? in which case i92's solution works.

if not you could add to /etc/portage/package.use
Code:

app-editors/nano -debug

i92guboj 06-16-2009 03:23 AM

True. However, seeying how he doesn't even know about the flag, I doubt that he is doing any debugging. The debug flag is one of this things that you only enable and use if you know what it is.

But either way theabcasian, make sure you re-emerge at least nano once you have set the -debug flag.

NeddySeagoon 06-18-2009 02:06 PM

As nano is next to useless with the debug flag on, first you must build it with debugging off.
Code:

USE="-debug" emerge -1 nano
Using USE flags on the command line like this is a VeryBadThing(tm) normally but you don't have a lot of choice.
With nano fixed, you can now hunt down where USE="debug" is set and turn it off. Lastly,
Code:

emerge -uDNav world
to fix all the other packages made with debug enabled.

Yep, I've made nano with debug on.


All times are GMT -5. The time now is 06:26 PM.