Operating System - HP-UX
1847196 Members
4423 Online
110263 Solutions
New Discussion

Re: Help!! (For a beginner)

 
SOLVED
Go to solution
Matthew Perrett
New Member

Help!! (For a beginner)

I would really apprecate a hand on this one asap. I know it's probably a simple problem, but I'm afraid that I'm a little lost on how to solve it.

I don't know what I've actually done, but whenever I hit the ENTER key, "^J" is shown. How do I fix this?
9 REPLIES 9
Michael Tully
Honored Contributor

Re: Help!! (For a beginner)

Hi,

The best way would be to kill the session entirely and start your session once more. Can you kill the session from another terminal??

This type of problem can occur by changing the key function(s) by using the 'stty' command.

Regards
Michael

Anyone for a Mutiny ?
Scott Van Kalken
Esteemed Contributor

Re: Help!! (For a beginner)

you can also try typing "stty sane" to see if this fixes your problem straight away.

Sometimes does, sometimes doesn't.
Michael Tully
Honored Contributor

Re: Help!! (For a beginner)

The reason I suggested to kill the terminal session instead of using "stty sane" was because the enter key was the problem key, not some other key.
Anyone for a Mutiny ?
Matthew Perrett
New Member

Re: Help!! (For a beginner)

Thanks for responding so quickly.

I did kill tehe terminal session, but that didn't actually do anything.

It's pretty strange, because I only used the stty -a function, so that shouldn't have changed any of the key strokes. I didn't restart the actual server in question. Try that?
Matthew Perrett
New Member

Re: Help!! (For a beginner)

... Also, I tried stty sane. Didn't work. What the hell would ENTER have defaulted to?!? If I knew that then I'd be able to fix the problem. :(
Billy Ng
Occasional Advisor

Re: Help!! (For a beginner)

1) You may try to use the command: "xmodmap -pk". It should show you how your keyboard is mapped.
2) Then, you should try "xmodmap -e "keycode <##> = Enter" where <##> is the keycode for the Enter key.
harry d brown jr
Honored Contributor

Re: Help!! (For a beginner)

Can you post the output of

stty -a

echo $TERM

Are you using the Console or a terminal emulation package via a PC runing some kind of M$ OS ?? Like Exceed or Reflections??


thanks,

live free or die
harry
Live Free or Die
Darrell Allen
Honored Contributor
Solution

Re: Help!! (For a beginner)

What type of terminal are you using? Are you using a terminal emulator? Can you go into setup on your terminal or emulator and check settings?

Try entering Ctrl-M instead of ENTER (so you can do things like "stty -a").

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Matthew Perrett
New Member

Re: Help!! (For a beginner)

Thanks a lot, everyone, for all your help. I restarted the server, and it is working fine now. Just one of them strange things that happen now and then, I guess. I appreciate your assistance.