Forum OpenACS Q&A: Oracle termtype for Mac OS X terminal window

Slightly off-topic but I'm hoping someone out there will know...

I've just stepped into the parallel universe of Mac OS X.  Strangely
familiar yet oh-so-foreign when you least expect it.  Specifically,
when I log into a Linux system via Terminal and then run sqlplus, my
delete key doesn't work.  It works at the command line, meaning "stty
erase" isn't going to help me.  I assume I need to set my terminal
type for Oracle, but to what???  Neither Google nor Metalink searches
have turned up anything relevant.

I am not *nearly* an accurate enough typist to put up with this. :)

O'Reilly 's Mac Dev Center or whatever it is called might be
helpful:

http://www.oreillynet.com/mac/

Specifically, there is a terminal tutorial.  Its geared towards non-
Unix people, but there might be some information about setting
keys up or whatever:

http://www.oreillynet.com/pub/a/mac/2001/12/14/
terminal_one.html

Have you tried messing with Terminal > preferences >
emulation?

I just reproduced your problem in my terminal.  I never noticed it
before.  You know why?  I always start emacs as soon as I log in
to my RH box and then open a shell buffer and from there open
sqlplus.  Delete key works as expected from there.

Go figure.

Collapse
Posted by Craig Sawyer on
I find this problem a lot with lots of different programs.  I don't
use sqlplus, but I'd try this:

export TERM=xterm

This fixes color problems, etc..  If you don't use bash, then you'll
have to do something else of course :)  But set your term type
(environment variable) to xterm, and it should fix all your
problems.  If not try TERM=ansi

Hope this helps,
-Craig

Collapse
Posted by Janine Ohmer on
Using xterm does work - obviously I forgot to come back here and post about it! :)

Unfortunately, there's still one problem.  I use bash on Linux, and I make heavy use of the ability to recall and edit commands.  The feature works with xterm but it's display is fubar'd, making it hard to see if you've made the edit you really wanted.

I've posted about this in Apple's discussion forum but no, err, nibbles so far. *cough*