Operating System - HP-UX
1834148 Members
2568 Online
110064 Solutions
New Discussion

Junk display coming over reflection

 
Pramod M
Regular Advisor

Junk display coming over reflection

Hi All,

Iâ m getting the below screen on Reflection X in one of the blades. It was also coming in putty but somehow got resolved on its own. I am attaching the screen shot of the same. Please gud me on this.

Model : Integrity Blade server, 11.31

Regards,
5 REPLIES 5
Matti_Kurkela
Honored Contributor

Re: Junk display coming over reflection

The directory you're listing probably contains a file that has a terminal control character embedded in its name. This control character switches the character set in the dtterm window to line-drawing mode.

To get back to normal display mode, type "reset" and press Enter. You may have to type it blindly, as the display is not readable; but your keyboard is still sending the correct characters to the command prompt, even though dtterm is displaying them as line-drawing characters.

To find the file that causes this error, use the command "ll -b" and look for a file or directory that has octal number sequences (like \NNN where N is a number) embedded in its name. Once you find it, rename it and your problem should be gone. You probably can use the \NNN sequences as-is in the rename command too. (Each \NNN sequence represents one character.)

MK
MK
Pramod M
Regular Advisor

Re: Junk display coming over reflection

Thanks for the reply. I am going to test the same and let you know the result. Before that, this is only coming in Reflection X but putty login works well and processing.

Thnkx
Bill Hassell
Honored Contributor

Re: Junk display coming over reflection

It appears that you are using a CDE terminal emulator, probably dtterm. When you login with the terminal emulator, do you see /etc/profile and .profile running? Or does it bypass all the profiles and just give you a prompt? There are several things going on here:

1. The emulator may not be logging in normally (this is the dumb default) so profiles are not run. To fix this, login and then type this command:

echo "*loginShell=true" >> $HOME/.Xdefaults

Then exit and start another terminal window from CDE. You should see normal profile messages now.

2. Someone has hardcoded the TERM variable (ie, export TERM=hp or similar). This should never be done, but instead, identify the incoming terminal using ttytype. ttytype will identify the terminal emulator from several hundred models that it knows. In /etc/profile, look in /etc/profile for code similar to this:

if [ "$TERM" = "" -o "$TERM" = "unknown" -o "$TERM" = "dialup" \
-o "$TERM" = "network" ]
then
eval `ttytype -s -a`
fi

Replace all of this (from if to fi) with these 2 lines:

eval $(ttytype -s)
eval $(resize)

Now the shell has the correct terminal settings.

PuTTY is a fairly powerful (and free) terminal emulator and much easier to use than any Xwindow stuff. When you run Xwindows, a LOT of graphics data has to flow across the network. With PuTTY, just the text for the keyboard and screen will be exchanged. And to quickly manage automatic logins with PuTTY, look a PuTTY connection manager.


Bill Hassell, sysadmin
Dennis Handly
Acclaimed Contributor

Re: Junk display coming over reflection

>MK: You probably can use the \NNN sequences as-is in the rename command too.

I'm not aware of the shell recognizing that for arbitrary commands. You might be able to use echo:
mv $(echo 'abc\123') abc
Or rm -i: rm -i abc*
Dennis Handly
Acclaimed Contributor

Re: Junk display coming over reflection

>ME: mv $(echo 'abc\123') abc

echo(1) wants the octal to have a leading 0:
mv $(echo 'abc\0123') abc