0

When I log into a RHEL 6.4 server (tried two different servers which are identical, a third one did something different but similar) and try to edit a file using vi or nano, the terminal prints only half the file like is visible in the following screenshots.

mRemoteNG Example: mRemoteNG Example

PuTTy Example: PuTTy Example

Is this a bug or a configuration issue? Could you please help. I can't seem to figure out what's wrong here?

CMPSoares
  • 101
  • 7

3 Answers3

0

Make sure the terminal settings in Putty match up with the environment settings in your shell window on RedHat. I suspect vi/nano thinks your window is bigger than it actually is, so the missing lines are above what you can see.

Not sure where to find the terminal settings in Putty off the top of my head, but use either 'printenv' or 'echo $TERM' in the shell window to see what RedHat thinks what your terminal is.

  • Thank you for the suggestion in checking `printenv`, but it doesn't seem that anything is strange... :-/ – CMPSoares Aug 17 '16 at 17:03
0

Most likely your program either encountered something that it considers to be a special character and freaked out. See if you can change Remote Character set and how your terminal handles drawing characters.

Also, do note that mRemoteNG is not popular and is probably not as well developed and maintained as putty or kitty.

Dimi
  • 147
  • 7
  • Hello @user3407434 I added two prntscrns and the first one is mRemoteNG and the second one is with PuTTY. – CMPSoares Aug 17 '16 at 17:05
0

At a given point in the .profile file for a certain user it had the command stty cols 2000 that mixed up the whole column size configurations.

This caused the different editors to think screen size was bigger and thus giving a weird output.

It would, however, be a lot better to have a resize mechanism that detects the window size and resets everything, but at the version of OS I'm using it's inexistent.

CMPSoares
  • 101
  • 7