home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / database / oracle / 1270 < prev    next >
Encoding:
Text File  |  1992-08-12  |  3.2 KB  |  69 lines

  1. Newsgroups: comp.databases.oracle
  2. Path: sparky!uunet!gatech!destroyer!ubc-cs!unixg.ubc.ca!unixg.ubc.ca!george
  3. From: george@unixg.ubc.ca (George chow)
  4. Subject: Re: Terminal types, recognition of...
  5. Message-ID: <1992Aug12.212237.17532@unixg.ubc.ca>
  6. Sender: news@unixg.ubc.ca (Usenet News Maintenance)
  7. Nntp-Posting-Host: kynok.ucs.ubc.ca
  8. Organization: University of British Columbia, Vancouver, B.C., Canada
  9. References: <1992Aug10.174956.13401@unixg.ubc.ca> <1992Aug12.022036.9693@oracle.us.oracle.com>
  10. Date: Wed, 12 Aug 1992 21:22:37 GMT
  11. Lines: 56
  12.  
  13. In article <1992Aug12.022036.9693@oracle.us.oracle.com>, wkaufman@us.oracle.com (William Kaufman) writes:
  14. |> In article <1992Aug10.174956.13401@unixg.ubc.ca> julia@unixg.ubc.ca (Julia Chen) writes:
  15. |> ] 
  16. |> ] Can anyone explain how Oracle interprets and treats terminal settings in a
  17. |> ] Unix environment? I work on a Sun IPC with xterm running on a remote Sun 4.
  18. |> 
  19. |>     (Note that the below only applies to SQL*Forms 3.0, SQL*Menu 5.0,
  20. |> and Oracle*Terminal 1.0, and is fairly UNIX-specific.)
  21. |> 
  22. |>    If you don't specify a "-c" on the command line, it takes your $TERM
  23. |> environment variable as your terminal, and oraterm.r as your resource
  24. |> file.  (This is on UNIX systems--check your platform docs for defaults
  25. |> on other platforms.)
  26. |> 
  27. |> ] With my envrionment variable $term set at xterm, none of the Oracle tools will
  28. |> ] recgonize the terminal.
  29. |> 
  30. |>     Well, it'll look for a terminal named "xterm" in your oraterm.r.  If
  31. |> it doesn't find it (and, in the default oraterm.r, it might not), the
  32. |> program will warn you and halt.
  33.  
  34. Ah, so oraterm.r is an index of sorts...
  35.  
  36. |> ] I either have to change $term to xtermsun:sun
  37. |> 
  38. |>     Don't do this!  Otherwise, other programs (like vi, for example) may
  39. |> get confused about what kind of terminal you're using, and fail, or get
  40. |> forced into line-mode.
  41.  
  42. Yes, I know I shouldn't do that. But it *is* one way to get it to go. :)
  43.  
  44. |> ] or add
  45. |> ] '-c xtermsun:sun' at invocation in order to get Oracle to correctly recgonize
  46. |> ] that I'm on an xterm.
  47. |> 
  48. |>     That's one solution.  If *all* your machine's users are using
  49. |> xterms, though, you can simply rename your sun.r to oraterm.r (save the
  50. |> old one somewhere!), and rename the "xtermsun" terminal listed in there
  51. |> to "xterm" (and save the unmodified sun.r, too!).  Then, "xtermsun:sun"
  52. |> becomes "xterm:oraterm", which would be your default.
  53.  
  54. Maybe I should have said that I was really more interested in the file oraterm.r.
  55. I was slightly confused because my ORATERMPATH points to a directory which 
  56. contains xterm.r, vt100.r, and a few others. Since I know that if I come in from
  57. a vt100 terminal that things are okay, I couldn't understand why coming in from
  58. an xterm would be different. So, the answer is that oraterm.r needs to have an
  59. entry for xterm inside it before it will even start looking for xterm.r.
  60.  
  61. |>                                                 -- Bill K.
  62. |> 
  63. |> ===============================================================================
  64. |> William P.D. Kaufman         Voice: (415) 506-2447     500 Oracle Parkway
  65. |> wkaufman@us.oracle.com         Fax: (415) 506-7221     Box 659411
  66. |> Tools & Multimedia                                     Redwood Shores, CA 94065
  67.  
  68. George
  69.