home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0000 - 0009 / ibm0000-0009 / ibm0003.tar / ibm0003 / ORACLE10.ZIP / IADANSI.SQL < prev    next >
Encoding:
Text File  |  1987-08-20  |  2.2 KB  |  52 lines

  1. rem This script enters CRT data for SQL*Forms/IAD running on color PC's using
  2. rem ANSI.SYS.  The terminal type is IADANSI.  Run CRT as follows:
  3. rem
  4. rem       CRT IADANSI USERNAME/PASSWORD
  5. rem
  6. rem Afterwards COPY IADANSI.CRT SQLFORMS.CRT as the IAD default.  Otherwise,
  7. rem the terminal definition file will be "IADANSI.CRT", and you must indicate
  8. rem to each utility that you wish to use a non-default CRT file (usually,
  9. rem with a "-c" switch:  -c IADANSI).
  10. rem
  11. rem Note:  the necessary tables must already be part of the database
  12. rem on which this script is to be run.  CRT.SQL is a file that creates
  13. rem these tables.
  14.  
  15. set echo off
  16.  
  17. rem **********************************************************************
  18. rem Enter the master record for the CRT definition
  19. rem **********************************************************************
  20.  
  21. delete from crt where name='IADANSI';
  22. insert into crt (name, type, base, lines, columns, msgl, modl, clearscreen,
  23.     cleareol, att3, att2_3, att1_2_3,
  24.     backspace, forespace, goto_cl, clearline, tset, att1,
  25.     att2, att1_2, att1_3, attoff, scrup, scrdn, graphon,
  26.     graphoff, cursorup, cursordown)
  27.  values ('IADANSI','CHAR', 1, 25, 80, 24, 25, '\e[0;32m\e[2J',
  28.     '\e[K', '\e[5;31m', '\e[0;7m', '\e[0;37;44m',
  29.     '\e[D', '\e[C', '\e[\y;\xH', '\e[2K', NULL, '\e[0;37;44m',
  30.     '\e[0m', '\e[0;37;41m', '\e[0;31m', '\e[0;32m', '\eD', '\eM', NULL,
  31.     NULL, '\e[A', '\e[B');
  32.  
  33. rem **********************************************************************
  34. rem Define the box-graphic characters
  35. rem **********************************************************************
  36.  
  37. delete from crtbox where crtname='IADANSI';
  38. insert into crtbox values ('IADANSI', 'Y', 'x', 'q', 'a', 'k', 'b', 'j',
  39.     't', 'c', 'w', 'v', 'd', '|', '-', '+', '+', '+', '+', '+', '+', '+',
  40.     '+', '+')
  41. /
  42.  
  43. rem **********************************************************************
  44. rem Define the function keys
  45. rem **********************************************************************
  46.  
  47. DELETE FROM esc WHERE NAME='IADANSI';
  48. insert into esc select prod_code, 'IADANSI', func, escseq, comments
  49.                   from esc
  50.                  where name='PCBIOS';
  51. commit
  52.