Link to home
Create AccountLog in
Avatar of perlperl
perlperl

asked on

strange charactes on unix box

On some of the Unix host, when i try to delete the character using delete key or backspace,
i can't do that and i see strange characters like "^[[3~" or "^?" etc....

i know there should be some settings which can prevent this
Avatar of perlperl
perlperl

ASKER

backspace is displayed as  $?
delete is displayed as ^[[3~
this happens only when i am running some interactive code from unix prompt
ASKER CERTIFIED SOLUTION
Avatar of sunnycoder
sunnycoder
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
i found this link helful...
http://www.columbia.edu/kermit/backspace.html

can someone pls close the question...

Thanks
hi sunnycode,
actually both of our comments were in parallel...anyway you deserve the points for trying
Thanks :)
just 1 question

when i type stty , i get

speed 9600 baud; evenp hupcl -cread
time = 255; intr = ^C; erase = DEL; kill = ^U;
eol <undef>;
susp = ^Z; dsusp = ^Y;
werase = ^W; lnext = ^V;
brkint -inpck icrnl -ixany ixoff onlcr tab3
iexten echo echoe echok
-echoke

who controls this file, is it some kind of unix languauge
hey summycode,
Backspace works fine, but when i use up and down arrow keys, to see previous commands, it gives strabge characters
^[[A   and   ^[[B   respectively
>who controls this file, is it some kind of unix languauge
Not sure what you are mean by controlling the file?

Arrow keys
http://www.columbia.edu/kermit/faq-c-arr.html#faq-c-arr
confused...regarding arrow key

can u please tell me the exact command for all type of unix host  HP,solaris,OSF1,Linux
what is your terminal type ?
tcsh shell
i guess i'll have to open new question..will do it
echo $term ... what does this command give? .. If it is not vt100 try
set term=vt100

This is the most common type and probably this should set things right.