onvert a termcap description into a terminfo descriptio


SUBMITTED BY: Guest

DATE: June 2, 2014, 1:23 p.m.

FORMAT: Text only

SIZE: 4.1 kB

HITS: 5832

  1. NAME
  2. captoinfo - convert a termcap description into a terminfo description
  3. SYNOPSIS
  4. captoinfo [-vn width] [-V] [-1] [-w width] file . . .
  5. DESCRIPTION
  6. captoinfo looks in file for termcap descriptions. For each one found, an equivalent terminfo description is written to standard output. Termcap tc capabilities are translated directly to terminfo use capabilities.
  7. If no file is given, then the environment variable TERMCAP is used for the filename or entry. If TERMCAP is a full pathname to a file, only the terminal whose name is specified in the environment variable TERM is extracted from that file. If the environment variable TERMCAP is not set, then the file /usr/share/terminfo is read.
  8. -v
  9. print out tracing information on standard error as the program runs.
  10. -V
  11. print out the version of the program in use on standard error and exit.
  12. -1
  13. cause the fields to print out one to a line. Otherwise, the fields will be printed several to a line to a maximum width of 60 characters.
  14. -w
  15. change the output to width characters.
  16. FILES
  17. /usr/share/terminfo
  18. Compiled terminal description database.
  19. TRANSLATIONS FROM NONSTANDARD CAPABILITIES
  20. Some obsolete nonstandard capabilities will automatically be translated into standard (SVr4/XSI Curses) terminfo capabilities by captoinfo. Whenever one of these automatic translations is done, the program will issue an notification to stderr, inviting the user to check that it has not mistakenly translated a completely unknown and random capability and/or syntax error.
  21. Nonstd Std From Terminfo
  22. name name capability
  23. BO mr AT&T enter_reverse_mode
  24. CI vi AT&T cursor_invisible
  25. CV ve AT&T cursor_normal
  26. DS mh AT&T enter_dim_mode
  27. EE me AT&T exit_attribute_mode
  28. FE LF AT&T label_on
  29. FL LO AT&T label_off
  30. XS mk AT&T enter_secure_mode
  31. EN @7 XENIX key_end
  32. GE ae XENIX exit_alt_charset_mode
  33. GS as XENIX enter_alt_charset_mode
  34. HM kh XENIX key_home
  35. LD kL XENIX key_dl
  36. PD kN XENIX key_npage
  37. PN po XENIX prtr_off
  38. PS pf XENIX prtr_on
  39. PU kP XENIX key_ppage
  40. RT @8 XENIX kent
  41. UP ku XENIX kcuu1
  42. KA k; Tek key_f10
  43. KB F1 Tek key_f11
  44. KC F2 Tek key_f12
  45. KD F3 Tek key_f13
  46. KE F4 Tek key_f14
  47. KF F5 Tek key_f15
  48. BC Sb Tek set_background
  49. FC Sf Tek set_foreground
  50. HS mh Iris enter_dim_mode
  51. XENIX termcap also used to have a set of extension capabilities for forms drawing, designed to take advantage of the IBM PC high-half graphics. They were as follows:
  52. Cap Graphic
  53. G2 upper left
  54. G3 lower left
  55. G1 upper right
  56. G4 lower right
  57. GR pointing right
  58. GL pointing left
  59. GU pointing up
  60. GD pointing down
  61. GH horizontal line
  62. GV vertical line
  63. GC intersection
  64. G6 upper left
  65. G7 lower left
  66. G5 upper right
  67. G8 lower right
  68. Gr tee pointing right
  69. Gr tee pointing left
  70. Gu tee pointing up
  71. Gd tee pointing down
  72. Gh horizontal line
  73. Gv vertical line
  74. Gc intersection
  75. GG acs magic cookie count
  76. If the single-line capabilities occur in an entry, they will automatically be composed into an acsc string. The double-line capabilities and GG are discarded with a warning message.
  77. IBM's AIX has a terminfo facility descended from SVr1 terminfo but incompatible with the SVr4 format. The following AIX extensions are automatically translated:
  78. IBM XSI
  79. ksel kslt
  80. kbtab kcbt
  81. font0 s0ds
  82. font1 s1ds
  83. font2 s2ds
  84. font3 s3ds
  85. Additionally, the AIX box1 capability will be automatically translated to an acsc string.
  86. Hewlett-Packard's terminfo library supports two nonstandard terminfo capabilities meml (memory lock) and memu (memory unlock). These will be discarded with a warning message.
  87. NOTES
  88. This utility is actually a link to tic(1M), running in -I mode. You can use other tic options such as -f and -x.
  89. The trace option isn't identical to SVr4's. Under SVr4, instead of following the -v with a trace level n, you repeat it n times.

comments powered by Disqus