home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / termcap-1.3-diffs.gz / termcap-1.3-diffs
Text File  |  1996-10-13  |  240KB  |  6,706 lines

  1. This file contains patches that transform the baseline version into
  2. the amiga version.  Assuming that you have unarchived the baseline
  3. version in the current directory, just run the command:
  4.  
  5.     patch -p1 -E -b .pbak <diff-file
  6.  
  7. where 'diff-file' is this patch file.  After running patch you should
  8. remove all the generated *.pbak files, and look for any *.rej files
  9. that indicate a problem patching the baseline source.
  10.  
  11. diff -rup --new-file baseline/fsf/termcap/Makefile.in amiga/fsf/termcap/Makefile.in
  12. --- baseline/fsf/termcap/Makefile.in    Wed Aug 16 17:54:29 1995
  13. +++ amiga/fsf/termcap/Makefile.in    Sat Sep 28 00:00:00 1996
  14. @@ -21,7 +21,8 @@ srcdir = @srcdir@
  15.  VPATH = @srcdir@
  16.  
  17.  CC = @CC@
  18. -AR = ar
  19. +AR = @AR@
  20. +AR_FLAGS = rc
  21.  RANLIB = @RANLIB@
  22.  
  23.  INSTALL = @INSTALL@
  24. @@ -31,7 +32,7 @@ MAKEINFO = makeinfo
  25.  
  26.  DEFS = @DEFS@ -DTERMCAP_FILE=\"$(termcapfile)\"
  27.  
  28. -CFLAGS = -g
  29. +CFLAGS = @CFLAGS@
  30.  
  31.  prefix = @prefix@
  32.  exec_prefix = @exec_prefix@
  33. @@ -46,7 +47,7 @@ includedir = $(prefix)/include
  34.  # so compilers besides gcc can find it by default.
  35.  # If it is empty or not defined, termcap.h will only be installed in
  36.  # includedir. 
  37. -oldincludedir = /usr/include
  38. +oldincludedir =
  39.  
  40.  # Directory in which to install the documentation info files.
  41.  infodir = $(prefix)/info
  42. @@ -68,6 +69,9 @@ texinfo.tex Makefile.in configure config
  43.  
  44.  all:    libtermcap.a info
  45.  
  46. +check:
  47. +    cd tests && make all
  48. +
  49.  .c.o:
  50.      $(CC) -c $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) $(CFLAGS) $<
  51.  
  52. @@ -77,7 +81,7 @@ install: all installdirs @installdata@
  53.      cd $(srcdir); $(INSTALL_DATA) termcap.h $(includedir)/termcap.h
  54.      -cd $(srcdir); test -z "$(oldincludedir)" || \
  55.        $(INSTALL_DATA) termcap.h $(oldincludedir)/termcap.h
  56. -    cd $(srcdir); for f in termcap.info*; \
  57. +    for f in termcap.info*; \
  58.      do $(INSTALL_DATA) $$f $(infodir)/$$f; done
  59.  
  60.  uninstall: @uninstalldata@
  61. @@ -105,13 +109,13 @@ configure: configure.in
  62.      cd $(srcdir) && autoconf
  63.  
  64.  libtermcap.a: $(OBJS)
  65. -    $(AR) rc $@ $(OBJS)
  66. -    -$(RANLIB) $@
  67. +    $(AR) $(AR_FLAGS) $@ $(OBJS)
  68. +    $(RANLIB) $@
  69.  
  70.  info: termcap.info
  71.  
  72.  termcap.info: termcap.texi
  73. -    $(MAKEINFO) $(srcdir)/termcap.texi --output=$@
  74. +    $(MAKEINFO) -I$(srcdir) $(srcdir)/termcap.texi --output=$@
  75.  
  76.  TAGS:    $(SRCS)
  77.      etags $(SRCS)
  78. diff -rup --new-file baseline/fsf/termcap/Product-Info amiga/fsf/termcap/Product-Info
  79. --- baseline/fsf/termcap/Product-Info    Wed Dec 31 17:00:00 1969
  80. +++ amiga/fsf/termcap/Product-Info    Sat Oct 12 13:32:52 1996
  81. @@ -0,0 +1,22 @@
  82. +.name
  83. +termcap
  84. +.fullname
  85. +GNU termcap library
  86. +.type
  87. +Library
  88. +.short
  89. +GNU termcap library.
  90. +.description
  91. +This is the GNU termcap library, a library of C functions that enable
  92. +programs to send control strings to terminals in a way independent of
  93. +the terminal type.  Most of this package is also distributed with GNU
  94. +Emacs, but it is available in this separate distribution to make it
  95. +easier to install as -ltermcap.
  96. +.version
  97. +1.3
  98. +.author
  99. +Free Software Foundation
  100. +.distribution
  101. +GNU Public License
  102. +.described-by
  103. +Fred Fish (fnf@amigalib.com)
  104. diff -rup --new-file baseline/fsf/termcap/config.guess amiga/fsf/termcap/config.guess
  105. --- baseline/fsf/termcap/config.guess    Wed Dec 31 17:00:00 1969
  106. +++ amiga/fsf/termcap/config.guess    Sat Sep 28 00:00:00 1996
  107. @@ -0,0 +1,600 @@
  108. +#! /bin/sh
  109. +# Attempt to guess a canonical system name.
  110. +#   Copyright (C) 1992, 93, 94, 95, 1996 Free Software Foundation, Inc.
  111. +#
  112. +# This file is free software; you can redistribute it and/or modify it
  113. +# under the terms of the GNU General Public License as published by
  114. +# the Free Software Foundation; either version 2 of the License, or
  115. +# (at your option) any later version.
  116. +#
  117. +# This program is distributed in the hope that it will be useful, but
  118. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  119. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  120. +# General Public License for more details.
  121. +#
  122. +# You should have received a copy of the GNU General Public License
  123. +# along with this program; if not, write to the Free Software
  124. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  125. +#
  126. +# As a special exception to the GNU General Public License, if you
  127. +# distribute this file as part of a program that contains a
  128. +# configuration script generated by Autoconf, you may include it under
  129. +# the same distribution terms that you use for the rest of that program.
  130. +
  131. +# Written by Per Bothner <bothner@cygnus.com>.
  132. +# The master version of this file is at the FSF in /home/gd/gnu/lib.
  133. +#
  134. +# This script attempts to guess a canonical system name similar to
  135. +# config.sub.  If it succeeds, it prints the system name on stdout, and
  136. +# exits with 0.  Otherwise, it exits with 1.
  137. +#
  138. +# The plan is that this can be called by configure scripts if you
  139. +# don't specify an explicit system type (host/target name).
  140. +#
  141. +# Only a few systems have been added to this list; please add others
  142. +# (but try to keep the structure clean).
  143. +#
  144. +
  145. +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  146. +# (ghazi@noc.rutgers.edu 8/24/94.)
  147. +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
  148. +    PATH=$PATH:/.attbin ; export PATH
  149. +fi
  150. +
  151. +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
  152. +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
  153. +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  154. +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  155. +
  156. +trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15
  157. +
  158. +# Note: order is significant - the case branches are not exclusive.
  159. +
  160. +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  161. +    alpha:OSF1:*:*)
  162. +    # A Vn.n version is a released version.
  163. +    # A Tn.n version is a released field test version.
  164. +    # A Xn.n version is an unreleased experimental baselevel.
  165. +    # 1.2 uses "1.2" for uname -r.
  166. +    echo alpha-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//'`
  167. +    exit 0 ;;
  168. +    21064:Windows_NT:50:3)
  169. +    echo alpha-dec-winnt3.5
  170. +    exit 0 ;;
  171. +    Amiga*:UNIX_System_V:4.0:*)
  172. +    echo m68k-cbm-sysv4
  173. +    exit 0;;
  174. +    amiga:NetBSD:*:*)
  175. +      echo m68k-cbm-netbsd${UNAME_RELEASE}
  176. +      exit 0 ;;
  177. +    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  178. +    echo arm-acorn-riscix${UNAME_RELEASE}
  179. +    exit 0;;
  180. +    Pyramid*:OSx*:*:*)
  181. +    if test "`(/bin/universe) 2>/dev/null`" = att ; then
  182. +        echo pyramid-pyramid-sysv3
  183. +    else
  184. +        echo pyramid-pyramid-bsd
  185. +    fi
  186. +    exit 0 ;;
  187. +    sun4*:SunOS:5.*:*)
  188. +    echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  189. +    exit 0 ;;
  190. +    i86pc:SunOS:5.*:*)
  191. +    echo i386-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  192. +    exit 0 ;;
  193. +    sun4*:SunOS:6*:*)
  194. +    # According to config.sub, this is the proper way to canonicalize
  195. +    # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
  196. +    # it's likely to be more like Solaris than SunOS4.
  197. +    echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  198. +    exit 0 ;;
  199. +    sun4*:SunOS:*:*)
  200. +    case "`/usr/bin/arch -k`" in
  201. +        Series*|S4*)
  202. +        UNAME_RELEASE=`uname -v`
  203. +        ;;
  204. +    esac
  205. +    # Japanese Language versions have a version number like `4.1.3-JL'.
  206. +    echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
  207. +    exit 0 ;;
  208. +    sun3*:SunOS:*:*)
  209. +    echo m68k-sun-sunos${UNAME_RELEASE}
  210. +    exit 0 ;;
  211. +    atari*:NetBSD:*:*)
  212. +    echo m68k-atari-netbsd${UNAME_RELEASE}
  213. +    exit 0 ;;
  214. +    sun3*:NetBSD:*:*)
  215. +    echo m68k-sun-netbsd${UNAME_RELEASE}
  216. +    exit 0 ;;
  217. +    mac68k:NetBSD:*:*)
  218. +    echo m68k-apple-netbsd${UNAME_RELEASE}
  219. +    exit 0 ;;
  220. +    RISC*:ULTRIX:*:*)
  221. +    echo mips-dec-ultrix${UNAME_RELEASE}
  222. +    exit 0 ;;
  223. +    VAX*:ULTRIX*:*:*)
  224. +    echo vax-dec-ultrix${UNAME_RELEASE}
  225. +    exit 0 ;;
  226. +    mips:*:4*:UMIPS)
  227. +    echo mips-mips-riscos4sysv
  228. +    exit 0 ;;
  229. +    mips:*:5*:RISCos)
  230. +    echo mips-mips-riscos${UNAME_RELEASE}
  231. +    exit 0 ;;
  232. +    Night_Hawk:Power_UNIX:*:*)
  233. +    echo powerpc-harris-powerunix
  234. +    exit 0 ;;
  235. +    m88k:CX/UX:7*:*)
  236. +    echo m88k-harris-cxux7
  237. +    exit 0 ;;
  238. +    m88k:*:4*:R4*)
  239. +    echo m88k-motorola-sysv4
  240. +    exit 0 ;;
  241. +    m88k:*:3*:R3*)
  242. +    echo m88k-motorola-sysv3
  243. +    exit 0 ;;
  244. +    AViiON:dgux:*:*)
  245. +        # DG/UX returns AViiON for all architectures
  246. +        UNAME_PROCESSOR=`/usr/bin/uname -p`
  247. +        if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88100 ] ; then
  248. +    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \
  249. +         -o ${TARGET_BINARY_INTERFACE}x = x ] ; then
  250. +        echo m88k-dg-dgux${UNAME_RELEASE}
  251. +    else
  252. +        echo m88k-dg-dguxbcs${UNAME_RELEASE}
  253. +    fi
  254. +        else echo i586-dg-dgux${UNAME_RELEASE}
  255. +        fi
  256. +     exit 0 ;;
  257. +    M88*:DolphinOS:*:*)    # DolphinOS (SVR3)
  258. +    echo m88k-dolphin-sysv3
  259. +    exit 0 ;;
  260. +    M88*:*:R3*:*)
  261. +    # Delta 88k system running SVR3
  262. +    echo m88k-motorola-sysv3
  263. +    exit 0 ;;
  264. +    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
  265. +    echo m88k-tektronix-sysv3
  266. +    exit 0 ;;
  267. +    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
  268. +    echo m68k-tektronix-bsd
  269. +    exit 0 ;;
  270. +    *:IRIX*:*:*)
  271. +    echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
  272. +    exit 0 ;;
  273. +   ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  274. +    echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
  275. +    exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
  276. +    i[34]86:AIX:*:*)
  277. +    echo i386-ibm-aix
  278. +    exit 0 ;;
  279. +    *:AIX:2:3)
  280. +    if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  281. +        sed 's/^        //' << EOF >dummy.c
  282. +        #include <sys/systemcfg.h>
  283. +
  284. +        main()
  285. +            {
  286. +            if (!__power_pc())
  287. +                exit(1);
  288. +            puts("powerpc-ibm-aix3.2.5");
  289. +            exit(0);
  290. +            }
  291. +EOF
  292. +        ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
  293. +        rm -f dummy.c dummy
  294. +        echo rs6000-ibm-aix3.2.5
  295. +    elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  296. +        echo rs6000-ibm-aix3.2.4
  297. +    else
  298. +        echo rs6000-ibm-aix3.2
  299. +    fi
  300. +    exit 0 ;;
  301. +    *:AIX:*:4)
  302. +    if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then
  303. +        IBM_ARCH=rs6000
  304. +    else
  305. +        IBM_ARCH=powerpc
  306. +    fi
  307. +    if [ -x /usr/bin/oslevel ] ; then
  308. +        IBM_REV=`/usr/bin/oslevel`
  309. +    else
  310. +        IBM_REV=4.${UNAME_RELEASE}
  311. +    fi
  312. +    echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  313. +    exit 0 ;;
  314. +    *:AIX:*:*)
  315. +    echo rs6000-ibm-aix
  316. +    exit 0 ;;
  317. +    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  318. +    echo romp-ibm-bsd4.4
  319. +    exit 0 ;;
  320. +    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC NetBSD and
  321. +    echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to 
  322. +    exit 0 ;;                           # report: romp-ibm BSD 4.3
  323. +    *:BOSX:*:*)
  324. +    echo rs6000-bull-bosx
  325. +    exit 0 ;;
  326. +    DPX/2?00:B.O.S.:*:*)
  327. +    echo m68k-bull-sysv3
  328. +    exit 0 ;;
  329. +    9000/[34]??:4.3bsd:1.*:*)
  330. +    echo m68k-hp-bsd
  331. +    exit 0 ;;
  332. +    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  333. +    echo m68k-hp-bsd4.4
  334. +    exit 0 ;;
  335. +    9000/[3478]??:HP-UX:*:*)
  336. +    case "${UNAME_MACHINE}" in
  337. +        9000/31? )            HP_ARCH=m68000 ;;
  338. +        9000/[34]?? )         HP_ARCH=m68k ;;
  339. +        9000/7?? | 9000/8?[679] ) HP_ARCH=hppa1.1 ;;
  340. +        9000/8?? )            HP_ARCH=hppa1.0 ;;
  341. +    esac
  342. +    HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  343. +    echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  344. +    exit 0 ;;
  345. +    3050*:HI-UX:*:*)
  346. +    sed 's/^    //' << EOF >dummy.c
  347. +    #include <unistd.h>
  348. +    int
  349. +    main ()
  350. +    {
  351. +      long cpu = sysconf (_SC_CPU_VERSION);
  352. +      /* The order matters, because CPU_IS_HP_MC68K erroneously returns
  353. +         true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
  354. +         results, however.  */
  355. +      if (CPU_IS_PA_RISC (cpu))
  356. +        {
  357. +          switch (cpu)
  358. +        {
  359. +          case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
  360. +          case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
  361. +          case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
  362. +          default: puts ("hppa-hitachi-hiuxwe2"); break;
  363. +        }
  364. +        }
  365. +      else if (CPU_IS_HP_MC68K (cpu))
  366. +        puts ("m68k-hitachi-hiuxwe2");
  367. +      else puts ("unknown-hitachi-hiuxwe2");
  368. +      exit (0);
  369. +    }
  370. +EOF
  371. +    ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
  372. +    rm -f dummy.c dummy
  373. +    echo unknown-hitachi-hiuxwe2
  374. +    exit 0 ;;
  375. +    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  376. +    echo hppa1.1-hp-bsd
  377. +    exit 0 ;;
  378. +    9000/8??:4.3bsd:*:*)
  379. +    echo hppa1.0-hp-bsd
  380. +    exit 0 ;;
  381. +    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  382. +    echo hppa1.1-hp-osf
  383. +    exit 0 ;;
  384. +    hp8??:OSF1:*:*)
  385. +    echo hppa1.0-hp-osf
  386. +    exit 0 ;;
  387. +    parisc*:Lites*:*:*)
  388. +    echo hppa1.1-hp-lites
  389. +    exit 0 ;;
  390. +    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  391. +    echo c1-convex-bsd
  392. +        exit 0 ;;
  393. +    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  394. +    if getsysinfo -f scalar_acc
  395. +    then echo c32-convex-bsd
  396. +    else echo c2-convex-bsd
  397. +    fi
  398. +        exit 0 ;;
  399. +    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  400. +    echo c34-convex-bsd
  401. +        exit 0 ;;
  402. +    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  403. +    echo c38-convex-bsd
  404. +        exit 0 ;;
  405. +    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  406. +    echo c4-convex-bsd
  407. +        exit 0 ;;
  408. +    CRAY*X-MP:*:*:*)
  409. +    echo xmp-cray-unicos
  410. +        exit 0 ;;
  411. +    CRAY*Y-MP:*:*:*)
  412. +    echo ymp-cray-unicos${UNAME_RELEASE}
  413. +    exit 0 ;;
  414. +    CRAY*C90:*:*:*)
  415. +    echo c90-cray-unicos${UNAME_RELEASE}
  416. +    exit 0 ;;
  417. +    CRAY-2:*:*:*)
  418. +    echo cray2-cray-unicos
  419. +        exit 0 ;;
  420. +    hp3[0-9][05]:NetBSD:*:*)
  421. +    echo m68k-hp-netbsd${UNAME_RELEASE}
  422. +    exit 0 ;;
  423. +    i[34]86:BSD/386:*:* | *:BSD/OS:*:*)
  424. +    echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  425. +    exit 0 ;;
  426. +    *:FreeBSD:*:*)
  427. +    echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  428. +    exit 0 ;;
  429. +    *:NetBSD:*:*)
  430. +    echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  431. +    exit 0 ;;
  432. +    i*:CYGWIN*:*)
  433. +    echo i386-unknown-cygwin32
  434. +    exit 0 ;;
  435. +    p*:CYGWIN*:*)
  436. +    echo powerpcle-unknown-cygwin32
  437. +    exit 0 ;;
  438. +    prep*:SunOS:5.*:*)
  439. +    echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  440. +    exit 0 ;;
  441. +    *:GNU:*:*)
  442. +    echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  443. +    exit 0 ;;
  444. +    *:Linux:*:*)
  445. +    # The BFD linker knows what the default object file format is, so
  446. +    # first see if it will tell us.
  447. +    ld_help_string=`ld --help 2>&1`
  448. +    if echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf_i[345]86"; then
  449. +      echo "${UNAME_MACHINE}-unknown-linux" ; exit 0
  450. +    elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i[345]86linux"; then
  451. +      echo "${UNAME_MACHINE}-unknown-linuxaout" ; exit 0
  452. +    elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i[345]86coff"; then
  453. +      echo "${UNAME_MACHINE}-unknown-linuxcoff" ; exit 0
  454. +    elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68kelf"; then
  455. +      echo "${UNAME_MACHINE}-unknown-linux" ; exit 0
  456. +    elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68klinux"; then
  457. +      echo "${UNAME_MACHINE}-unknown-linuxaout" ; exit 0
  458. +    elif test "${UNAME_MACHINE}" = "alpha" ; then
  459. +      echo alpha-unknown-linux ; exit 0
  460. +    else
  461. +      # Either a pre-BFD a.out linker (linuxoldld) or one that does not give us
  462. +      # useful --help.  Gcc wants to distinguish between linuxoldld and linuxaout.
  463. +      test ! -d /usr/lib/ldscripts/. \
  464. +        && echo "${UNAME_MACHINE}-unknown-linuxoldld" && exit 0
  465. +      # Determine whether the default compiler is a.out or elf
  466. +      cat >dummy.c <<EOF
  467. +main(argc, argv)
  468. +int argc;
  469. +char *argv[];
  470. +{
  471. +#ifdef __ELF__
  472. +  printf ("%s-unknown-linux\n", argv[1]);
  473. +#else
  474. +  printf ("%s-unknown-linuxaout\n", argv[1]);
  475. +#endif
  476. +  return 0;
  477. +}
  478. +EOF
  479. +      ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
  480. +      rm -f dummy.c dummy
  481. +    fi ;;
  482. +# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.  earlier versions
  483. +# are messed up and put the nodename in both sysname and nodename.
  484. +    i[34]86:DYNIX/ptx:4*:*)
  485. +    echo i386-sequent-sysv4
  486. +    exit 0 ;;
  487. +    i[34]86:*:4.*:* | i[34]86:SYSTEM_V:4.*:*)
  488. +    if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  489. +        echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
  490. +    else
  491. +        echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}
  492. +    fi
  493. +    exit 0 ;;
  494. +    i[34]86:*:3.2:*)
  495. +    if test -f /usr/options/cb.name; then
  496. +        UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  497. +        echo ${UNAME_MACHINE}-unknown-isc$UNAME_REL
  498. +    elif /bin/uname -X 2>/dev/null >/dev/null ; then
  499. +        UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
  500. +        (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
  501. +        (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
  502. +            && UNAME_MACHINE=i586
  503. +        echo ${UNAME_MACHINE}-unknown-sco$UNAME_REL
  504. +    else
  505. +        echo ${UNAME_MACHINE}-unknown-sysv32
  506. +    fi
  507. +    exit 0 ;;
  508. +    Intel:Mach:3*:*)
  509. +    echo i386-unknown-mach3
  510. +    exit 0 ;;
  511. +    paragon:*:*:*)
  512. +    echo i860-intel-osf1
  513. +    exit 0 ;;
  514. +    i860:*:4.*:*) # i860-SVR4
  515. +    if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  516. +      echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  517. +    else # Add other i860-SVR4 vendors below as they are discovered.
  518. +      echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
  519. +    fi
  520. +    exit 0 ;;
  521. +    mini*:CTIX:SYS*5:*)
  522. +    # "miniframe"
  523. +    echo m68010-convergent-sysv
  524. +    exit 0 ;;
  525. +    M680[234]0:*:R3V[567]*:*)
  526. +    test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
  527. +    3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0)
  528. +        uname -p 2>/dev/null | grep 86 >/dev/null \
  529. +          && echo i486-ncr-sysv4.3 && exit 0 ;;
  530. +    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  531. +        uname -p 2>/dev/null | grep 86 >/dev/null \
  532. +          && echo i486-ncr-sysv4 && exit 0 ;;
  533. +    m680[234]0:LynxOS:2.[23]*:*)
  534. +    echo m68k-lynx-lynxos${UNAME_RELEASE}
  535. +    exit 0 ;;
  536. +    mc68030:UNIX_System_V:4.*:*)
  537. +    echo m68k-atari-sysv4
  538. +    exit 0 ;;
  539. +    i[34]86:LynxOS:2.[23]*:*)
  540. +    echo i386-lynx-lynxos${UNAME_RELEASE}
  541. +    exit 0 ;;
  542. +    TSUNAMI:LynxOS:2.[23]*:*)
  543. +    echo sparc-lynx-lynxos${UNAME_RELEASE}
  544. +    exit 0 ;;
  545. +    rs6000:LynxOS:2.[23]*:*)
  546. +    echo rs6000-lynx-lynxos${UNAME_RELEASE}
  547. +    exit 0 ;;
  548. +    RM*:SINIX-*:*:*)
  549. +    echo mips-sni-sysv4
  550. +    exit 0 ;;
  551. +    *:SINIX-*:*:*)
  552. +    if uname -p 2>/dev/null >/dev/null ; then
  553. +        UNAME_MACHINE=`(uname -p) 2>/dev/null`
  554. +        echo ${UNAME_MACHINE}-sni-sysv4
  555. +    else
  556. +        echo ns32k-sni-sysv
  557. +    fi
  558. +    exit 0 ;;
  559. +    mc68*:A/UX:*:*)
  560. +    echo m68k-apple-aux${UNAME_RELEASE}
  561. +    exit 0 ;;
  562. +    R3000:*System_V*:*:*)
  563. +    if [ -d /usr/nec ]; then
  564. +            echo mips-nec-sysv${UNAME_RELEASE}
  565. +    else
  566. +            echo mips-unknown-sysv${UNAME_RELEASE}
  567. +    fi
  568. +        exit 0 ;;
  569. +esac
  570. +
  571. +#echo '(No uname command or uname output not recognized.)' 1>&2
  572. +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  573. +
  574. +cat >dummy.c <<EOF
  575. +#ifdef _SEQUENT_
  576. +# include <sys/types.h>
  577. +# include <sys/utsname.h>
  578. +#endif
  579. +main ()
  580. +{
  581. +#if defined (sony)
  582. +#if defined (MIPSEB)
  583. +  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
  584. +     I don't know....  */
  585. +  printf ("mips-sony-bsd\n"); exit (0);
  586. +#else
  587. +#include <sys/param.h>
  588. +  printf ("m68k-sony-newsos%s\n",
  589. +#ifdef NEWSOS4
  590. +          "4"
  591. +#else
  592. +      ""
  593. +#endif
  594. +         ); exit (0);
  595. +#endif
  596. +#endif
  597. +
  598. +#if defined (__arm) && defined (__acorn) && defined (__unix)
  599. +  printf ("arm-acorn-riscix"); exit (0);
  600. +#endif
  601. +
  602. +#if defined (hp300) && !defined (hpux)
  603. +  printf ("m68k-hp-bsd\n"); exit (0);
  604. +#endif
  605. +
  606. +#if defined (NeXT)
  607. +#if !defined (__ARCHITECTURE__)
  608. +#define __ARCHITECTURE__ "m68k"
  609. +#endif
  610. +  int version;
  611. +  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  612. +  printf ("%s-next-nextstep%s\n", __ARCHITECTURE__,  version==2 ? "2" : "3");
  613. +  exit (0);
  614. +#endif
  615. +
  616. +#if defined (MULTIMAX) || defined (n16)
  617. +#if defined (UMAXV)
  618. +  printf ("ns32k-encore-sysv\n"); exit (0);
  619. +#else
  620. +#if defined (CMU)
  621. +  printf ("ns32k-encore-mach\n"); exit (0);
  622. +#else
  623. +  printf ("ns32k-encore-bsd\n"); exit (0);
  624. +#endif
  625. +#endif
  626. +#endif
  627. +
  628. +#if defined (__386BSD__)
  629. +  printf ("i386-unknown-bsd\n"); exit (0);
  630. +#endif
  631. +
  632. +#if defined (sequent)
  633. +#if defined (i386)
  634. +  printf ("i386-sequent-dynix\n"); exit (0);
  635. +#endif
  636. +#if defined (ns32000)
  637. +  printf ("ns32k-sequent-dynix\n"); exit (0);
  638. +#endif
  639. +#endif
  640. +
  641. +#if defined (_SEQUENT_)
  642. +    struct utsname un;
  643. +
  644. +    uname(&un);
  645. +
  646. +    if (strncmp(un.version, "V2", 2) == 0) {
  647. +    printf ("i386-sequent-ptx2\n"); exit (0);
  648. +    }
  649. +    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
  650. +    printf ("i386-sequent-ptx1\n"); exit (0);
  651. +    }
  652. +    printf ("i386-sequent-ptx\n"); exit (0);
  653. +
  654. +#endif
  655. +
  656. +#if defined (vax)
  657. +#if !defined (ultrix)
  658. +  printf ("vax-dec-bsd\n"); exit (0);
  659. +#else
  660. +  printf ("vax-dec-ultrix\n"); exit (0);
  661. +#endif
  662. +#endif
  663. +
  664. +#if defined (alliant) && defined (i860)
  665. +  printf ("i860-alliant-bsd\n"); exit (0);
  666. +#endif
  667. +
  668. +  exit (1);
  669. +}
  670. +EOF
  671. +
  672. +${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0
  673. +rm -f dummy.c dummy
  674. +
  675. +# Apollos put the system type in the environment.
  676. +
  677. +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
  678. +
  679. +# Convex versions that predate uname can use getsysinfo(1)
  680. +
  681. +if [ -x /usr/convex/getsysinfo ]
  682. +then
  683. +    case `getsysinfo -f cpu_type` in
  684. +    c1*)
  685. +    echo c1-convex-bsd
  686. +    exit 0 ;;
  687. +    c2*)
  688. +    if getsysinfo -f scalar_acc
  689. +    then echo c32-convex-bsd
  690. +    else echo c2-convex-bsd
  691. +    fi
  692. +    exit 0 ;;
  693. +    c34*)
  694. +    echo c34-convex-bsd
  695. +    exit 0 ;;
  696. +    c38*)
  697. +    echo c38-convex-bsd
  698. +    exit 0 ;;
  699. +    c4*)
  700. +    echo c4-convex-bsd
  701. +    exit 0 ;;
  702. +    esac
  703. +fi
  704. +
  705. +#echo '(Unable to guess system type)' 1>&2
  706. +
  707. +exit 1
  708. diff -rup --new-file baseline/fsf/termcap/config.sub amiga/fsf/termcap/config.sub
  709. --- baseline/fsf/termcap/config.sub    Wed Dec 31 17:00:00 1969
  710. +++ amiga/fsf/termcap/config.sub    Sat Sep 28 00:00:00 1996
  711. @@ -0,0 +1,867 @@
  712. +#! /bin/sh
  713. +# Configuration validation subroutine script, version 1.1.
  714. +#   Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
  715. +# This file is (in principle) common to ALL GNU software.
  716. +# The presence of a machine in this file suggests that SOME GNU software
  717. +# can handle that machine.  It does not imply ALL GNU software can. 
  718. +#
  719. +# This file is free software; you can redistribute it and/or modify
  720. +# it under the terms of the GNU General Public License as published by
  721. +# the Free Software Foundation; either version 2 of the License, or
  722. +# (at your option) any later version.
  723. +#
  724. +# This program is distributed in the hope that it will be useful,
  725. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  726. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  727. +# GNU General Public License for more details.
  728. +#
  729. +# You should have received a copy of the GNU General Public License
  730. +# along with this program; if not, write to the Free Software
  731. +# Foundation, Inc., 59 Temple Place - Suite 330,
  732. +# Boston, MA 02111-1307, USA.
  733. +
  734. +# As a special exception to the GNU General Public License, if you
  735. +# distribute this file as part of a program that contains a
  736. +# configuration script generated by Autoconf, you may include it under
  737. +# the same distribution terms that you use for the rest of that program.
  738. +
  739. +# Configuration subroutine to validate and canonicalize a configuration type.
  740. +# Supply the specified configuration type as an argument.
  741. +# If it is invalid, we print an error message on stderr and exit with code 1.
  742. +# Otherwise, we print the canonical config type on stdout and succeed.
  743. +
  744. +# This file is supposed to be the same for all GNU packages
  745. +# and recognize all the CPU types, system types and aliases
  746. +# that are meaningful with *any* GNU software.
  747. +# Each package is responsible for reporting which valid configurations
  748. +# it does not support.  The user should be able to distinguish
  749. +# a failure to support a valid configuration from a meaningless
  750. +# configuration.
  751. +
  752. +# The goal of this file is to map all the various variations of a given
  753. +# machine specification into a single specification in the form:
  754. +#    CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
  755. +# It is wrong to echo any other type of specification.
  756. +
  757. +if [ x$1 = x ]
  758. +then
  759. +    echo Configuration name missing. 1>&2
  760. +    echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
  761. +    echo "or     $0 ALIAS" 1>&2
  762. +    echo where ALIAS is a recognized configuration type. 1>&2
  763. +    exit 1
  764. +fi
  765. +
  766. +# First pass through any local machine types.
  767. +case $1 in
  768. +    *local*)
  769. +        echo $1
  770. +        exit 0
  771. +        ;;
  772. +    *)
  773. +    ;;
  774. +esac
  775. +
  776. +# Separate what the user gave into CPU-COMPANY and OS (if any).
  777. +basic_machine=`echo $1 | sed 's/-[^-]*$//'`
  778. +if [ $basic_machine != $1 ]
  779. +then os=`echo $1 | sed 's/.*-/-/'`
  780. +else os=; fi
  781. +
  782. +### Let's recognize common machines as not being operating systems so
  783. +### that things like config.sub decstation-3100 work.  We also
  784. +### recognize some manufacturers as not being operating systems, so we
  785. +### can provide default operating systems below.
  786. +case $os in
  787. +    -sun*os*)
  788. +        # Prevent following clause from handling this invalid input.
  789. +        ;;
  790. +    -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
  791. +    -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
  792. +    -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
  793. +    -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
  794. +    -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
  795. +    -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp )
  796. +        os=
  797. +        basic_machine=$1
  798. +        ;;
  799. +    -hiux*)
  800. +        os=-hiuxwe2
  801. +        ;;
  802. +    -sco4)
  803. +        os=-sco3.2v4
  804. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
  805. +        ;;
  806. +    -sco3.2.[4-9]*)
  807. +        os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
  808. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
  809. +        ;;
  810. +    -sco3.2v[4-9]*)
  811. +        # Don't forget version if it is 3.2v4 or newer.
  812. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
  813. +        ;;
  814. +    -sco*)
  815. +        os=-sco3.2v2
  816. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
  817. +        ;;
  818. +    -isc)
  819. +        os=-isc2.2
  820. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
  821. +        ;;
  822. +    -clix*)
  823. +        basic_machine=clipper-intergraph
  824. +        ;;
  825. +    -isc*)
  826. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
  827. +        ;;
  828. +    -lynx*)
  829. +        os=-lynxos
  830. +        ;;
  831. +    -ptx*)
  832. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
  833. +        ;;
  834. +    -windowsnt*)
  835. +        os=`echo $os | sed -e 's/windowsnt/winnt/'`
  836. +        ;;
  837. +esac
  838. +
  839. +# Decode aliases for certain CPU-COMPANY combinations.
  840. +case $basic_machine in
  841. +    # Recognize the basic CPU types without company name.
  842. +    # Some are omitted here because they have special meanings below.
  843. +    tahoe | i[345]86 | i860 | m68k | m68000 | m88k | ns32k | arm \
  844. +        | arme[lb] | pyramid \
  845. +        | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \
  846. +        | alpha | we32k | ns16k | clipper | sparclite | i370 | sh \
  847. +        | powerpc | powerpcle | sparc64 | 1750a | dsp16xx | mips64 | mipsel \
  848. +        | pdp11 | mips64el | mips64orion | mips64orionel \
  849. +        | sparc)
  850. +        basic_machine=$basic_machine-unknown
  851. +        ;;
  852. +    # Object if more than one company name word.
  853. +    *-*-*)
  854. +        echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  855. +        exit 1
  856. +        ;;
  857. +    # Recognize the basic CPU types with company name.
  858. +    vax-* | tahoe-* | i[345]86-* | i860-* | m68k-* | m68000-* | m88k-* \
  859. +          | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \
  860. +          | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* | power-* \
  861. +          | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
  862. +          | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \
  863. +          | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \
  864. +          | pdp11-* | sh-* | powerpc-* | powerpcle-* | sparc64-* | mips64-* | mipsel-* \
  865. +          | mips64el-* | mips64orion-* | mips64orionel-*)
  866. +        ;;
  867. +    # Recognize the various machine names and aliases which stand
  868. +    # for a CPU type and a company and sometimes even an OS.
  869. +    3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
  870. +        basic_machine=m68000-att
  871. +        ;;
  872. +    3b*)
  873. +        basic_machine=we32k-att
  874. +        ;;
  875. +    alliant | fx80)
  876. +        basic_machine=fx80-alliant
  877. +        ;;
  878. +    altos | altos3068)
  879. +        basic_machine=m68k-altos
  880. +        ;;
  881. +    am29k)
  882. +        basic_machine=a29k-none
  883. +        os=-bsd
  884. +        ;;
  885. +    amdahl)
  886. +        basic_machine=580-amdahl
  887. +        os=-sysv
  888. +        ;;
  889. +    amiga | amiga-*)
  890. +        basic_machine=m68k-unknown
  891. +        ;;
  892. +    amigaos)
  893. +        basic_machine=m68k-unknown
  894. +        os=-amigaos
  895. +        ;;
  896. +    amigaunix | amix)
  897. +        basic_machine=m68k-cbm
  898. +        os=-sysv4
  899. +        ;;
  900. +    apollo68)
  901. +        basic_machine=m68k-apollo
  902. +        os=-sysv
  903. +        ;;
  904. +    balance)
  905. +        basic_machine=ns32k-sequent
  906. +        os=-dynix
  907. +        ;;
  908. +    convex-c1)
  909. +        basic_machine=c1-convex
  910. +        os=-bsd
  911. +        ;;
  912. +    convex-c2)
  913. +        basic_machine=c2-convex
  914. +        os=-bsd
  915. +        ;;
  916. +    convex-c32)
  917. +        basic_machine=c32-convex
  918. +        os=-bsd
  919. +        ;;
  920. +    convex-c34)
  921. +        basic_machine=c34-convex
  922. +        os=-bsd
  923. +        ;;
  924. +    convex-c38)
  925. +        basic_machine=c38-convex
  926. +        os=-bsd
  927. +        ;;
  928. +    cray | ymp)
  929. +        basic_machine=ymp-cray
  930. +        os=-unicos
  931. +        ;;
  932. +    cray2)
  933. +        basic_machine=cray2-cray
  934. +        os=-unicos
  935. +        ;;
  936. +    crds | unos)
  937. +        basic_machine=m68k-crds
  938. +        ;;
  939. +    da30 | da30-*)
  940. +        basic_machine=m68k-da30
  941. +        ;;
  942. +    decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
  943. +        basic_machine=mips-dec
  944. +        ;;
  945. +    delta | 3300 | motorola-3300 | motorola-delta \
  946. +          | 3300-motorola | delta-motorola)
  947. +        basic_machine=m68k-motorola
  948. +        ;;
  949. +    delta88)
  950. +        basic_machine=m88k-motorola
  951. +        os=-sysv3
  952. +        ;;
  953. +    dpx20 | dpx20-*)
  954. +        basic_machine=rs6000-bull
  955. +        os=-bosx
  956. +        ;;
  957. +    dpx2* | dpx2*-bull)
  958. +        basic_machine=m68k-bull
  959. +        os=-sysv3
  960. +        ;;
  961. +    ebmon29k)
  962. +        basic_machine=a29k-amd
  963. +        os=-ebmon
  964. +        ;;
  965. +    elxsi)
  966. +        basic_machine=elxsi-elxsi
  967. +        os=-bsd
  968. +        ;;
  969. +    encore | umax | mmax)
  970. +        basic_machine=ns32k-encore
  971. +        ;;
  972. +    fx2800)
  973. +        basic_machine=i860-alliant
  974. +        ;;
  975. +    genix)
  976. +        basic_machine=ns32k-ns
  977. +        ;;
  978. +    gmicro)
  979. +        basic_machine=tron-gmicro
  980. +        os=-sysv
  981. +        ;;
  982. +    h3050r* | hiux*)
  983. +        basic_machine=hppa1.1-hitachi
  984. +        os=-hiuxwe2
  985. +        ;;
  986. +    h8300hms)
  987. +        basic_machine=h8300-hitachi
  988. +        os=-hms
  989. +        ;;
  990. +    harris)
  991. +        basic_machine=m88k-harris
  992. +        os=-sysv3
  993. +        ;;
  994. +    hp300-*)
  995. +        basic_machine=m68k-hp
  996. +        ;;
  997. +    hp300bsd)
  998. +        basic_machine=m68k-hp
  999. +        os=-bsd
  1000. +        ;;
  1001. +    hp300hpux)
  1002. +        basic_machine=m68k-hp
  1003. +        os=-hpux
  1004. +        ;;
  1005. +    hp9k2[0-9][0-9] | hp9k31[0-9])
  1006. +        basic_machine=m68000-hp
  1007. +        ;;
  1008. +    hp9k3[2-9][0-9])
  1009. +        basic_machine=m68k-hp
  1010. +        ;;
  1011. +    hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
  1012. +        basic_machine=hppa1.1-hp
  1013. +        ;;
  1014. +    hp9k8[0-9][0-9] | hp8[0-9][0-9])
  1015. +        basic_machine=hppa1.0-hp
  1016. +        ;;
  1017. +    i370-ibm* | ibm*)
  1018. +        basic_machine=i370-ibm
  1019. +        os=-mvs
  1020. +        ;;
  1021. +# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
  1022. +    i[345]86v32)
  1023. +        basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
  1024. +        os=-sysv32
  1025. +        ;;
  1026. +    i[345]86v4*)
  1027. +        basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
  1028. +        os=-sysv4
  1029. +        ;;
  1030. +    i[345]86v)
  1031. +        basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
  1032. +        os=-sysv
  1033. +        ;;
  1034. +    i[345]86sol2)
  1035. +        basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
  1036. +        os=-solaris2
  1037. +        ;;
  1038. +    iris | iris4d)
  1039. +        basic_machine=mips-sgi
  1040. +        case $os in
  1041. +            -irix*)
  1042. +            ;;
  1043. +            *)
  1044. +            os=-irix4
  1045. +            ;;
  1046. +        esac
  1047. +        ;;
  1048. +    isi68 | isi)
  1049. +        basic_machine=m68k-isi
  1050. +        os=-sysv
  1051. +        ;;
  1052. +    m88k-omron*)
  1053. +        basic_machine=m88k-omron
  1054. +        ;;
  1055. +    magnum | m3230)
  1056. +        basic_machine=mips-mips
  1057. +        os=-sysv
  1058. +        ;;
  1059. +    merlin)
  1060. +        basic_machine=ns32k-utek
  1061. +        os=-sysv
  1062. +        ;;
  1063. +    miniframe)
  1064. +        basic_machine=m68000-convergent
  1065. +        ;;
  1066. +    mips3*-*)
  1067. +        basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
  1068. +        ;;
  1069. +    mips3*)
  1070. +        basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
  1071. +        ;;
  1072. +    ncr3000)
  1073. +        basic_machine=i486-ncr
  1074. +        os=-sysv4
  1075. +        ;;
  1076. +    news | news700 | news800 | news900)
  1077. +        basic_machine=m68k-sony
  1078. +        os=-newsos
  1079. +        ;;
  1080. +    news1000)
  1081. +        basic_machine=m68030-sony
  1082. +        os=-newsos
  1083. +        ;;
  1084. +    news-3600 | risc-news)
  1085. +        basic_machine=mips-sony
  1086. +        os=-newsos
  1087. +        ;;
  1088. +    next | m*-next )
  1089. +        basic_machine=m68k-next
  1090. +        case $os in
  1091. +            -nextstep* )
  1092. +            ;;
  1093. +            -ns2*)
  1094. +              os=-nextstep2
  1095. +            ;;
  1096. +            *)
  1097. +              os=-nextstep3
  1098. +            ;;
  1099. +        esac
  1100. +        ;;
  1101. +    nh3000)
  1102. +        basic_machine=m68k-harris
  1103. +        os=-cxux
  1104. +        ;;
  1105. +    nh[45]000)
  1106. +        basic_machine=m88k-harris
  1107. +        os=-cxux
  1108. +        ;;
  1109. +    nindy960)
  1110. +        basic_machine=i960-intel
  1111. +        os=-nindy
  1112. +        ;;
  1113. +    np1)
  1114. +        basic_machine=np1-gould
  1115. +        ;;
  1116. +    pa-hitachi)
  1117. +        basic_machine=hppa1.1-hitachi
  1118. +        os=-hiuxwe2
  1119. +        ;;
  1120. +    paragon)
  1121. +        basic_machine=i860-intel
  1122. +        os=-osf
  1123. +        ;;
  1124. +    pbd)
  1125. +        basic_machine=sparc-tti
  1126. +        ;;
  1127. +    pbb)
  1128. +        basic_machine=m68k-tti
  1129. +        ;;
  1130. +        pc532 | pc532-*)
  1131. +        basic_machine=ns32k-pc532
  1132. +        ;;
  1133. +    pentium | p5 | p6)
  1134. +        # We don't have specific support for the Intel Pentium (p6) followon yet, so just call it a Pentium
  1135. +        basic_machine=i586-intel
  1136. +        ;;
  1137. +    pentium-* | p5-* | p6-*)
  1138. +        # We don't have specific support for the Intel Pentium (p6) followon yet, so just call it a Pentium
  1139. +        basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
  1140. +        ;;
  1141. +    k5)
  1142. +        # We don't have specific support for AMD's K5 yet, so just call it a Pentium
  1143. +        basic_machine=i586-amd
  1144. +        ;;
  1145. +    nexen)
  1146. +        # We don't have specific support for Nexgen yet, so just call it a Pentium
  1147. +        basic_machine=i586-nexgen
  1148. +        ;;
  1149. +    pn)
  1150. +        basic_machine=pn-gould
  1151. +        ;;
  1152. +    power)    basic_machine=rs6000-ibm
  1153. +        ;;
  1154. +    ppc)    basic_machine=powerpc-unknown
  1155. +            ;;
  1156. +    ppc-*)    basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
  1157. +        ;;
  1158. +    ppcle | powerpclittle | ppc-le | powerpc-little)
  1159. +        basic_machine=powerpcle-unknown
  1160. +            ;;
  1161. +    ppcle-* | powerpclittle-*)
  1162. +        basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
  1163. +        ;;
  1164. +    ps2)
  1165. +        basic_machine=i386-ibm
  1166. +        ;;
  1167. +    rm[46]00)
  1168. +        basic_machine=mips-siemens
  1169. +        ;;
  1170. +    rtpc | rtpc-*)
  1171. +        basic_machine=romp-ibm
  1172. +        ;;
  1173. +    sequent)
  1174. +        basic_machine=i386-sequent
  1175. +        ;;
  1176. +    sh)
  1177. +        basic_machine=sh-hitachi
  1178. +        os=-hms
  1179. +        ;;
  1180. +    sps7)
  1181. +        basic_machine=m68k-bull
  1182. +        os=-sysv2
  1183. +        ;;
  1184. +    spur)
  1185. +        basic_machine=spur-unknown
  1186. +        ;;
  1187. +    sun2)
  1188. +        basic_machine=m68000-sun
  1189. +        ;;
  1190. +    sun2os3)
  1191. +        basic_machine=m68000-sun
  1192. +        os=-sunos3
  1193. +        ;;
  1194. +    sun2os4)
  1195. +        basic_machine=m68000-sun
  1196. +        os=-sunos4
  1197. +        ;;
  1198. +    sun3os3)
  1199. +        basic_machine=m68k-sun
  1200. +        os=-sunos3
  1201. +        ;;
  1202. +    sun3os4)
  1203. +        basic_machine=m68k-sun
  1204. +        os=-sunos4
  1205. +        ;;
  1206. +    sun4os3)
  1207. +        basic_machine=sparc-sun
  1208. +        os=-sunos3
  1209. +        ;;
  1210. +    sun4os4)
  1211. +        basic_machine=sparc-sun
  1212. +        os=-sunos4
  1213. +        ;;
  1214. +    sun4sol2)
  1215. +        basic_machine=sparc-sun
  1216. +        os=-solaris2
  1217. +        ;;
  1218. +    sun3 | sun3-*)
  1219. +        basic_machine=m68k-sun
  1220. +        ;;
  1221. +    sun4)
  1222. +        basic_machine=sparc-sun
  1223. +        ;;
  1224. +    sun386 | sun386i | roadrunner)
  1225. +        basic_machine=i386-sun
  1226. +        ;;
  1227. +    symmetry)
  1228. +        basic_machine=i386-sequent
  1229. +        os=-dynix
  1230. +        ;;
  1231. +    tower | tower-32)
  1232. +        basic_machine=m68k-ncr
  1233. +        ;;
  1234. +    udi29k)
  1235. +        basic_machine=a29k-amd
  1236. +        os=-udi
  1237. +        ;;
  1238. +    ultra3)
  1239. +        basic_machine=a29k-nyu
  1240. +        os=-sym1
  1241. +        ;;
  1242. +    vaxv)
  1243. +        basic_machine=vax-dec
  1244. +        os=-sysv
  1245. +        ;;
  1246. +    vms)
  1247. +        basic_machine=vax-dec
  1248. +        os=-vms
  1249. +        ;;
  1250. +    vxworks960)
  1251. +        basic_machine=i960-wrs
  1252. +        os=-vxworks
  1253. +        ;;
  1254. +    vxworks68)
  1255. +        basic_machine=m68k-wrs
  1256. +        os=-vxworks
  1257. +        ;;
  1258. +    vxworks29k)
  1259. +        basic_machine=a29k-wrs
  1260. +        os=-vxworks
  1261. +        ;;
  1262. +    xmp)
  1263. +        basic_machine=xmp-cray
  1264. +        os=-unicos
  1265. +        ;;
  1266. +        xps | xps100)
  1267. +        basic_machine=xps100-honeywell
  1268. +        ;;
  1269. +    none)
  1270. +        basic_machine=none-none
  1271. +        os=-none
  1272. +        ;;
  1273. +
  1274. +# Here we handle the default manufacturer of certain CPU types.  It is in
  1275. +# some cases the only manufacturer, in others, it is the most popular.
  1276. +    mips)
  1277. +        basic_machine=mips-mips
  1278. +        ;;
  1279. +    romp)
  1280. +        basic_machine=romp-ibm
  1281. +        ;;
  1282. +    rs6000)
  1283. +        basic_machine=rs6000-ibm
  1284. +        ;;
  1285. +    vax)
  1286. +        basic_machine=vax-dec
  1287. +        ;;
  1288. +    pdp11)
  1289. +        basic_machine=pdp11-dec
  1290. +        ;;
  1291. +    we32k)
  1292. +        basic_machine=we32k-att
  1293. +        ;;
  1294. +    sparc)
  1295. +        basic_machine=sparc-sun
  1296. +        ;;
  1297. +        cydra)
  1298. +        basic_machine=cydra-cydrome
  1299. +        ;;
  1300. +    orion)
  1301. +        basic_machine=orion-highlevel
  1302. +        ;;
  1303. +    orion105)
  1304. +        basic_machine=clipper-highlevel
  1305. +        ;;
  1306. +    *)
  1307. +        echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  1308. +        exit 1
  1309. +        ;;
  1310. +esac
  1311. +
  1312. +# Here we canonicalize certain aliases for manufacturers.
  1313. +case $basic_machine in
  1314. +    *-digital*)
  1315. +        basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
  1316. +        ;;
  1317. +    *-commodore*)
  1318. +        basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
  1319. +        ;;
  1320. +    *)
  1321. +        ;;
  1322. +esac
  1323. +
  1324. +# Decode manufacturer-specific aliases for certain operating systems.
  1325. +
  1326. +if [ x"$os" != x"" ]
  1327. +then
  1328. +case $os in
  1329. +    # -solaris* is a basic system type, with this one exception.
  1330. +    -solaris1 | -solaris1.*)
  1331. +        os=`echo $os | sed -e 's|solaris1|sunos4|'`
  1332. +        ;;
  1333. +    -solaris)
  1334. +        os=-solaris2
  1335. +        ;;
  1336. +    -unixware* | svr4*)
  1337. +        os=-sysv4
  1338. +        ;;
  1339. +    -gnu/linux*)
  1340. +        os=`echo $os | sed -e 's|gnu/linux|linux|'`
  1341. +        ;;
  1342. +    # First accept the basic system types.
  1343. +    # The portable systems comes first.
  1344. +    # Each alternative MUST END IN A *, to match a version number.
  1345. +    # -sysv* is not here because it comes later, after sysvr4.
  1346. +    -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  1347. +          | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[345]* \
  1348. +          | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  1349. +          | -amigaos* | -msdos* | -newsos* | -unicos* | -aos* \
  1350. +          | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \
  1351. +          | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \
  1352. +          | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* \
  1353. +          | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
  1354. +          | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  1355. +          | -udi* | -eabi* | -lites* )
  1356. +    # Remember, each alternative MUST END IN *, to match a version number.
  1357. +        ;;
  1358. +    -sunos5*)
  1359. +        os=`echo $os | sed -e 's|sunos5|solaris2|'`
  1360. +        ;;
  1361. +    -sunos6*)
  1362. +        os=`echo $os | sed -e 's|sunos6|solaris3|'`
  1363. +        ;;
  1364. +    -osfrose*)
  1365. +        os=-osfrose
  1366. +        ;;
  1367. +    -osf*)
  1368. +        os=-osf
  1369. +        ;;
  1370. +    -utek*)
  1371. +        os=-bsd
  1372. +        ;;
  1373. +    -dynix*)
  1374. +        os=-bsd
  1375. +        ;;
  1376. +    -acis*)
  1377. +        os=-aos
  1378. +        ;;
  1379. +    -ctix* | -uts*)
  1380. +        os=-sysv
  1381. +        ;;
  1382. +    # Preserve the version number of sinix5.
  1383. +    -sinix5.*)
  1384. +        os=`echo $os | sed -e 's|sinix|sysv|'`
  1385. +        ;;
  1386. +    -sinix*)
  1387. +        os=-sysv4
  1388. +        ;;
  1389. +    -triton*)
  1390. +        os=-sysv3
  1391. +        ;;
  1392. +    -oss*)
  1393. +        os=-sysv3
  1394. +        ;;
  1395. +    -svr4)
  1396. +        os=-sysv4
  1397. +        ;;
  1398. +    -svr3)
  1399. +        os=-sysv3
  1400. +        ;;
  1401. +    -sysvr4)
  1402. +        os=-sysv4
  1403. +        ;;
  1404. +    # This must come after -sysvr4.
  1405. +    -sysv*)
  1406. +        ;;
  1407. +    -xenix)
  1408. +        os=-xenix
  1409. +        ;;
  1410. +    -none)
  1411. +        ;;
  1412. +    *)
  1413. +        # Get rid of the `-' at the beginning of $os.
  1414. +        os=`echo $os | sed 's/[^-]*-//'`
  1415. +        echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
  1416. +        exit 1
  1417. +        ;;
  1418. +esac
  1419. +else
  1420. +
  1421. +# Here we handle the default operating systems that come with various machines.
  1422. +# The value should be what the vendor currently ships out the door with their
  1423. +# machine or put another way, the most popular os provided with the machine.
  1424. +
  1425. +# Note that if you're going to try to match "-MANUFACTURER" here (say,
  1426. +# "-sun"), then you have to tell the case statement up towards the top
  1427. +# that MANUFACTURER isn't an operating system.  Otherwise, code above
  1428. +# will signal an error saying that MANUFACTURER isn't an operating
  1429. +# system, and we'll never get to this point.
  1430. +
  1431. +case $basic_machine in
  1432. +    *-acorn)
  1433. +        os=-riscix1.2
  1434. +        ;;
  1435. +    arm*-semi)
  1436. +        os=-aout
  1437. +        ;;
  1438. +        pdp11-*)
  1439. +        os=-none
  1440. +        ;;
  1441. +    *-dec | vax-*)
  1442. +        os=-ultrix4.2
  1443. +        ;;
  1444. +    m68*-apollo)
  1445. +        os=-domain
  1446. +        ;;
  1447. +    i386-sun)
  1448. +        os=-sunos4.0.2
  1449. +        ;;
  1450. +    m68000-sun)
  1451. +        os=-sunos3
  1452. +        # This also exists in the configure program, but was not the
  1453. +        # default.
  1454. +        # os=-sunos4
  1455. +        ;;
  1456. +    *-tti)    # must be before sparc entry or we get the wrong os.
  1457. +        os=-sysv3
  1458. +        ;;
  1459. +    sparc-* | *-sun)
  1460. +        os=-sunos4.1.1
  1461. +        ;;
  1462. +    *-ibm)
  1463. +        os=-aix
  1464. +        ;;
  1465. +    *-hp)
  1466. +        os=-hpux
  1467. +        ;;
  1468. +    *-hitachi)
  1469. +        os=-hiux
  1470. +        ;;
  1471. +    i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
  1472. +        os=-sysv
  1473. +        ;;
  1474. +    *-cbm)
  1475. +        os=-amigaos
  1476. +        ;;
  1477. +    *-dg)
  1478. +        os=-dgux
  1479. +        ;;
  1480. +    *-dolphin)
  1481. +        os=-sysv3
  1482. +        ;;
  1483. +    m68k-ccur)
  1484. +        os=-rtu
  1485. +        ;;
  1486. +    m88k-omron*)
  1487. +        os=-luna
  1488. +        ;;
  1489. +    *-sequent)
  1490. +        os=-ptx
  1491. +        ;;
  1492. +    *-crds)
  1493. +        os=-unos
  1494. +        ;;
  1495. +    *-ns)
  1496. +        os=-genix
  1497. +        ;;
  1498. +    i370-*)
  1499. +        os=-mvs
  1500. +        ;;
  1501. +    *-next)
  1502. +        os=-nextstep3
  1503. +        ;;
  1504. +        *-gould)
  1505. +        os=-sysv
  1506. +        ;;
  1507. +        *-highlevel)
  1508. +        os=-bsd
  1509. +        ;;
  1510. +    *-encore)
  1511. +        os=-bsd
  1512. +        ;;
  1513. +        *-sgi)
  1514. +        os=-irix
  1515. +        ;;
  1516. +        *-siemens)
  1517. +        os=-sysv4
  1518. +        ;;
  1519. +    *-masscomp)
  1520. +        os=-rtu
  1521. +        ;;
  1522. +    *)
  1523. +        os=-none
  1524. +        ;;
  1525. +esac
  1526. +fi
  1527. +
  1528. +# Here we handle the case where we know the os, and the CPU type, but not the
  1529. +# manufacturer.  We pick the logical manufacturer.
  1530. +vendor=unknown
  1531. +case $basic_machine in
  1532. +    *-unknown)
  1533. +        case $os in
  1534. +            -riscix*)
  1535. +                vendor=acorn
  1536. +                ;;
  1537. +            -sunos*)
  1538. +                vendor=sun
  1539. +                ;;
  1540. +            -lynxos*)
  1541. +                vendor=lynx
  1542. +                ;;
  1543. +            -aix*)
  1544. +                vendor=ibm
  1545. +                ;;
  1546. +            -hpux*)
  1547. +                vendor=hp
  1548. +                ;;
  1549. +            -hiux*)
  1550. +                vendor=hitachi
  1551. +                ;;
  1552. +            -unos*)
  1553. +                vendor=crds
  1554. +                ;;
  1555. +            -dgux*)
  1556. +                vendor=dg
  1557. +                ;;
  1558. +            -luna*)
  1559. +                vendor=omron
  1560. +                ;;
  1561. +            -genix*)
  1562. +                vendor=ns
  1563. +                ;;
  1564. +            -mvs*)
  1565. +                vendor=ibm
  1566. +                ;;
  1567. +            -ptx*)
  1568. +                vendor=sequent
  1569. +                ;;
  1570. +            -vxworks*)
  1571. +                vendor=wrs
  1572. +                ;;
  1573. +        esac
  1574. +        basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
  1575. +        ;;
  1576. +esac
  1577. +
  1578. +echo $basic_machine$os
  1579. diff -rup --new-file baseline/fsf/termcap/configure amiga/fsf/termcap/configure
  1580. --- baseline/fsf/termcap/configure    Wed Jul 26 12:52:38 1995
  1581. +++ amiga/fsf/termcap/configure    Mon Sep 30 22:50:34 1996
  1582. @@ -1,8 +1,8 @@
  1583.  #! /bin/sh
  1584.  
  1585.  # Guess values for system-dependent variables and create Makefiles.
  1586. -# Generated automatically using autoconf version 2.4 
  1587. -# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  1588. +# Generated automatically using autoconf version 2.10 
  1589. +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  1590.  #
  1591.  # This configure script is free software; the Free Software Foundation
  1592.  # gives unlimited permission to copy, distribute and modify it.
  1593. @@ -37,9 +37,25 @@ target=NONE
  1594.  verbose=
  1595.  x_includes=NONE
  1596.  x_libraries=NONE
  1597. +bindir='${exec_prefix}/bin'
  1598. +sbindir='${exec_prefix}/sbin'
  1599. +libexecdir='${exec_prefix}/libexec'
  1600. +datadir='${prefix}/share'
  1601. +sysconfdir='${prefix}/etc'
  1602. +sharedstatedir='${prefix}/com'
  1603. +localstatedir='${prefix}/var'
  1604. +libdir='${exec_prefix}/lib'
  1605. +includedir='${prefix}/include'
  1606. +oldincludedir='/usr/include'
  1607. +infodir='${prefix}/info'
  1608. +guidedir='${prefix}/guide'
  1609. +psdir='${prefix}/ps'
  1610. +dvidir='${prefix}/dvi'
  1611. +mandir='${prefix}/man'
  1612.  
  1613.  # Initialize some other variables.
  1614.  subdirs=
  1615. +MFLAGS= MAKEFLAGS=
  1616.  
  1617.  ac_prev=
  1618.  for ac_option
  1619. @@ -61,9 +77,14 @@ do
  1620.  
  1621.    case "$ac_option" in
  1622.  
  1623. -  -build | --build | --buil | --bui | --bu | --b)
  1624. +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1625. +    ac_prev=bindir ;;
  1626. +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1627. +    bindir="$ac_optarg" ;;
  1628. +
  1629. +  -build | --build | --buil | --bui | --bu)
  1630.      ac_prev=build ;;
  1631. -  -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  1632. +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1633.      build="$ac_optarg" ;;
  1634.  
  1635.    -cache-file | --cache-file | --cache-fil | --cache-fi \
  1636. @@ -73,6 +94,12 @@ do
  1637.    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1638.      cache_file="$ac_optarg" ;;
  1639.  
  1640. +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  1641. +    ac_prev=datadir ;;
  1642. +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  1643. +  | --da=*)
  1644. +    datadir="$ac_optarg" ;;
  1645. +
  1646.    -disable-* | --disable-*)
  1647.      ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  1648.      # Reject names that are not valid shell variable names.
  1649. @@ -123,12 +150,32 @@ Configuration:
  1650.  Directory and file names:
  1651.    --prefix=PREFIX         install architecture-independent files in PREFIX
  1652.                            [$ac_default_prefix]
  1653. -  --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  1654. +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1655.                            [same as prefix]
  1656. +  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  1657. +  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  1658. +  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  1659. +  --datadir=DIR           read-only architecture-independent data in DIR
  1660. +                          [PREFIX/share]
  1661. +  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  1662. +  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  1663. +                          [PREFIX/com]
  1664. +  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  1665. +  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  1666. +  --includedir=DIR        C header files in DIR [PREFIX/include]
  1667. +  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  1668. +  --infodir=DIR           info documentation in DIR [PREFIX/info]
  1669. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  1670. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  1671. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  1672. +  --mandir=DIR            man documentation in DIR [PREFIX/man]
  1673.    --srcdir=DIR            find the sources in DIR [configure dir or ..]
  1674.    --program-prefix=PREFIX prepend PREFIX to installed program names
  1675.    --program-suffix=SUFFIX append SUFFIX to installed program names
  1676. -  --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1677. +  --program-transform-name=PROGRAM
  1678. +                          run sed PROGRAM on installed program names
  1679. +EOF
  1680. +    cat << EOF
  1681.  Host type:
  1682.    --build=BUILD           configure for building on BUILD [BUILD=HOST]
  1683.    --host=HOST             configure for HOST [guessed]
  1684. @@ -140,8 +187,10 @@ Features and packages:
  1685.    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1686.    --x-includes=DIR        X include files are in DIR
  1687.    --x-libraries=DIR       X library files are in DIR
  1688. ---enable and --with options recognized:$ac_help
  1689.  EOF
  1690. +    if test -n "$ac_help"; then
  1691. +      echo "--enable and --with options recognized:$ac_help"
  1692. +    fi
  1693.      exit 0 ;;
  1694.  
  1695.    -host | --host | --hos | --ho)
  1696. @@ -149,6 +198,56 @@ EOF
  1697.    -host=* | --host=* | --hos=* | --ho=*)
  1698.      host="$ac_optarg" ;;
  1699.  
  1700. +  -includedir | --includedir | --includedi | --included | --include \
  1701. +  | --includ | --inclu | --incl | --inc)
  1702. +    ac_prev=includedir ;;
  1703. +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1704. +  | --includ=* | --inclu=* | --incl=* | --inc=*)
  1705. +    includedir="$ac_optarg" ;;
  1706. +
  1707. +  -infodir | --infodir | --infodi | --infod | --info | --inf)
  1708. +    ac_prev=infodir ;;
  1709. +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1710. +    infodir="$ac_optarg" ;;
  1711. +
  1712. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  1713. +   ac_prev=guidedir ;;
  1714. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  1715. +
  1716. + -psdir | --psdir | --psdi | --psd | --ps)
  1717. +   ac_prev=psdir ;;
  1718. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  1719. +
  1720. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1721. +   ac_prev=dvidir ;;
  1722. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  1723. +
  1724. +  -libdir | --libdir | --libdi | --libd)
  1725. +    ac_prev=libdir ;;
  1726. +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1727. +    libdir="$ac_optarg" ;;
  1728. +
  1729. +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1730. +  | --libexe | --libex | --libe)
  1731. +    ac_prev=libexecdir ;;
  1732. +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1733. +  | --libexe=* | --libex=* | --libe=*)
  1734. +    libexecdir="$ac_optarg" ;;
  1735. +
  1736. +  -localstatedir | --localstatedir | --localstatedi | --localstated \
  1737. +  | --localstate | --localstat | --localsta | --localst \
  1738. +  | --locals | --local | --loca | --loc | --lo)
  1739. +    ac_prev=localstatedir ;;
  1740. +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1741. +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  1742. +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  1743. +    localstatedir="$ac_optarg" ;;
  1744. +
  1745. +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1746. +    ac_prev=mandir ;;
  1747. +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1748. +    mandir="$ac_optarg" ;;
  1749. +
  1750.    -nfp | --nfp | --nf)
  1751.      # Obsolete; use --without-fp.
  1752.      with_fp=no ;;
  1753. @@ -161,6 +260,15 @@ EOF
  1754.    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1755.      no_recursion=yes ;;
  1756.  
  1757. +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1758. +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1759. +  | --oldin | --oldi | --old | --ol | --o)
  1760. +    ac_prev=oldincludedir ;;
  1761. +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1762. +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1763. +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1764. +    oldincludedir="$ac_optarg" ;;
  1765. +
  1766.    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1767.      ac_prev=prefix ;;
  1768.    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1769. @@ -201,6 +309,23 @@ EOF
  1770.    | -silent | --silent | --silen | --sile | --sil)
  1771.      silent=yes ;;
  1772.  
  1773. +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1774. +    ac_prev=sbindir ;;
  1775. +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1776. +  | --sbi=* | --sb=*)
  1777. +    sbindir="$ac_optarg" ;;
  1778. +
  1779. +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1780. +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1781. +  | --sharedst | --shareds | --shared | --share | --shar \
  1782. +  | --sha | --sh)
  1783. +    ac_prev=sharedstatedir ;;
  1784. +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1785. +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1786. +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1787. +  | --sha=* | --sh=*)
  1788. +    sharedstatedir="$ac_optarg" ;;
  1789. +
  1790.    -site | --site | --sit)
  1791.      ac_prev=site ;;
  1792.    -site=* | --site=* | --sit=*)
  1793. @@ -211,6 +336,13 @@ EOF
  1794.    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1795.      srcdir="$ac_optarg" ;;
  1796.  
  1797. +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1798. +  | --syscon | --sysco | --sysc | --sys | --sy)
  1799. +    ac_prev=sysconfdir ;;
  1800. +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1801. +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1802. +    sysconfdir="$ac_optarg" ;;
  1803. +
  1804.    -target | --target | --targe | --targ | --tar | --ta | --t)
  1805.      ac_prev=target ;;
  1806.    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1807. @@ -220,7 +352,7 @@ EOF
  1808.      verbose=yes ;;
  1809.  
  1810.    -version | --version | --versio | --versi | --vers)
  1811. -    echo "configure generated by autoconf version 2.4"
  1812. +    echo "configure generated by autoconf version 2.10"
  1813.      exit 0 ;;
  1814.  
  1815.    -with-* | --with-*)
  1816. @@ -266,7 +398,7 @@ EOF
  1817.    -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  1818.      ;;
  1819.  
  1820. -  *) 
  1821. +  *)
  1822.      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  1823.        echo "configure: warning: $ac_option: invalid host type" 1>&2
  1824.      fi
  1825. @@ -386,8 +518,8 @@ fi
  1826.  ac_ext=c
  1827.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1828.  ac_cpp='$CPP $CPPFLAGS'
  1829. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  1830. -ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  1831. +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1832. +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1833.  
  1834.  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  1835.    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  1836. @@ -404,20 +536,22 @@ fi
  1837.  
  1838.  
  1839.  # Check whether --enable-install-termcap or --disable-install-termcap was given.
  1840. -enableval="$enable_install_termcap"
  1841. -if test -n "$enableval"; then
  1842. +if test "${enable_install_termcap+set}" = set; then
  1843. +  enableval="$enable_install_termcap"
  1844.    if test $enableval = yes; then
  1845.     installdata=install-data uninstalldata=uninstall-data
  1846.   fi
  1847.  fi
  1848.  
  1849. +# ADE hack - always install the data
  1850. +installdata=install-data uninstalldata=uninstall-data
  1851.  
  1852.  # Check whether --with-termcap or --without-termcap was given.
  1853. -withval="$with_termcap"
  1854. -if test -n "$withval"; then
  1855. +if test "${with_termcap+set}" = set; then
  1856. +  withval="$with_termcap"
  1857.    termcapfile=$withval
  1858.  else
  1859. -  termcapfile=/etc/termcap
  1860. +  termcapfile='$(prefix)/etc/termcap'
  1861.  fi
  1862.  
  1863.  
  1864. @@ -439,7 +573,6 @@ else
  1865.      fi
  1866.    done
  1867.    IFS="$ac_save_ifs"
  1868. -  test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  1869.  fi
  1870.  fi
  1871.  CC="$ac_cv_prog_CC"
  1872. @@ -449,6 +582,55 @@ else
  1873.    echo "$ac_t""no" 1>&6
  1874.  fi
  1875.  
  1876. +if test -z "$CC"; then
  1877. +  # Extract the first word of "cc", so it can be a program name with args.
  1878. +set dummy cc; ac_word=$2
  1879. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1880. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1881. +  echo $ac_n "(cached) $ac_c" 1>&6
  1882. +else
  1883. +  if test -n "$CC"; then
  1884. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  1885. +else
  1886. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1887. +  ac_prog_rejected=no
  1888. +  for ac_dir in $PATH; do
  1889. +    test -z "$ac_dir" && ac_dir=.
  1890. +    if test -f $ac_dir/$ac_word; then
  1891. +      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1892. +        ac_prog_rejected=yes
  1893. +    continue
  1894. +      fi
  1895. +      ac_cv_prog_CC="cc"
  1896. +      break
  1897. +    fi
  1898. +  done
  1899. +  IFS="$ac_save_ifs"
  1900. +if test $ac_prog_rejected = yes; then
  1901. +  # We found a bogon in the path, so make sure we never use it.
  1902. +  set dummy $ac_cv_prog_CC
  1903. +  shift
  1904. +  if test $# -gt 0; then
  1905. +    # We chose a different compiler from the bogus one.
  1906. +    # However, it has the same basename, so the bogon will be chosen
  1907. +    # first if we set CC to just the basename; use the full file name.
  1908. +    shift
  1909. +    set dummy "$ac_dir/$ac_word" "$@"
  1910. +    shift
  1911. +    ac_cv_prog_CC="$@"
  1912. +  fi
  1913. +fi
  1914. +fi
  1915. +fi
  1916. +CC="$ac_cv_prog_CC"
  1917. +if test -n "$CC"; then
  1918. +  echo "$ac_t""$CC" 1>&6
  1919. +else
  1920. +  echo "$ac_t""no" 1>&6
  1921. +fi
  1922. +
  1923. +  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  1924. +fi
  1925.  
  1926.  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1927.  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1928. @@ -459,12 +641,13 @@ else
  1929.    yes;
  1930.  #endif
  1931.  EOF
  1932. -if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  1933. +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1934.    ac_cv_prog_gcc=yes
  1935.  else
  1936.    ac_cv_prog_gcc=no
  1937.  fi
  1938.  fi
  1939. +
  1940.  echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1941.  if test $ac_cv_prog_gcc = yes; then
  1942.    GCC=yes
  1943. @@ -482,11 +665,12 @@ fi
  1944.  rm -f conftest*
  1945.  
  1946.  fi
  1947. -    echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  1948. +
  1949. +echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  1950.      if test $ac_cv_prog_gcc_g = yes; then
  1951. -      CFLAGS="-g -O"
  1952. +      CFLAGS="-g -O2"
  1953.      else
  1954. -      CFLAGS="-O"
  1955. +      CFLAGS="-O2"
  1956.      fi
  1957.    fi
  1958.  else
  1959. @@ -494,7 +678,135 @@ else
  1960.    test "${CFLAGS+set}" = set || CFLAGS="-g"
  1961.  fi
  1962.  
  1963. -# Extract the first word of "ranlib", so it can be a program name with args.
  1964. +ac_aux_dir=
  1965. +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1966. +  if test -f $ac_dir/install-sh; then
  1967. +    ac_aux_dir=$ac_dir
  1968. +    ac_install_sh="$ac_aux_dir/install-sh -c"
  1969. +    break
  1970. +  elif test -f $ac_dir/install.sh; then
  1971. +    ac_aux_dir=$ac_dir
  1972. +    ac_install_sh="$ac_aux_dir/install.sh -c"
  1973. +    break
  1974. +  fi
  1975. +done
  1976. +if test -z "$ac_aux_dir"; then
  1977. +  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  1978. +fi
  1979. +ac_config_guess=$ac_aux_dir/config.guess
  1980. +ac_config_sub=$ac_aux_dir/config.sub
  1981. +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1982. +
  1983. +
  1984. +# Make sure we can run config.sub.
  1985. +if $ac_config_sub sun4 >/dev/null 2>&1; then :
  1986. +else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1987. +fi
  1988. +
  1989. +echo $ac_n "checking host system type""... $ac_c" 1>&6
  1990. +
  1991. +host_alias=$host
  1992. +case "$host_alias" in
  1993. +NONE)
  1994. +  case $nonopt in
  1995. +  NONE)
  1996. +    if host_alias=`$ac_config_guess`; then :
  1997. +    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  1998. +    fi ;;
  1999. +  *) host_alias=$nonopt ;;
  2000. +  esac ;;
  2001. +esac
  2002. +
  2003. +host=`$ac_config_sub $host_alias`
  2004. +host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  2005. +host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  2006. +host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  2007. +echo "$ac_t""$host" 1>&6
  2008. +
  2009. +echo $ac_n "checking build system type""... $ac_c" 1>&6
  2010. +
  2011. +build_alias=$build
  2012. +case "$build_alias" in
  2013. +NONE)
  2014. +  case $nonopt in
  2015. +  NONE) build_alias=$host_alias ;;
  2016. +  *) build_alias=$nonopt ;;
  2017. +  esac ;;
  2018. +esac
  2019. +
  2020. +build=`$ac_config_sub $build_alias`
  2021. +build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  2022. +build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  2023. +build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  2024. +echo "$ac_t""$build" 1>&6
  2025. +
  2026. +if test $host != $build; then
  2027. +  ac_tool_prefix=${host_alias}-
  2028. +else
  2029. +  ac_tool_prefix=
  2030. +fi
  2031. +
  2032. +# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  2033. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  2034. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2035. +if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  2036. +  echo $ac_n "(cached) $ac_c" 1>&6
  2037. +else
  2038. +  if test -n "$AR"; then
  2039. +  ac_cv_prog_AR="$AR" # Let the user override the test.
  2040. +else
  2041. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2042. +  for ac_dir in $PATH; do
  2043. +    test -z "$ac_dir" && ac_dir=.
  2044. +    if test -f $ac_dir/$ac_word; then
  2045. +      ac_cv_prog_AR="${ac_tool_prefix}ar"
  2046. +      break
  2047. +    fi
  2048. +  done
  2049. +  IFS="$ac_save_ifs"
  2050. +  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
  2051. +fi
  2052. +fi
  2053. +AR="$ac_cv_prog_AR"
  2054. +if test -n "$AR"; then
  2055. +  echo "$ac_t""$AR" 1>&6
  2056. +else
  2057. +  echo "$ac_t""no" 1>&6
  2058. +fi
  2059. +
  2060. +
  2061. +
  2062. +# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2063. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2064. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2065. +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2066. +  echo $ac_n "(cached) $ac_c" 1>&6
  2067. +else
  2068. +  if test -n "$RANLIB"; then
  2069. +  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2070. +else
  2071. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2072. +  for ac_dir in $PATH; do
  2073. +    test -z "$ac_dir" && ac_dir=.
  2074. +    if test -f $ac_dir/$ac_word; then
  2075. +      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2076. +      break
  2077. +    fi
  2078. +  done
  2079. +  IFS="$ac_save_ifs"
  2080. +fi
  2081. +fi
  2082. +RANLIB="$ac_cv_prog_RANLIB"
  2083. +if test -n "$RANLIB"; then
  2084. +  echo "$ac_t""$RANLIB" 1>&6
  2085. +else
  2086. +  echo "$ac_t""no" 1>&6
  2087. +fi
  2088. +
  2089. +
  2090. +if test -z "$ac_cv_prog_RANLIB"; then
  2091. +if test -n "$ac_tool_prefix"; then
  2092. +  # Extract the first word of "ranlib", so it can be a program name with args.
  2093.  set dummy ranlib; ac_word=$2
  2094.  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2095.  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2096. @@ -522,24 +834,10 @@ else
  2097.    echo "$ac_t""no" 1>&6
  2098.  fi
  2099.  
  2100. -ac_aux_dir=
  2101. -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  2102. -  if test -f $ac_dir/install-sh; then
  2103. -    ac_aux_dir=$ac_dir
  2104. -    ac_install_sh="$ac_aux_dir/install-sh -c"
  2105. -    break
  2106. -  elif test -f $ac_dir/install.sh; then
  2107. -    ac_aux_dir=$ac_dir
  2108. -    ac_install_sh="$ac_aux_dir/install.sh -c"
  2109. -    break
  2110. -  fi
  2111. -done
  2112. -if test -z "$ac_aux_dir"; then
  2113. -  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  2114. +else
  2115. +  RANLIB=":"
  2116. +fi
  2117.  fi
  2118. -ac_config_guess=$ac_aux_dir/config.guess
  2119. -ac_config_sub=$ac_aux_dir/config.sub
  2120. -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  2121.  
  2122.  # Find a good install program.  We prefer a C program (faster),
  2123.  # so one script is as good as another.  But avoid the broken or
  2124. @@ -548,6 +846,7 @@ ac_configure=$ac_aux_dir/configure # Thi
  2125.  # SunOS /usr/etc/install
  2126.  # IRIX /sbin/install
  2127.  # AIX /bin/install
  2128. +# AmigaOS /c/install
  2129.  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2130.  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2131.  # ./install, which can be erroneously created by make from ./install.sh.
  2132. @@ -560,7 +859,7 @@ else
  2133.    for ac_dir in $PATH; do
  2134.      # Account for people who put trailing slashes in PATH elements.
  2135.      case "$ac_dir/" in
  2136. -    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  2137. +    /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  2138.      *)
  2139.        # OSF1 and SCO ODT 3.0 have their own names for install.
  2140.        for ac_prog in ginstall installbsd scoinst install; do
  2141. @@ -580,10 +879,17 @@ else
  2142.      esac
  2143.    done
  2144.    IFS="$ac_save_ifs"
  2145. -  # As a last resort, use the slow shell script.
  2146. -  test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  2147. +
  2148.  fi
  2149. -  INSTALL="$ac_cv_path_install"
  2150. +  if test "${ac_cv_path_install+set}" = set; then
  2151. +    INSTALL="$ac_cv_path_install"
  2152. +  else
  2153. +    # As a last resort, use the slow shell script.  We don't cache a
  2154. +    # path for INSTALL within a source directory, because that will
  2155. +    # break other packages using the cache if that directory is
  2156. +    # removed, or if the path is relative.
  2157. +    INSTALL="$ac_install_sh"
  2158. +  fi
  2159.  fi
  2160.  echo "$ac_t""$INSTALL" 1>&6
  2161.  
  2162. @@ -608,12 +914,13 @@ else
  2163.    # On the NeXT, cc -E runs the code through the compiler's parser,
  2164.    # not just through cpp.
  2165.    cat > conftest.$ac_ext <<EOF
  2166. -#line 612 "configure"
  2167. +#line 918 "configure"
  2168.  #include "confdefs.h"
  2169.  #include <assert.h>
  2170.  Syntax Error
  2171.  EOF
  2172. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2173. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2174. +{ (eval echo configure:924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2175.  ac_err=`grep -v '^ *+' conftest.out`
  2176.  if test -z "$ac_err"; then
  2177.    :
  2178. @@ -622,12 +929,13 @@ else
  2179.    rm -rf conftest*
  2180.    CPP="${CC-cc} -E -traditional-cpp"
  2181.    cat > conftest.$ac_ext <<EOF
  2182. -#line 626 "configure"
  2183. +#line 933 "configure"
  2184.  #include "confdefs.h"
  2185.  #include <assert.h>
  2186.  Syntax Error
  2187.  EOF
  2188. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2189. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2190. +{ (eval echo configure:939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2191.  ac_err=`grep -v '^ *+' conftest.out`
  2192.  if test -z "$ac_err"; then
  2193.    :
  2194. @@ -655,11 +963,12 @@ if eval "test \"`echo '$''{'ac_cv_header
  2195.    echo $ac_n "(cached) $ac_c" 1>&6
  2196.  else
  2197.    cat > conftest.$ac_ext <<EOF
  2198. -#line 659 "configure"
  2199. +#line 967 "configure"
  2200.  #include "confdefs.h"
  2201.  #include <$ac_hdr>
  2202.  EOF
  2203. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2204. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2205. +{ (eval echo configure:972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2206.  ac_err=`grep -v '^ *+' conftest.out`
  2207.  if test -z "$ac_err"; then
  2208.    rm -rf conftest*
  2209. @@ -673,7 +982,7 @@ rm -f conftest*
  2210.  fi
  2211.  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2212.    echo "$ac_t""yes" 1>&6
  2213. -    ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  2214. +    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  2215.    cat >> confdefs.h <<EOF
  2216.  #define $ac_tr_hdr 1
  2217.  EOF
  2218. @@ -692,11 +1001,11 @@ else
  2219.    ac_cv_c_cross=yes
  2220.  else
  2221.  cat > conftest.$ac_ext <<EOF
  2222. -#line 696 "configure"
  2223. +#line 1005 "configure"
  2224.  #include "confdefs.h"
  2225.  main(){return(0);}
  2226.  EOF
  2227. -eval $ac_link
  2228. +{ (eval echo configure:1009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2229.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2230.    ac_cv_c_cross=no
  2231.  else
  2232. @@ -705,22 +1014,24 @@ fi
  2233.  fi
  2234.  rm -fr conftest*
  2235.  fi
  2236. -cross_compiling=$ac_cv_c_cross
  2237. +
  2238.  echo "$ac_t""$ac_cv_c_cross" 1>&6
  2239. +cross_compiling=$ac_cv_c_cross
  2240.  
  2241.  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2242.  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  2243.    echo $ac_n "(cached) $ac_c" 1>&6
  2244.  else
  2245.    cat > conftest.$ac_ext <<EOF
  2246. -#line 717 "configure"
  2247. +#line 1027 "configure"
  2248.  #include "confdefs.h"
  2249.  #include <stdlib.h>
  2250.  #include <stdarg.h>
  2251.  #include <string.h>
  2252.  #include <float.h>
  2253.  EOF
  2254. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2255. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2256. +{ (eval echo configure:1035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2257.  ac_err=`grep -v '^ *+' conftest.out`
  2258.  if test -z "$ac_err"; then
  2259.    rm -rf conftest*
  2260. @@ -735,7 +1046,7 @@ rm -f conftest*
  2261.  if test $ac_cv_header_stdc = yes; then
  2262.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2263.  cat > conftest.$ac_ext <<EOF
  2264. -#line 739 "configure"
  2265. +#line 1050 "configure"
  2266.  #include "confdefs.h"
  2267.  #include <string.h>
  2268.  EOF
  2269. @@ -753,7 +1064,7 @@ fi
  2270.  if test $ac_cv_header_stdc = yes; then
  2271.    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2272.  cat > conftest.$ac_ext <<EOF
  2273. -#line 757 "configure"
  2274. +#line 1068 "configure"
  2275.  #include "confdefs.h"
  2276.  #include <stdlib.h>
  2277.  EOF
  2278. @@ -771,10 +1082,10 @@ fi
  2279.  if test $ac_cv_header_stdc = yes; then
  2280.    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2281.  if test "$cross_compiling" = yes; then
  2282. -  ac_cv_header_stdc=no
  2283. +  :
  2284.  else
  2285.  cat > conftest.$ac_ext <<EOF
  2286. -#line 778 "configure"
  2287. +#line 1089 "configure"
  2288.  #include "confdefs.h"
  2289.  #include <ctype.h>
  2290.  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2291. @@ -785,7 +1096,7 @@ if (XOR (islower (i), ISLOWER (i)) || to
  2292.  exit (0); }
  2293.  
  2294.  EOF
  2295. -eval $ac_link
  2296. +{ (eval echo configure:1100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2297.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2298.    :
  2299.  else
  2300. @@ -795,6 +1106,7 @@ fi
  2301.  rm -fr conftest*
  2302.  fi
  2303.  fi
  2304. +
  2305.  echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2306.  if test $ac_cv_header_stdc = yes; then
  2307.    cat >> confdefs.h <<\EOF
  2308. @@ -857,7 +1169,7 @@ trap 'rm -f $CONFIG_STATUS conftest*; ex
  2309.  # Protect against shell expansion while executing Makefile rules.
  2310.  # Protect against Makefile macro expansion.
  2311.  cat > conftest.defs <<\EOF
  2312. -s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
  2313. +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  2314.  s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  2315.  s%\[%\\&%g
  2316.  s%\]%\\&%g
  2317. @@ -871,7 +1183,9 @@ rm -f conftest.defs
  2318.  : ${CONFIG_STATUS=./config.status}
  2319.  
  2320.  echo creating $CONFIG_STATUS
  2321. -rm -f $CONFIG_STATUS
  2322. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  2323. +# being executed, so just move it out of the way instead.
  2324. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  2325.  cat > $CONFIG_STATUS <<EOF
  2326.  #! /bin/sh
  2327.  # Generated automatically by configure.
  2328. @@ -892,7 +1206,7 @@ do
  2329.      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2330.      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2331.    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2332. -    echo "$CONFIG_STATUS generated by autoconf version 2.4"
  2333. +    echo "$CONFIG_STATUS generated by autoconf version 2.10"
  2334.      exit 0 ;;
  2335.    -help | --help | --hel | --he | --h)
  2336.      echo "\$ac_cs_usage"; exit 0 ;;
  2337. @@ -903,11 +1217,13 @@ done
  2338.  ac_given_srcdir=$srcdir
  2339.  ac_given_INSTALL="$INSTALL"
  2340.  
  2341. -trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2342. +trap 'rm -fr `echo "Makefile tests/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2343. +EOF
  2344. +cat >> $CONFIG_STATUS <<EOF
  2345.  
  2346. -# Protect against being on the right side of a sed subst in config.status. 
  2347. -sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  2348. - s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  2349. +# Protect against being on the right side of a sed subst in config.status.
  2350. +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2351. + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2352.  $ac_vpsub
  2353.  $extrasub
  2354.  s%@CFLAGS@%$CFLAGS%g
  2355. @@ -919,10 +1235,36 @@ s%@LIBS@%$LIBS%g
  2356.  s%@exec_prefix@%$exec_prefix%g
  2357.  s%@prefix@%$prefix%g
  2358.  s%@program_transform_name@%$program_transform_name%g
  2359. +s%@bindir@%$bindir%g
  2360. +s%@sbindir@%$sbindir%g
  2361. +s%@libexecdir@%$libexecdir%g
  2362. +s%@datadir@%$datadir%g
  2363. +s%@sysconfdir@%$sysconfdir%g
  2364. +s%@sharedstatedir@%$sharedstatedir%g
  2365. +s%@localstatedir@%$localstatedir%g
  2366. +s%@libdir@%$libdir%g
  2367. +s%@includedir@%$includedir%g
  2368. +s%@oldincludedir@%$oldincludedir%g
  2369. +s%@infodir@%$infodir%g
  2370. +s%@guidedir@%$guidedir%g
  2371. +s%@psdir@%$psdir%g
  2372. +s%@dvidir@%$dvidir%g
  2373. +s%@mandir@%$mandir%g
  2374.  s%@installdata@%$installdata%g
  2375.  s%@uninstalldata@%$uninstalldata%g
  2376.  s%@termcapfile@%$termcapfile%g
  2377.  s%@CC@%$CC%g
  2378. +s%@host@%$host%g
  2379. +s%@host_alias@%$host_alias%g
  2380. +s%@host_cpu@%$host_cpu%g
  2381. +s%@host_vendor@%$host_vendor%g
  2382. +s%@host_os@%$host_os%g
  2383. +s%@build@%$build%g
  2384. +s%@build_alias@%$build_alias%g
  2385. +s%@build_cpu@%$build_cpu%g
  2386. +s%@build_vendor@%$build_vendor%g
  2387. +s%@build_os@%$build_os%g
  2388. +s%@AR@%$AR%g
  2389.  s%@RANLIB@%$RANLIB%g
  2390.  s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2391.  s%@INSTALL_DATA@%$INSTALL_DATA%g
  2392. @@ -932,7 +1274,7 @@ CEOF
  2393.  EOF
  2394.  cat >> $CONFIG_STATUS <<EOF
  2395.  
  2396. -CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2397. +CONFIG_FILES=\${CONFIG_FILES-"Makefile tests/Makefile"}
  2398.  EOF
  2399.  cat >> $CONFIG_STATUS <<\EOF
  2400.  for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2401. @@ -993,6 +1335,7 @@ rm -f conftest.subs
  2402.  exit 0
  2403.  EOF
  2404.  chmod +x $CONFIG_STATUS
  2405. +rm -f CONFIG.STATUS.old
  2406.  rm -fr confdefs* $ac_clean_files
  2407.  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2408.  
  2409. diff -rup --new-file baseline/fsf/termcap/configure.in amiga/fsf/termcap/configure.in
  2410. --- baseline/fsf/termcap/configure.in    Wed Jul 26 12:46:34 1995
  2411. +++ amiga/fsf/termcap/configure.in    Sat Sep 28 00:00:00 1996
  2412. @@ -6,18 +6,21 @@ AC_ARG_ENABLE(install-termcap,
  2413.  [if test $enableval = yes; then
  2414.     installdata=install-data uninstalldata=uninstall-data
  2415.   fi])
  2416. +# ADE hack - always install the data
  2417. +installdata=install-data uninstalldata=uninstall-data
  2418.  AC_SUBST(installdata)dnl
  2419.  AC_SUBST(uninstalldata)dnl
  2420.  
  2421.  AC_ARG_WITH(termcap,
  2422.  [  --with-termcap=FILE     use data file FILE instead of /etc/termcap],
  2423. -termcapfile=$withval, termcapfile=/etc/termcap)
  2424. +termcapfile=$withval, termcapfile='$(prefix)/etc/termcap')
  2425.  AC_SUBST(termcapfile)dnl
  2426.  
  2427.  AC_PROG_CC
  2428. -AC_PROG_RANLIB
  2429. +AC_CHECK_TOOL(AR, ar)
  2430. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  2431.  AC_PROG_INSTALL
  2432.  AC_HAVE_HEADERS(string.h unistd.h)
  2433.  AC_STDC_HEADERS
  2434.  
  2435. -AC_OUTPUT(Makefile)
  2436. +AC_OUTPUT(Makefile tests/Makefile)
  2437. diff -rup --new-file baseline/fsf/termcap/manifests/bin amiga/fsf/termcap/manifests/bin
  2438. --- baseline/fsf/termcap/manifests/bin    Wed Dec 31 17:00:00 1969
  2439. +++ amiga/fsf/termcap/manifests/bin    Sat Sep 28 00:00:00 1996
  2440. @@ -0,0 +1,10 @@
  2441. +COPYING
  2442. +COPYING.info
  2443. +etc/termcap
  2444. +include/termcap.h
  2445. +info/termcap.info
  2446. +info/termcap.info-1
  2447. +info/termcap.info-2
  2448. +info/termcap.info-3
  2449. +info/termcap.info-4
  2450. +lib/libtermcap.a
  2451. diff -rup --new-file baseline/fsf/termcap/manifests/src amiga/fsf/termcap/manifests/src
  2452. --- baseline/fsf/termcap/manifests/src    Wed Dec 31 17:00:00 1969
  2453. +++ amiga/fsf/termcap/manifests/src    Sat Sep 28 00:00:00 1996
  2454. @@ -0,0 +1,26 @@
  2455. +fsf/termcap/COPYING
  2456. +fsf/termcap/ChangeLog
  2457. +fsf/termcap/INSTALL
  2458. +fsf/termcap/Makefile.in
  2459. +fsf/termcap/NEWS
  2460. +fsf/termcap/Product-Info
  2461. +fsf/termcap/README
  2462. +fsf/termcap/config.guess
  2463. +fsf/termcap/config.sub
  2464. +fsf/termcap/configure
  2465. +fsf/termcap/configure.in
  2466. +fsf/termcap/install-sh
  2467. +fsf/termcap/manifests/bin
  2468. +fsf/termcap/manifests/src
  2469. +fsf/termcap/mkinstalldirs
  2470. +fsf/termcap/termcap.c
  2471. +fsf/termcap/termcap.h
  2472. +fsf/termcap/termcap.src
  2473. +fsf/termcap/termcap.texi
  2474. +fsf/termcap/tests/Makefile.in
  2475. +fsf/termcap/tests/tc1.c
  2476. +fsf/termcap/tests/tc2.c
  2477. +fsf/termcap/tests/tc3.c
  2478. +fsf/termcap/texinfo.tex
  2479. +fsf/termcap/tparam.c
  2480. +fsf/termcap/version.c
  2481. diff -rup --new-file baseline/fsf/termcap/termcap.info amiga/fsf/termcap/termcap.info
  2482. --- baseline/fsf/termcap/termcap.info    Wed Jul 26 08:44:14 1995
  2483. +++ amiga/fsf/termcap/termcap.info    Wed Dec 31 17:00:00 1969
  2484. @@ -1,80 +0,0 @@
  2485. -This is Info file ./termcap.info, produced by Makeinfo-1.55 from the
  2486. -input file ./termcap.texi.
  2487. -
  2488. -   This file documents the termcap library of the GNU system.
  2489. -
  2490. -   Copyright (C) 1988 Free Software Foundation, Inc.
  2491. -
  2492. -   Permission is granted to make and distribute verbatim copies of this
  2493. -manual provided the copyright notice and this permission notice are
  2494. -preserved on all copies.
  2495. -
  2496. -   Permission is granted to copy and distribute modified versions of
  2497. -this manual under the conditions for verbatim copying, provided that
  2498. -the entire resulting derived work is distributed under the terms of a
  2499. -permission notice identical to this one.
  2500. -
  2501. -   Permission is granted to copy and distribute translations of this
  2502. -manual into another language, under the above conditions for modified
  2503. -versions, except that this permission notice may be stated in a
  2504. -translation approved by the Foundation.
  2505. -
  2506. -
  2507. -Indirect:
  2508. -termcap.info-1: 874
  2509. -termcap.info-2: 47411
  2510. -termcap.info-3: 90390
  2511. -termcap.info-4: 138827
  2512. -
  2513. -Tag Table:
  2514. -(Indirect)
  2515. -Node: Top874
  2516. -Node: Introduction4105
  2517. -Node: Library5832
  2518. -Node: Preparation6851
  2519. -Node: Find8034
  2520. -Node: Interrogate11492
  2521. -Node: Initialize16800
  2522. -Node: Padding18440
  2523. -Node: Why Pad19146
  2524. -Node: Not Enough20768
  2525. -Node: Describe Padding23336
  2526. -Node: Output Padding24826
  2527. -Node: Parameters28441
  2528. -Node: Encode Parameters30101
  2529. -Node: Using Parameters36185
  2530. -Node: tparam36780
  2531. -Node: tgoto38806
  2532. -Node: Data Base41361
  2533. -Node: Format42257
  2534. -Node: Capability Format44346
  2535. -Node: Naming47411
  2536. -Node: Inheriting51980
  2537. -Node: Changing54224
  2538. -Node: Capabilities55388
  2539. -Node: Basic58127
  2540. -Node: Screen Size62180
  2541. -Node: Cursor Motion63920
  2542. -Node: Wrapping74062
  2543. -Node: Scrolling77091
  2544. -Node: Windows82980
  2545. -Node: Clearing83714
  2546. -Node: Insdel Line85478
  2547. -Node: Insdel Char90390
  2548. -Node: Standout100375
  2549. -Node: Underlining109433
  2550. -Node: Cursor Visibility111852
  2551. -Node: Bell112600
  2552. -Node: Keypad113149
  2553. -Node: Meta Key117864
  2554. -Node: Initialization118818
  2555. -Node: Pad Specs121369
  2556. -Node: Status Line123422
  2557. -Node: Half-Line125306
  2558. -Node: Printer126108
  2559. -Node: Summary127787
  2560. -Node: Var Index138114
  2561. -Node: Cap Index138827
  2562. -Node: Index145991
  2563. -
  2564. -End Tag Table
  2565. diff -rup --new-file baseline/fsf/termcap/termcap.info-1 amiga/fsf/termcap/termcap.info-1
  2566. --- baseline/fsf/termcap/termcap.info-1    Wed Jul 26 08:44:12 1995
  2567. +++ amiga/fsf/termcap/termcap.info-1    Wed Dec 31 17:00:00 1969
  2568. @@ -1,1114 +0,0 @@
  2569. -This is Info file ./termcap.info, produced by Makeinfo-1.55 from the
  2570. -input file ./termcap.texi.
  2571. -
  2572. -   This file documents the termcap library of the GNU system.
  2573. -
  2574. -   Copyright (C) 1988 Free Software Foundation, Inc.
  2575. -
  2576. -   Permission is granted to make and distribute verbatim copies of this
  2577. -manual provided the copyright notice and this permission notice are
  2578. -preserved on all copies.
  2579. -
  2580. -   Permission is granted to copy and distribute modified versions of
  2581. -this manual under the conditions for verbatim copying, provided that
  2582. -the entire resulting derived work is distributed under the terms of a
  2583. -permission notice identical to this one.
  2584. -
  2585. -   Permission is granted to copy and distribute translations of this
  2586. -manual into another language, under the above conditions for modified
  2587. -versions, except that this permission notice may be stated in a
  2588. -translation approved by the Foundation.
  2589. -
  2590. -
  2591. -File: termcap.info,  Node: Top,  Next: Introduction,  Prev: (dir),  Up: (dir)
  2592. -
  2593. -* Menu:
  2594. -
  2595. -* Introduction::  What is termcap?  Why this manual?
  2596. -* Library::     The termcap library functions.
  2597. -* Data Base::   What terminal descriptions in `/etc/termcap' look like.
  2598. -* Capabilities::  Definitions of the individual terminal capabilities:
  2599. -                 how to write them in descriptions, and how to use
  2600. -                 their values to do display updating.
  2601. -* Summary::     Brief table of capability names and their meanings.
  2602. -* Var Index::   Index of C functions and variables.
  2603. -* Cap Index::   Index of termcap capabilities.
  2604. -* Index::       Concept index.
  2605. -
  2606. - -- The Detailed Node Listing --
  2607. -
  2608. -The Termcap Library
  2609. -
  2610. -* Preparation::  Preparing to use the termcap library.
  2611. -* Find::        Finding the description of the terminal being used.
  2612. -* Interrogate::  Interrogating the description for particular capabilities.
  2613. -* Initialize::  Initialization for output using termcap.
  2614. -* Padding::     Outputting padding.
  2615. -* Parameters::  Encoding parameters such as cursor positions.
  2616. -
  2617. -Padding
  2618. -
  2619. -* Why Pad::     Explanation of padding.
  2620. -* Not Enough::  When there is not enough padding.
  2621. -* Describe Padding::  The data base says how much padding a terminal needs.
  2622. -* Output Padding::    Using `tputs' to output the needed padding.
  2623. -
  2624. -Filling In Parameters
  2625. -
  2626. -* Encode Parameters::  The language for encoding parameters.
  2627. -* Using Parameters::   Outputting a string command with parameters.
  2628. -
  2629. -Sending Display Commands with Parameters
  2630. -
  2631. -* tparam::      The general case, for GNU termcap only.
  2632. -* tgoto::       The special case of cursor motion.
  2633. -
  2634. -The Format of the Data Base
  2635. -
  2636. -* Format::      Overall format of a terminal description.
  2637. -* Capability Format::  Format of capabilities within a description.
  2638. -* Naming::      Naming conventions for terminal types.
  2639. -* Inheriting::  Inheriting part of a description from
  2640. -a related terminal type.
  2641. -* Changing::    When changes in the data base take effect.
  2642. -
  2643. -Definitions of the Terminal Capabilities
  2644. -
  2645. -* Basic::       Basic characteristics.
  2646. -* Screen Size::  Screen size, and what happens when it changes.
  2647. -* Cursor Motion::  Various ways to move the cursor.
  2648. -* Wrapping::    What happens if you write a character in the last column.
  2649. -* Scrolling::   Pushing text up and down on the screen.
  2650. -* Windows::     Limiting the part of the window that output affects.
  2651. -* Clearing::    Erasing one or many lines.
  2652. -* Insdel Line::  Making new blank lines in mid-screen; deleting lines.
  2653. -* Insdel Char::  Inserting and deleting characters within a line.
  2654. -* Standout::    Highlighting some of the text.
  2655. -* Underlining::  Underlining some of the text.
  2656. -* Cursor Visibility::  Making the cursor more or less easy to spot.
  2657. -* Bell::        Attracts user's attention; not localized on the screen.
  2658. -* Keypad::      Recognizing when function keys or arrows are typed.
  2659. -* Meta Key::    META acts like an extra shift key.
  2660. -* Initialization::  Commands used to initialize or reset the terminal.
  2661. -* Pad Specs::   Info for the kernel on how much padding is needed.
  2662. -* Status Line::  A status line displays "background" information.
  2663. -* Half-Line::   Moving by half-lines, for superscripts and subscripts.
  2664. -* Printer::     Controlling auxiliary printers of display terminals.
  2665. -
  2666. -
  2667. -File: termcap.info,  Node: Introduction,  Next: Library,  Prev: Top,  Up: Top
  2668. -
  2669. -Introduction
  2670. -************
  2671. -
  2672. -   "Termcap" is a library and data base that enables programs to use
  2673. -display terminals in a terminal-independent manner.  It originated in
  2674. -Berkeley Unix.
  2675. -
  2676. -   The termcap data base describes the capabilities of hundreds of
  2677. -different display terminals in great detail.  Some examples of the
  2678. -information recorded for a terminal could include how many columns wide
  2679. -it is, what string to send to move the cursor to an arbitrary position
  2680. -(including how to encode the row and column numbers), how to scroll the
  2681. -screen up one or several lines, and how much padding is needed for such
  2682. -a scrolling operation.
  2683. -
  2684. -   The termcap library is provided for easy access this data base in
  2685. -programs that want to do terminal-independent character-based display
  2686. -output.
  2687. -
  2688. -   This manual describes the GNU version of the termcap library, which
  2689. -has some extensions over the Unix version.  All the extensions are
  2690. -identified as such, so this manual also tells you how to use the Unix
  2691. -termcap.
  2692. -
  2693. -   The GNU version of the termcap library is available free as source
  2694. -code, for use in free programs, and runs on Unix and VMS systems (at
  2695. -least).  You can find it in the GNU Emacs distribution in the files
  2696. -`termcap.c' and `tparam.c'.
  2697. -
  2698. -   This manual was written for the GNU project, whose goal is to
  2699. -develop a complete free operating system upward-compatible with Unix
  2700. -for user programs.  The project is approximately two thirds complete.
  2701. -For more information on the GNU project, including the GNU Emacs editor
  2702. -and the mostly-portable optimizing C compiler, send one dollar to
  2703. -
  2704. -     Free Software Foundation
  2705. -     675 Mass Ave
  2706. -     Cambridge, MA 02139
  2707. -
  2708. -
  2709. -File: termcap.info,  Node: Library,  Next: Data Base,  Prev: Introduction,  Up: Top
  2710. -
  2711. -The Termcap Library
  2712. -*******************
  2713. -
  2714. -   The termcap library is the application programmer's interface to the
  2715. -termcap data base.  It contains functions for the following purposes:
  2716. -
  2717. -   * Finding the description of the user's terminal type (`tgetent').
  2718. -
  2719. -   * Interrogating the description for information on various topics
  2720. -     (`tgetnum', `tgetflag', `tgetstr').
  2721. -
  2722. -   * Computing and performing padding (`tputs').
  2723. -
  2724. -   * Encoding numeric parameters such as cursor positions into the
  2725. -     terminal-specific form required for display commands (`tparam',
  2726. -     `tgoto').
  2727. -
  2728. -* Menu:
  2729. -
  2730. -* Preparation::  Preparing to use the termcap library.
  2731. -* Find::        Finding the description of the terminal being used.
  2732. -* Interrogate::  Interrogating the description for particular capabilities.
  2733. -* Initialize::  Initialization for output using termcap.
  2734. -* Padding::     Outputting padding.
  2735. -* Parameters::  Encoding parameters such as cursor positions.
  2736. -
  2737. -
  2738. -File: termcap.info,  Node: Preparation,  Next: Find,  Up: Library
  2739. -
  2740. -Preparing to Use the Termcap Library
  2741. -====================================
  2742. -
  2743. -   To use the termcap library in a program, you need two kinds of
  2744. -preparation:
  2745. -
  2746. -   * The compiler needs declarations of the functions and variables in
  2747. -     the library.
  2748. -
  2749. -     On GNU systems, it suffices to include the header file `termcap.h'
  2750. -     in each source file that uses these functions and variables.
  2751. -
  2752. -     On Unix systems, there is often no such header file.  Then you must
  2753. -     explictly declare the variables as external.  You can do likewise
  2754. -     for the functions, or let them be implicitly declared and cast
  2755. -     their values from type `int' to the appropriate type.
  2756. -
  2757. -     We illustrate the declarations of the individual termcap library
  2758. -     functions with ANSI C prototypes because they show how to pass the
  2759. -     arguments.  If you are not using the GNU C compiler, you probably
  2760. -     cannot use function prototypes, so omit the argument types and
  2761. -     names from your declarations.
  2762. -
  2763. -   * The linker needs to search the library.  Usually either
  2764. -     `-ltermcap' or `-ltermlib' as an argument when linking will do
  2765. -     this.
  2766. -
  2767. -
  2768. -File: termcap.info,  Node: Find,  Next: Interrogate,  Prev: Preparation,  Up: Library
  2769. -
  2770. -Finding a Terminal Description: `tgetent'
  2771. -=========================================
  2772. -
  2773. -   An application program that is going to use termcap must first look
  2774. -up the description of the terminal type in use.  This is done by calling
  2775. -`tgetent', whose declaration in ANSI Standard C looks like:
  2776. -
  2777. -     int tgetent (char *BUFFER, char *TERMTYPE);
  2778. -
  2779. -This function finds the description and remembers it internally so that
  2780. -you can interrogate it about specific terminal capabilities (*note
  2781. -Interrogate::.).
  2782. -
  2783. -   The argument TERMTYPE is a string which is the name for the type of
  2784. -terminal to look up.  Usually you would obtain this from the environment
  2785. -variable `TERM' using `getenv ("TERM")'.
  2786. -
  2787. -   If you are using the GNU version of termcap, you can alternatively
  2788. -ask `tgetent' to allocate enough space.  Pass a null pointer for
  2789. -BUFFER, and `tgetent' itself allocates the storage using `malloc'.
  2790. -There is no way to get the address that was allocated, and you
  2791. -shouldn't try to free the storage.
  2792. -
  2793. -   With the Unix version of termcap, you must allocate space for the
  2794. -description yourself and pass the address of the space as the argument
  2795. -BUFFER.  There is no way you can tell how much space is needed, so the
  2796. -convention is to allocate a buffer 2048 characters long and assume that
  2797. -is enough.  (Formerly the convention was to allocate 1024 characters and
  2798. -assume that was enough.  But one day, for one kind of terminal, that was
  2799. -not enough.)
  2800. -
  2801. -   No matter how the space to store the description has been obtained,
  2802. -termcap records its address internally for use when you later
  2803. -interrogate the description with `tgetnum', `tgetstr' or `tgetflag'.  If
  2804. -the buffer was allocated by termcap, it will be freed by termcap too if
  2805. -you call `tgetent' again.  If the buffer was provided by you, you must
  2806. -make sure that its contents remain unchanged for as long as you still
  2807. -plan to interrogate the description.
  2808. -
  2809. -   The return value of `tgetent' is -1 if there is some difficulty
  2810. -accessing the data base of terminal types, 0 if the data base is
  2811. -accessible but the specified type is not defined in it, and some other
  2812. -value otherwise.
  2813. -
  2814. -   Here is how you might use the function `tgetent':
  2815. -
  2816. -     #ifdef unix
  2817. -     static char term_buffer[2048];
  2818. -     #else
  2819. -     #define term_buffer 0
  2820. -     #endif
  2821. -     
  2822. -     init_terminal_data ()
  2823. -     {
  2824. -       char *termtype = getenv ("TERM");
  2825. -       int success;
  2826. -     
  2827. -       if (termtype == 0)
  2828. -         fatal ("Specify a terminal type with `setenv TERM <yourtype>'.\n");
  2829. -     
  2830. -       success = tgetent (term_buffer, termtype);
  2831. -       if (success < 0)
  2832. -         fatal ("Could not access the termcap data base.\n");
  2833. -       if (success == 0)
  2834. -         fatal ("Terminal type `%s' is not defined.\n", termtype);
  2835. -     }
  2836. -
  2837. -Here we assume the function `fatal' prints an error message and exits.
  2838. -
  2839. -   If the environment variable `TERMCAP' is defined, its value is used
  2840. -to override the terminal type data base.  The function `tgetent' checks
  2841. -the value of `TERMCAP' automatically.  If the value starts with `/'
  2842. -then it is taken as a file name to use as the data base file, instead
  2843. -of `/etc/termcap' which is the standard data base.  If the value does
  2844. -not start with `/' then it is itself used as the terminal description,
  2845. -provided that the terminal type TERMTYPE is among the types it claims
  2846. -to apply to.  *Note Data Base::, for information on the format of a
  2847. -terminal description.
  2848. -
  2849. -
  2850. -File: termcap.info,  Node: Interrogate,  Next: Initialize,  Prev: Find,  Up: Library
  2851. -
  2852. -Interrogating the Terminal Description
  2853. -======================================
  2854. -
  2855. -   Each piece of information recorded in a terminal description is
  2856. -called a "capability".  Each defined terminal capability has a
  2857. -two-letter code name and a specific meaning.  For example, the number
  2858. -of columns is named `co'.  *Note Capabilities::, for definitions of all
  2859. -the standard capability names.
  2860. -
  2861. -   Once you have found the proper terminal description with `tgetent'
  2862. -(*note Find::.), your application program must "interrogate" it for
  2863. -various terminal capabilities.  You must specify the two-letter code of
  2864. -the capability whose value you seek.
  2865. -
  2866. -   Capability values can be numeric, boolean (capability is either
  2867. -present or absent) or strings.  Any particular capability always has
  2868. -the same value type; for example, `co' always has a numeric value,
  2869. -while `am' (automatic wrap at margin) is always a flag, and `cm'
  2870. -(cursor motion command) always has a string value.  The documentation
  2871. -of each capability says which type of value it has.
  2872. -
  2873. -   There are three functions to use to get the value of a capability,
  2874. -depending on the type of value the capability has.  Here are their
  2875. -declarations in ANSI C:
  2876. -
  2877. -     int tgetnum (char *NAME);
  2878. -     int tgetflag (char *NAME);
  2879. -     char *tgetstr (char *NAME, char **AREA);
  2880. -
  2881. -`tgetnum'
  2882. -     Use `tgetnum' to get a capability value that is numeric.  The
  2883. -     argument NAME is the two-letter code name of the capability.  If
  2884. -     the capability is present, `tgetnum' returns the numeric value
  2885. -     (which is nonnegative).  If the capability is not mentioned in the
  2886. -     terminal description, `tgetnum' returns -1.
  2887. -
  2888. -`tgetflag'
  2889. -     Use `tgetflag' to get a boolean value.  If the capability NAME is
  2890. -     present in the terminal description, `tgetflag' returns 1;
  2891. -     otherwise, it returns 0.
  2892. -
  2893. -`tgetstr'
  2894. -     Use `tgetstr' to get a string value.  It returns a pointer to a
  2895. -     string which is the capability value, or a null pointer if the
  2896. -     capability is not present in the terminal description.
  2897. -
  2898. -     There are two ways `tgetstr' can find space to store the string
  2899. -     value:
  2900. -
  2901. -        * You can ask `tgetstr' to allocate the space.  Pass a null
  2902. -          pointer for the argument AREA, and `tgetstr' will use
  2903. -          `malloc' to allocate storage big enough for the value.
  2904. -          Termcap will never free this storage or refer to it again; you
  2905. -          should free it when you are finished with it.
  2906. -
  2907. -          This method is more robust, since there is no need to guess
  2908. -          how much space is needed.  But it is supported only by the GNU
  2909. -          termcap library.
  2910. -
  2911. -        * You can provide the space.  Provide for the argument AREA the
  2912. -          address of a pointer variable of type `char *'.  Before
  2913. -          calling `tgetstr', initialize the variable to point at
  2914. -          available space.  Then `tgetstr' will store the string value
  2915. -          in that space and will increment the pointer variable to
  2916. -          point after the space that has been used.  You can use the
  2917. -          same pointer variable for many calls to `tgetstr'.
  2918. -
  2919. -          There is no way to determine how much space is needed for a
  2920. -          single string, and no way for you to prevent or handle
  2921. -          overflow of the area you have provided.  However, you can be
  2922. -          sure that the total size of all the string values you will
  2923. -          obtain from the terminal description is no greater than the
  2924. -          size of the description (unless you get the same capability
  2925. -          twice).  You can determine that size with `strlen' on the
  2926. -          buffer you provided to `tgetent'.  See below for an example.
  2927. -
  2928. -          Providing the space yourself is the only method supported by
  2929. -          the Unix version of termcap.
  2930. -
  2931. -   Note that you do not have to specify a terminal type or terminal
  2932. -description for the interrogation functions.  They automatically use the
  2933. -description found by the most recent call to `tgetent'.
  2934. -
  2935. -   Here is an example of interrogating a terminal description for
  2936. -various capabilities, with conditionals to select between the Unix and
  2937. -GNU methods of providing buffer space.
  2938. -
  2939. -     char *tgetstr ();
  2940. -     
  2941. -     char *cl_string, *cm_string;
  2942. -     int height;
  2943. -     int width;
  2944. -     int auto_wrap;
  2945. -     
  2946. -     char PC;   /* For tputs.  */
  2947. -     char *BC;  /* For tgoto.  */
  2948. -     char *UP;
  2949. -     
  2950. -     interrogate_terminal ()
  2951. -     {
  2952. -     #ifdef UNIX
  2953. -       /* Here we assume that an explicit term_buffer
  2954. -          was provided to tgetent.  */
  2955. -       char *buffer
  2956. -         = (char *) malloc (strlen (term_buffer));
  2957. -     #define BUFFADDR &buffer
  2958. -     #else
  2959. -     #define BUFFADDR 0
  2960. -     #endif
  2961. -     
  2962. -       char *temp;
  2963. -     
  2964. -       /* Extract information we will use.  */
  2965. -       cl_string = tgetstr ("cl", BUFFADDR);
  2966. -       cm_string = tgetstr ("cm", BUFFADDR);
  2967. -       auto_wrap = tgetflag ("am");
  2968. -       height = tgetnum ("li");
  2969. -       width = tgetnum ("co");
  2970. -     
  2971. -       /* Extract information that termcap functions use.  */
  2972. -       temp = tgetstr ("pc", BUFFADDR);
  2973. -       PC = temp ? *temp : 0;
  2974. -       BC = tgetstr ("le", BUFFADDR);
  2975. -       UP = tgetstr ("up", BUFFADDR);
  2976. -     }
  2977. -
  2978. -*Note Padding::, for information on the variable `PC'.  *Note Using
  2979. -Parameters::, for information on `UP' and `BC'.
  2980. -
  2981. -
  2982. -File: termcap.info,  Node: Initialize,  Next: Padding,  Prev: Interrogate,  Up: Library
  2983. -
  2984. -Initialization for Use of Termcap
  2985. -=================================
  2986. -
  2987. -   Before starting to output commands to a terminal using termcap, an
  2988. -application program should do two things:
  2989. -
  2990. -   * Initialize various global variables which termcap library output
  2991. -     functions refer to.  These include `PC' and `ospeed' for padding
  2992. -     (*note Output Padding::.) and `UP' and `BC' for cursor motion
  2993. -     (*note tgoto::.).
  2994. -
  2995. -   * Tell the kernel to turn off alteration and padding of
  2996. -     horizontal-tab characters sent to the terminal.
  2997. -
  2998. -   To turn off output processing in Berkeley Unix you would use `ioctl'
  2999. -with code `TIOCLSET' to set the bit named `LLITOUT', and clear the bits
  3000. -`ANYDELAY' using `TIOCSETN'.  In POSIX or System V, you must clear the
  3001. -bit named `OPOST'.  Refer to the system documentation for details.
  3002. -
  3003. -   If you do not set the terminal flags properly, some older terminals
  3004. -will not work.  This is because their commands may contain the
  3005. -characters that normally signify newline, carriage return and
  3006. -horizontal tab--characters which the kernel thinks it ought to modify
  3007. -before output.
  3008. -
  3009. -   When you change the kernel's terminal flags, you must arrange to
  3010. -restore them to their normal state when your program exits.  This
  3011. -implies that the program must catch fatal signals such as `SIGQUIT' and
  3012. -`SIGINT' and restore the old terminal flags before actually terminating.
  3013. -
  3014. -   Modern terminals' commands do not use these special characters, so
  3015. -if you do not care about problems with old terminals, you can leave the
  3016. -kernel's terminal flags unaltered.
  3017. -
  3018. -
  3019. -File: termcap.info,  Node: Padding,  Next: Parameters,  Prev: Initialize,  Up: Library
  3020. -
  3021. -Padding
  3022. -=======
  3023. -
  3024. -   "Padding" means outputting null characters following a terminal
  3025. -display command that takes a long time to execute.  The terminal
  3026. -description says which commands require padding and how much; the
  3027. -function `tputs', described below, outputs a terminal command while
  3028. -extracting from it the padding information, and then outputs the
  3029. -padding that is necessary.
  3030. -
  3031. -* Menu:
  3032. -
  3033. -* Why Pad::     Explanation of padding.
  3034. -* Not Enough::  When there is not enough padding.
  3035. -* Describe Padding::  The data base says how much padding a terminal needs.
  3036. -* Output Padding::  Using `tputs' to output the needed padding.
  3037. -
  3038. -
  3039. -File: termcap.info,  Node: Why Pad,  Next: Not Enough,  Up: Padding
  3040. -
  3041. -Why Pad, and How
  3042. -----------------
  3043. -
  3044. -   Most types of terminal have commands that take longer to execute
  3045. -than they do to send over a high-speed line.  For example, clearing the
  3046. -screen may take 20msec once the entire command is received.  During
  3047. -that time, on a 9600 bps line, the terminal could receive about 20
  3048. -additional output characters while still busy clearing the screen.
  3049. -Every terminal has a certain amount of buffering capacity to remember
  3050. -output characters that cannot be processed yet, but too many slow
  3051. -commands in a row can cause the buffer to fill up.  Then any additional
  3052. -output that cannot be processed immediately will be lost.
  3053. -
  3054. -   To avoid this problem, we normally follow each display command with
  3055. -enough useless charaters (usually null characters) to fill up the time
  3056. -that the display command needs to execute.  This does the job if the
  3057. -terminal throws away null characters without using up space in the
  3058. -buffer (which most terminals do).  If enough padding is used, no output
  3059. -can ever be lost.  The right amount of padding avoids loss of output
  3060. -without slowing down operation, since the time used to transmit padding
  3061. -is time that nothing else could be done.
  3062. -
  3063. -   The number of padding characters needed for an operation depends on
  3064. -the line speed.  In fact, it is proportional to the line speed.  A 9600
  3065. -baud line transmits about one character per msec, so the clear screen
  3066. -command in the example above would need about 20 characters of padding.
  3067. -At 1200 baud, however, only about 3 characters of padding are needed
  3068. -to fill up 20msec.
  3069. -
  3070. -
  3071. -File: termcap.info,  Node: Not Enough,  Next: Describe Padding,  Prev: Why Pad,  Up: Padding
  3072. -
  3073. -When There Is Not Enough Padding
  3074. ---------------------------------
  3075. -
  3076. -   There are several common manifestations of insufficient padding.
  3077. -
  3078. -   * Emacs displays `I-search: ^Q-' at the bottom of the screen.
  3079. -
  3080. -     This means that the terminal thought its buffer was getting full of
  3081. -     display commands, so it tried to tell the computer to stop sending
  3082. -     any.
  3083. -
  3084. -   * The screen is garbled intermittently, or the details of garbling
  3085. -     vary when you repeat the action.  (A garbled screen could be due
  3086. -     to a command which is simply incorrect, or to user option in the
  3087. -     terminal which doesn't match the assumptions of the terminal
  3088. -     description, but this usually leads to reproducible failure.)
  3089. -
  3090. -     This means that the buffer did get full, and some commands were
  3091. -     lost.  Many changeable factors can change which ones are lost.
  3092. -
  3093. -   * Screen is garbled at high output speeds but not at low speeds.
  3094. -     Padding problems nearly always go away at low speeds, usually even
  3095. -     at 1200 baud.
  3096. -
  3097. -     This means that a high enough speed permits commands to arrive
  3098. -     faster than they can be executed.
  3099. -
  3100. -   Although any obscure command on an obscure terminal might lack
  3101. -padding, in practice problems arise most often from the clearing
  3102. -commands `cl' and `cd' (*note Clearing::.), the scrolling commands `sf'
  3103. -and `sr' (*note Scrolling::.), and the line insert/delete commands `al'
  3104. -and `dl' (*note Insdel Line::.).
  3105. -
  3106. -   Occasionally the terminal description fails to define `sf' and some
  3107. -programs will use `do' instead, so you may get a problem with `do'.  If
  3108. -so, first define `sf' just like `do', then add some padding to `sf'.
  3109. -
  3110. -   The best strategy is to add a lot of padding at first, perhaps 200
  3111. -msec.  This is much more than enough; in fact, it should cause a
  3112. -visible slowdown.  (If you don't see a slowdown, the change has not
  3113. -taken effect; *note Changing::..)  If this makes the problem go away,
  3114. -you have found the right place to add padding; now reduce the amount
  3115. -until the problem comes back, then increase it again.  If the problem
  3116. -remains, either it is in some other capability or it is not a matter of
  3117. -padding at all.
  3118. -
  3119. -   Keep in mind that on many terminals the correct padding for
  3120. -insert/delete line or for scrolling is cursor-position dependent.  If
  3121. -you get problems from scrolling a large region of the screen but not
  3122. -from scrolling a small part (just a few lines moving), it may mean that
  3123. -fixed padding should be replaced with position-dependent padding.
  3124. -
  3125. -
  3126. -File: termcap.info,  Node: Describe Padding,  Next: Output Padding,  Prev: Not Enough,  Up: Padding
  3127. -
  3128. -Specifying Padding in a Terminal Description
  3129. ---------------------------------------------
  3130. -
  3131. -   In the terminal description, the amount of padding required by each
  3132. -display command is recorded as a sequence of digits at the front of the
  3133. -command.  These digits specify the padding time in milliseconds (msec).
  3134. -They can be followed optionally by a decimal point and one more digit,
  3135. -which is a number of tenths of msec.
  3136. -
  3137. -   Sometimes the padding needed by a command depends on the cursor
  3138. -position.  For example, the time taken by an "insert line" command is
  3139. -usually proportional to the number of lines that need to be moved down
  3140. -or cleared.  An asterisk (`*') following the padding time says that the
  3141. -time should be multiplied by the number of screen lines affected by the
  3142. -command.
  3143. -
  3144. -     :al=1.3*\E[L:
  3145. -
  3146. -is used to describe the "insert line" command for a certain terminal.
  3147. -The padding required is 1.3 msec per line affected.  The command itself
  3148. -is `ESC [ L'.
  3149. -
  3150. -   The padding time specified in this way tells `tputs' how many pad
  3151. -characters to output.  *Note Output Padding::.
  3152. -
  3153. -   Two special capability values affect padding for all commands.
  3154. -These are the `pc' and `pb'.  The variable `pc' specifies the character
  3155. -to pad with, and `pb' the speed below which no padding is needed.  The
  3156. -defaults for these variables, a null character and 0, are correct for
  3157. -most terminals.  *Note Pad Specs::.
  3158. -
  3159. -
  3160. -File: termcap.info,  Node: Output Padding,  Prev: Describe Padding,  Up: Padding
  3161. -
  3162. -Performing Padding with `tputs'
  3163. --------------------------------
  3164. -
  3165. -   Use the termcap function `tputs' to output a string containing an
  3166. -optional padding spec of the form described above (*note Describe
  3167. -Padding::.).  The function `tputs' strips off and decodes the padding
  3168. -spec, outputs the rest of the string, and then outputs the appropriate
  3169. -padding.  Here is its declaration in ANSI C:
  3170. -
  3171. -     char PC;
  3172. -     short ospeed;
  3173. -     
  3174. -     int tputs (char *STRING, int NLINES, int (*OUTFUN) ());
  3175. -
  3176. -   Here STRING is the string (including padding spec) to be output;
  3177. -NLINES is the number of lines affected by the operation, which is used
  3178. -to multiply the amount of padding if the padding spec ends with a `*'.
  3179. -Finally, OUTFUN is a function (such as `fputchar') that is called to
  3180. -output each character.  When actually called, OUTFUN should expect one
  3181. -argument, a character.
  3182. -
  3183. -   The operation of `tputs' is controlled by two global variables,
  3184. -`ospeed' and `PC'.  The value of `ospeed' is supposed to be the
  3185. -terminal output speed, encoded as in the `ioctl' system call which gets
  3186. -the speed information.  This is needed to compute the number of padding
  3187. -characters.  The value of `PC' is the character used for padding.
  3188. -
  3189. -   You are responsible for storing suitable values into these variables
  3190. -before using `tputs'.  The value stored into the `PC' variable should be
  3191. -taken from the `pc' capability in the terminal description (*note Pad
  3192. -Specs::.).  Store zero in `PC' if there is no `pc' capability.
  3193. -
  3194. -   The argument NLINES requires some thought.  Normally, it should be
  3195. -the number of lines whose contents will be cleared or moved by the
  3196. -command.  For cursor motion commands, or commands that do editing
  3197. -within one line, use the value 1.  For most commands that affect
  3198. -multiple lines, such as `al' (insert a line) and `cd' (clear from the
  3199. -cursor to the end of the screen), NLINES should be the screen height
  3200. -minus the current vertical position (origin 0).  For multiple insert
  3201. -and scroll commands such as `AL' (insert multiple lines), that same
  3202. -value for NLINES is correct; the number of lines being inserted is not
  3203. -correct.
  3204. -
  3205. -   If a "scroll window" feature is used to reduce the number of lines
  3206. -affected by a command, the value of NLINES should take this into
  3207. -account.  This is because the delay time required depends on how much
  3208. -work the terminal has to do, and the scroll window feature reduces the
  3209. -work.  *Note Scrolling::.
  3210. -
  3211. -   Commands such as `ic' and `dc' (insert or delete characters) are
  3212. -problematical because the padding needed by these commands is
  3213. -proportional to the number of characters affected, which is the number
  3214. -of columns from the cursor to the end of the line.  It would be nice to
  3215. -have a way to specify such a dependence, and there is no need for
  3216. -dependence on vertical position in these commands, so it is an obvious
  3217. -idea to say that for these commands NLINES should really be the number
  3218. -of columns affected.  However, the definition of termcap clearly says
  3219. -that NLINES is always the number of lines affected, even in this case,
  3220. -where it is always 1.  It is not easy to change this rule now, because
  3221. -too many programs and terminal descriptions have been written to follow
  3222. -it.
  3223. -
  3224. -   Because NLINES is always 1 for the `ic' and `dc' strings, there is
  3225. -no reason for them to use `*', but some of them do.  These should be
  3226. -corrected by deleting the `*'.  If, some day, such entries have
  3227. -disappeared, it may be possible to change to a more useful convention
  3228. -for the NLINES argument for these operations without breaking any
  3229. -programs.
  3230. -
  3231. -
  3232. -File: termcap.info,  Node: Parameters,  Prev: Padding,  Up: Library
  3233. -
  3234. -Filling In Parameters
  3235. -=====================
  3236. -
  3237. -   Some terminal control strings require numeric "parameters".  For
  3238. -example, when you move the cursor, you need to say what horizontal and
  3239. -vertical positions to move it to.  The value of the terminal's `cm'
  3240. -capability, which says how to move the cursor, cannot simply be a
  3241. -string of characters; it must say how to express the cursor position
  3242. -numbers and where to put them within the command.
  3243. -
  3244. -   The specifications of termcap include conventions as to which
  3245. -string-valued capabilities require parameters, how many parameters, and
  3246. -what the parameters mean; for example, it defines the `cm' string to
  3247. -take two parameters, the vertical and horizontal positions, with 0,0
  3248. -being the upper left corner.  These conventions are described where the
  3249. -individual commands are documented.
  3250. -
  3251. -   Termcap also defines a language used within the capability
  3252. -definition for specifying how and where to encode the parameters for
  3253. -output.  This language uses character sequences starting with `%'.
  3254. -(This is the same idea as `printf', but the details are different.)
  3255. -The language for parameter encoding is described in this section.
  3256. -
  3257. -   A program that is doing display output calls the functions `tparam'
  3258. -or `tgoto' to encode parameters according to the specifications.  These
  3259. -functions produce a string containing the actual commands to be output
  3260. -(as well a padding spec which must be processed with `tputs'; *note
  3261. -Padding::.).
  3262. -
  3263. -* Menu:
  3264. -
  3265. -* Encode Parameters::  The language for encoding parameters.
  3266. -* Using Parameters::  Outputting a string command with parameters.
  3267. -
  3268. -
  3269. -File: termcap.info,  Node: Encode Parameters,  Next: Using Parameters,  Up: Parameters
  3270. -
  3271. -Describing the Encoding
  3272. ------------------------
  3273. -
  3274. -   A terminal command string that requires parameters contains special
  3275. -character sequences starting with `%' to say how to encode the
  3276. -parameters.  These sequences control the actions of `tparam' and
  3277. -`tgoto'.
  3278. -
  3279. -   The parameters values passed to `tparam' or `tgoto' are considered
  3280. -to form a vector.  A pointer into this vector determines the next
  3281. -parameter to be processed.  Some of the `%'-sequences encode one
  3282. -parameter and advance the pointer to the next parameter.  Other
  3283. -`%'-sequences alter the pointer or alter the parameter values without
  3284. -generating output.
  3285. -
  3286. -   For example, the `cm' string for a standard ANSI terminal is written
  3287. -as `\E[%i%d;%dH'.  (`\E' stands for ESC.)  `cm' by convention always
  3288. -requires two parameters, the vertical and horizontal goal positions, so
  3289. -this string specifies the encoding of two parameters.  Here `%i'
  3290. -increments the two values supplied, and each `%d' encodes one of the
  3291. -values in decimal.  If the cursor position values 20,58 are encoded
  3292. -with this string, the result is `\E[21;59H'.
  3293. -
  3294. -   First, here are the `%'-sequences that generate output.  Except for
  3295. -`%%', each of them encodes one parameter and advances the pointer to
  3296. -the following parameter.
  3297. -
  3298. -`%%'
  3299. -     Output a single `%'.  This is the only way to represent a literal
  3300. -     `%' in a terminal command with parameters.  `%%' does not use up a
  3301. -     parameter.
  3302. -
  3303. -`%d'
  3304. -     As in `printf', output the next parameter in decimal.
  3305. -
  3306. -`%2'
  3307. -     Like `%02d' in `printf': output the next parameter in decimal, and
  3308. -     always use at least two digits.
  3309. -
  3310. -`%3'
  3311. -     Like `%03d' in `printf': output the next parameter in decimal, and
  3312. -     always use at least three digits.  Note that `%4' and so on are
  3313. -     *not* defined.
  3314. -
  3315. -`%.'
  3316. -     Output the next parameter as a single character whose ASCII code is
  3317. -     the parameter value.  Like `%c' in `printf'.
  3318. -
  3319. -`%+CHAR'
  3320. -     Add the next parameter to the character CHAR, and output the
  3321. -     resulting character.  For example, `%+ ' represents 0 as a space,
  3322. -     1 as `!', etc.
  3323. -
  3324. -   The following `%'-sequences specify alteration of the parameters
  3325. -(their values, or their order) rather than encoding a parameter for
  3326. -output.  They generate no output; they are used only for their side
  3327. -effects on the parameters.  Also, they do not advance the "next
  3328. -parameter" pointer except as explicitly stated.  Only `%i', `%r' and
  3329. -`%>' are defined in standard Unix termcap.  The others are GNU
  3330. -extensions.
  3331. -
  3332. -`%i'
  3333. -     Increment the next two parameters.  This is used for terminals that
  3334. -     expect cursor positions in origin 1.  For example, `%i%d,%d' would
  3335. -     output two parameters with `1' for 0, `2' for 1, etc.
  3336. -
  3337. -`%r'
  3338. -     Interchange the next two parameters.  This is used for terminals
  3339. -     whose cursor positioning command expects the horizontal position
  3340. -     first.
  3341. -
  3342. -`%s'
  3343. -     Skip the next parameter.  Do not output anything.
  3344. -
  3345. -`%b'
  3346. -     Back up one parameter.  The last parameter used will become once
  3347. -     again the next parameter to be output, and the next output command
  3348. -     will use it.  Using `%b' more than once, you can back up any
  3349. -     number of parameters, and you can refer to each parameter any
  3350. -     number of times.
  3351. -
  3352. -`%>C1C2'
  3353. -     Conditionally increment the next parameter.  Here C1 and C2 are
  3354. -     characters which stand for their ASCII codes as numbers.  If the
  3355. -     next parameter is greater than the ASCII code of C1, the ASCII
  3356. -     code of C2 is added to it.
  3357. -
  3358. -`%a OP TYPE POS'
  3359. -     Perform arithmetic on the next parameter, do not use it up, and do
  3360. -     not output anything.  Here OP specifies the arithmetic operation,
  3361. -     while TYPE and POS together specify the other operand.
  3362. -
  3363. -     Spaces are used above to separate the operands for clarity; the
  3364. -     spaces don't appear in the data base, where this sequence is
  3365. -     exactly five characters long.
  3366. -
  3367. -     The character OP says what kind of arithmetic operation to
  3368. -     perform.  It can be any of these characters:
  3369. -
  3370. -    `='
  3371. -          assign a value to the next parameter, ignoring its old value.
  3372. -          The new value comes from the other operand.
  3373. -
  3374. -    `+'
  3375. -          add the other operand to the next parameter.
  3376. -
  3377. -    `-'
  3378. -          subtract the other operand from the next parameter.
  3379. -
  3380. -    `*'
  3381. -          multiply the next parameter by the other operand.
  3382. -
  3383. -    `/'
  3384. -          divide the next parameter by the other operand.
  3385. -
  3386. -     The "other operand" may be another parameter's value or a constant;
  3387. -     the character TYPE says which.  It can be:
  3388. -
  3389. -    `p'
  3390. -          Use another parameter.  The character POS says which
  3391. -          parameter to use.  Subtract 64 from its ASCII code to get the
  3392. -          position of the desired parameter relative to this one.  Thus,
  3393. -          the character `A' as POS means the parameter after the next
  3394. -          one; the character `?' means the parameter before the next
  3395. -          one.
  3396. -
  3397. -    `c'
  3398. -          Use a constant value.  The character POS specifies the value
  3399. -          of the constant.  The 0200 bit is cleared out, so that 0200
  3400. -          can be used to represent zero.
  3401. -
  3402. -   The following `%'-sequences are special purpose hacks to compensate
  3403. -for the weird designs of obscure terminals.  They modify the next
  3404. -parameter or the next two parameters but do not generate output and do
  3405. -not use up any parameters.  `%m' is a GNU extension; the others are
  3406. -defined in standard Unix termcap.
  3407. -
  3408. -`%n'
  3409. -     Exclusive-or the next parameter with 0140, and likewise the
  3410. -     parameter after next.
  3411. -
  3412. -`%m'
  3413. -     Complement all the bits of the next parameter and the parameter
  3414. -     after next.
  3415. -
  3416. -`%B'
  3417. -     Encode the next parameter in BCD.  It alters the value of the
  3418. -     parameter by adding six times the quotient of the parameter by ten.
  3419. -     Here is a C statement that shows how the new value is computed:
  3420. -
  3421. -          PARM = (PARM / 10) * 16 + PARM % 10;
  3422. -
  3423. -`%D'
  3424. -     Transform the next parameter as needed by Delta Data terminals.
  3425. -     This involves subtracting twice the remainder of the parameter by
  3426. -     16.
  3427. -
  3428. -          PARM -= 2 * (PARM % 16);
  3429. -
  3430. -
  3431. -File: termcap.info,  Node: Using Parameters,  Prev: Encode Parameters,  Up: Parameters
  3432. -
  3433. -Sending Display Commands with Parameters
  3434. -----------------------------------------
  3435. -
  3436. -   The termcap library functions `tparam' and `tgoto' serve as the
  3437. -analog of `printf' for terminal string parameters.  The newer function
  3438. -`tparam' is a GNU extension, more general but missing from Unix
  3439. -termcap.  The original parameter-encoding function is `tgoto', which is
  3440. -preferable for cursor motion.
  3441. -
  3442. -* Menu:
  3443. -
  3444. -* tparam::      The general case, for GNU termcap only.
  3445. -* tgoto::       The special case of cursor motion.
  3446. -
  3447. -
  3448. -File: termcap.info,  Node: tparam,  Next: tgoto,  Up: Using Parameters
  3449. -
  3450. -`tparam'
  3451. -........
  3452. -
  3453. -   The function `tparam' can encode display commands with any number of
  3454. -parameters and allows you to specify the buffer space.  It is the
  3455. -preferred function for encoding parameters for all but the `cm'
  3456. -capability.  Its ANSI C declaration is as follows:
  3457. -
  3458. -     char *tparam (char *CTLSTRING, char *BUFFER, int SIZE, int PARM1,...)
  3459. -
  3460. -   The arguments are a control string CTLSTRING (the value of a terminal
  3461. -capability, presumably), an output buffer BUFFER and SIZE, and any
  3462. -number of integer parameters to be encoded.  The effect of `tparam' is
  3463. -to copy the control string into the buffer, encoding parameters
  3464. -according to the `%' sequences in the control string.
  3465. -
  3466. -   You describe the output buffer by its address, BUFFER, and its size
  3467. -in bytes, SIZE.  If the buffer is not big enough for the data to be
  3468. -stored in it, `tparam' calls `malloc' to get a larger buffer.  In
  3469. -either case, `tparam' returns the address of the buffer it ultimately
  3470. -uses.  If the value equals BUFFER, your original buffer was used.
  3471. -Otherwise, a new buffer was allocated, and you must free it after you
  3472. -are done with printing the results.  If you pass zero for SIZE and
  3473. -BUFFER, `tparam' always allocates the space with `malloc'.
  3474. -
  3475. -   All capabilities that require parameters also have the ability to
  3476. -specify padding, so you should use `tputs' to output the string
  3477. -produced by `tparam'.  *Note Padding::.  Here is an example.
  3478. -
  3479. -     {
  3480. -     char *buf;
  3481. -     char buffer[40];
  3482. -     
  3483. -     buf = tparam (command, buffer, 40, parm);
  3484. -     tputs (buf, 1, fputchar);
  3485. -     if (buf != buffer)
  3486. -     free (buf);
  3487. -     }
  3488. -
  3489. -   If a parameter whose value is zero is encoded with `%.'-style
  3490. -encoding, the result is a null character, which will confuse `tputs'.
  3491. -This would be a serious problem, but luckily `%.' encoding is used only
  3492. -by a few old models of terminal, and only for the `cm' capability.  To
  3493. -solve the problem, use `tgoto' rather than `tparam' to encode the `cm'
  3494. -capability.
  3495. -
  3496. -
  3497. -File: termcap.info,  Node: tgoto,  Prev: tparam,  Up: Using Parameters
  3498. -
  3499. -`tgoto'
  3500. -.......
  3501. -
  3502. -   The special case of cursor motion is handled by `tgoto'.  There are
  3503. -two reasons why you might choose to use `tgoto':
  3504. -
  3505. -   * For Unix compatibility, because Unix termcap does not have
  3506. -     `tparam'.
  3507. -
  3508. -   * For the `cm' capability, since `tgoto' has a special feature to
  3509. -     avoid problems with null characters, tabs and newlines on certain
  3510. -     old terminal types that use `%.' encoding for that capability.
  3511. -
  3512. -   Here is how `tgoto' might be declared in ANSI C:
  3513. -
  3514. -     char *tgoto (char *CSTRING, int HPOS, int VPOS)
  3515. -
  3516. -   There are three arguments, the terminal description's `cm' string and
  3517. -the two cursor position numbers; `tgoto' computes the parametrized
  3518. -string in an internal static buffer and returns the address of that
  3519. -buffer.  The next time you use `tgoto' the same buffer will be reused.
  3520. -
  3521. -   Parameters encoded with `%.' encoding can generate null characters,
  3522. -tabs or newlines.  These might cause trouble: the null character because
  3523. -`tputs' would think that was the end of the string, the tab because the
  3524. -kernel or other software might expand it into spaces, and the newline
  3525. -becaue the kernel might add a carriage-return, or padding characters
  3526. -normally used for a newline.  To prevent such problems, `tgoto' is
  3527. -careful to avoid these characters.  Here is how this works: if the
  3528. -target cursor position value is such as to cause a problem (that is to
  3529. -say, zero, nine or ten), `tgoto' increments it by one, then compensates
  3530. -by appending a string to move the cursor back or up one position.
  3531. -
  3532. -   The compensation strings to use for moving back or up are found in
  3533. -global variables named `BC' and `UP'.  These are actual external C
  3534. -variables with upper case names; they are declared `char *'.  It is up
  3535. -to you to store suitable values in them, normally obtained from the
  3536. -`le' and `up' terminal capabilities in the terminal description with
  3537. -`tgetstr'.  Alternatively, if these two variables are both zero, the
  3538. -feature of avoiding nulls, tabs and newlines is turned off.
  3539. -
  3540. -   It is safe to use `tgoto' for commands other than `cm' only if you
  3541. -have stored zero in `BC' and `UP'.
  3542. -
  3543. -   Note that `tgoto' reverses the order of its operands: the horizontal
  3544. -position comes before the vertical position in the arguments to
  3545. -`tgoto', even though the vertical position comes before the horizontal
  3546. -in the parameters of the `cm' string.  If you use `tgoto' with a
  3547. -command such as `AL' that takes one parameter, you must pass the
  3548. -parameter to `tgoto' as the "vertical position".
  3549. -
  3550. -
  3551. -File: termcap.info,  Node: Data Base,  Next: Capabilities,  Prev: Library,  Up: Top
  3552. -
  3553. -The Format of the Data Base
  3554. -***************************
  3555. -
  3556. -   The termcap data base of terminal descriptions is stored in the file
  3557. -`/etc/termcap'.  It contains terminal descriptions, blank lines, and
  3558. -comments.
  3559. -
  3560. -   A terminal description starts with one or more names for the
  3561. -terminal type.  The information in the description is a series of
  3562. -"capability names" and values.  The capability names have standard
  3563. -meanings (*note Capabilities::.) and their values describe the terminal.
  3564. -
  3565. -* Menu:
  3566. -
  3567. -* Format::      Overall format of a terminal description.
  3568. -* Capability Format::  Format of capabilities within a description.
  3569. -* Naming::      Naming conventions for terminal types.
  3570. -* Inheriting::  Inheriting part of a description from
  3571. -a related terminal type.
  3572. -* Changing::    When changes in the data base take effect.
  3573. -
  3574. -
  3575. -File: termcap.info,  Node: Format,  Next: Capability Format,  Up: Data Base
  3576. -
  3577. -Terminal Description Format
  3578. -===========================
  3579. -
  3580. -   Aside from comments (lines starting with `#', which are ignored),
  3581. -each nonblank line in the termcap data base is a terminal description.
  3582. -A terminal description is nominally a single line, but it can be split
  3583. -into multiple lines by inserting the two characters `\ newline'.  This
  3584. -sequence is ignored wherever it appears in a description.
  3585. -
  3586. -   The preferred way to split the description is between capabilities:
  3587. -insert the four characters `: \ newline tab' immediately before any
  3588. -colon.  This allows each sub-line to start with some indentation.  This
  3589. -works because, after the `\ newline' are ignored, the result is `: tab
  3590. -:'; the first colon ends the preceding capability and the second colon
  3591. -starts the next capability.  If you split with `\ newline' alone, you
  3592. -may not add any indentation after them.
  3593. -
  3594. -   Here is a real example of a terminal description:
  3595. -
  3596. -     dw|vt52|DEC vt52:\
  3597. -             :cr=^M:do=^J:nl=^J:bl=^G:\
  3598. -             :le=^H:bs:cd=\EJ:ce=\EK:cl=\EH\EJ:\
  3599. -             :cm=\EY%+ %+ :co#80:li#24:\
  3600. -             :nd=\EC:ta=^I:pt:sr=\EI:up=\EA:\
  3601. -             :ku=\EA:kd=\EB:kr=\EC:kl=\ED:kb=^H:
  3602. -
  3603. -   Each terminal description begins with several names for the terminal
  3604. -type.  The names are separated by `|' characters, and a colon ends the
  3605. -last name.  The first name should be two characters long; it exists
  3606. -only for the sake of very old Unix systems and is never used in modern
  3607. -systems.  The last name should be a fully verbose name such as "DEC
  3608. -vt52" or "Ann Arbor Ambassador with 48 lines".  The other names should
  3609. -include whatever the user ought to be able to specify to get this
  3610. -terminal type, such as `vt52' or `aaa-48'.  *Note Naming::, for
  3611. -information on how to choose terminal type names.
  3612. -
  3613. -   After the terminal type names come the terminal capabilities,
  3614. -separated by colons and with a colon after the last one.  Each
  3615. -capability has a two-letter name, such as `cm' for "cursor motion
  3616. -string" or `li' for "number of display lines".
  3617. -
  3618. -
  3619. -File: termcap.info,  Node: Capability Format,  Next: Naming,  Prev: Format,  Up: Data Base
  3620. -
  3621. -Writing the Capabilities
  3622. -========================
  3623. -
  3624. -   There are three kinds of capabilities: flags, numbers, and strings.
  3625. -Each kind has its own way of being written in the description.  Each
  3626. -defined capability has by convention a particular kind of value; for
  3627. -example, `li' always has a numeric value and `cm' always a string value.
  3628. -
  3629. -   A flag capability is thought of as having a boolean value: the value
  3630. -is true if the capability is present, false if not.  When the
  3631. -capability is present, just write its name between two colons.
  3632. -
  3633. -   A numeric capability has a value which is a nonnegative number.
  3634. -Write the capability name, a `#', and the number, between two colons.
  3635. -For example, `...:li#48:...' is how you specify the `li' capability for
  3636. -48 lines.
  3637. -
  3638. -   A string-valued capability has a value which is a sequence of
  3639. -characters.  Usually these are the characters used to perform some
  3640. -display operation.  Write the capability name, a `=', and the
  3641. -characters of the value, between two colons.  For example,
  3642. -`...:cm=\E[%i%d;%dH:...' is how the cursor motion command for a
  3643. -standard ANSI terminal would be specified.
  3644. -
  3645. -   Special characters in the string value can be expressed using
  3646. -`\'-escape sequences as in C; in addition, `\E' stands for ESC.  `^' is
  3647. -also a kind of escape character; `^' followed by CHAR stands for the
  3648. -control-equivalent of CHAR.  Thus, `^a' stands for the character
  3649. -control-a, just like `\001'.  `\' and `^' themselves can be represented
  3650. -as `\\' and `\^'.
  3651. -
  3652. -   To include a colon in the string, you must write `\072'.  You might
  3653. -ask, "Why can't `\:' be used to represent a colon?"  The reason is that
  3654. -the interrogation functions do not count slashes while looking for a
  3655. -capability.  Even if `:ce=ab\:cd:' were interpreted as giving the `ce'
  3656. -capability the value `ab:cd', it would also appear to define `cd' as a
  3657. -flag.
  3658. -
  3659. -   The string value will often contain digits at the front to specify
  3660. -padding (*note Padding::.) and/or `%'-sequences within to specify how
  3661. -to encode parameters (*note Parameters::.).  Although these things are
  3662. -not to be output literally to the terminal, they are considered part of
  3663. -the value of the capability.  They are special only when the string
  3664. -value is processed by `tputs', `tparam' or `tgoto'.  By contrast, `\'
  3665. -and `^' are considered part of the syntax for specifying the characters
  3666. -in the string.
  3667. -
  3668. -   Let's look at the VT52 example again:
  3669. -
  3670. -     dw|vt52|DEC vt52:\
  3671. -             :cr=^M:do=^J:nl=^J:bl=^G:\
  3672. -             :le=^H:bs:cd=\EJ:ce=\EK:cl=\EH\EJ:\
  3673. -             :cm=\EY%+ %+ :co#80:li#24:\
  3674. -             :nd=\EC:ta=^I:pt:sr=\EI:up=\EA:\
  3675. -             :ku=\EA:kd=\EB:kr=\EC:kl=\ED:kb=^H:
  3676. -
  3677. -   Here we see the numeric-valued capabilities `co' and `li', the flags
  3678. -`bs' and `pt', and many string-valued capabilities.  Most of the
  3679. -strings start with ESC represented as `\E'.  The rest contain control
  3680. -characters represented using `^'.  The meanings of the individual
  3681. -capabilities are defined elsewhere (*note Capabilities::.).
  3682. -
  3683. diff -rup --new-file baseline/fsf/termcap/termcap.info-2 amiga/fsf/termcap/termcap.info-2
  3684. --- baseline/fsf/termcap/termcap.info-2    Wed Jul 26 08:44:13 1995
  3685. +++ amiga/fsf/termcap/termcap.info-2    Wed Dec 31 17:00:00 1969
  3686. @@ -1,974 +0,0 @@
  3687. -This is Info file ./termcap.info, produced by Makeinfo-1.55 from the
  3688. -input file ./termcap.texi.
  3689. -
  3690. -   This file documents the termcap library of the GNU system.
  3691. -
  3692. -   Copyright (C) 1988 Free Software Foundation, Inc.
  3693. -
  3694. -   Permission is granted to make and distribute verbatim copies of this
  3695. -manual provided the copyright notice and this permission notice are
  3696. -preserved on all copies.
  3697. -
  3698. -   Permission is granted to copy and distribute modified versions of
  3699. -this manual under the conditions for verbatim copying, provided that
  3700. -the entire resulting derived work is distributed under the terms of a
  3701. -permission notice identical to this one.
  3702. -
  3703. -   Permission is granted to copy and distribute translations of this
  3704. -manual into another language, under the above conditions for modified
  3705. -versions, except that this permission notice may be stated in a
  3706. -translation approved by the Foundation.
  3707. -
  3708. -
  3709. -File: termcap.info,  Node: Naming,  Next: Inheriting,  Prev: Capability Format,  Up: Data Base
  3710. -
  3711. -Terminal Type Name Conventions
  3712. -==============================
  3713. -
  3714. -   There are conventions for choosing names of terminal types.  For one
  3715. -thing, all letters should be in lower case.  The terminal type for a
  3716. -terminal in its most usual or most fundamental mode of operation should
  3717. -not have a hyphen in it.
  3718. -
  3719. -   If the same terminal has other modes of operation which require
  3720. -different terminal descriptions, these variant descriptions are given
  3721. -names made by adding suffixes with hyphens.  Such alternate descriptions
  3722. -are used for two reasons:
  3723. -
  3724. -   * When the terminal has a switch that changes its behavior.  Since
  3725. -     the computer cannot tell how the switch is set, the user must tell
  3726. -     the computer by choosing the appropriate terminal type name.
  3727. -
  3728. -     For example, the VT-100 has a setup flag that controls whether the
  3729. -     cursor wraps at the right margin.  If this flag is set to "wrap",
  3730. -     you must use the terminal type `vt100-am'.  Otherwise you must use
  3731. -     `vt100-nam'.  Plain `vt100' is defined as a synonym for either
  3732. -     `vt100-am' or `vt100-nam' depending on the preferences of the
  3733. -     local site.
  3734. -
  3735. -     The standard suffix `-am' stands for "automatic margins".
  3736. -
  3737. -   * To give the user a choice in how to use the terminal.  This is done
  3738. -     when the terminal has a switch that the computer normally controls.
  3739. -
  3740. -     For example, the Ann Arbor Ambassador can be configured with many
  3741. -     screen sizes ranging from 20 to 60 lines.  Fewer lines make bigger
  3742. -     characters but more lines let you see more of what you are editing.
  3743. -     As a result, users have different preferences.  Therefore, termcap
  3744. -     provides terminal types for many screen sizes.  If you choose type
  3745. -     `aaa-30', the terminal will be configured to use 30 lines; if you
  3746. -     choose `aaa-48', 48 lines will be used, and so on.
  3747. -
  3748. -   Here is a list of standard suffixes and their conventional meanings:
  3749. -
  3750. -`-w'
  3751. -     Short for "wide".  This is a mode that gives the terminal more
  3752. -     columns than usual.  This is normally a user option.
  3753. -
  3754. -`-am'
  3755. -     "Automatic margins".  This is an alternate description for use when
  3756. -     the terminal's margin-wrap switch is on; it contains the `am'
  3757. -     flag.  The implication is that normally the switch is off and the
  3758. -     usual description for the terminal says that the switch is off.
  3759. -
  3760. -`-nam'
  3761. -     "No automatic margins".  The opposite of `-am', this names an
  3762. -     alternative description which lacks the `am' flag.  This implies
  3763. -     that the terminal is normally operated with the margin-wrap switch
  3764. -     turned on, and the normal description of the terminal says so.
  3765. -
  3766. -`-na'
  3767. -     "No arrows".  This terminal description initializes the terminal to
  3768. -     keep its arrow keys in local mode.  This is a user option.
  3769. -
  3770. -`-rv'
  3771. -     "Reverse video".  This terminal description causes text output for
  3772. -     normal video to appear as reverse, and text output for reverse
  3773. -     video to come out as normal.  Often this description differs from
  3774. -     the usual one by interchanging the two strings which turn reverse
  3775. -     video on and off.
  3776. -
  3777. -     This is a user option; you can choose either the "reverse video"
  3778. -     variant terminal type or the normal terminal type, and termcap will
  3779. -     obey.
  3780. -
  3781. -`-s'
  3782. -     "Status".  Says to enable use of a status line which ordinary
  3783. -     output does not touch (*note Status Line::.).
  3784. -
  3785. -     Some terminals have a special line that is used only as a status
  3786. -     line.  For these terminals, there is no need for an `-s' variant;
  3787. -     the status line commands should be defined by default.  On other
  3788. -     terminals, enabling a status line means removing one screen line
  3789. -     from ordinary use and reducing the effective screen height.  For
  3790. -     these terminals, the user can choose the `-s' variant type to
  3791. -     request use of a status line.
  3792. -
  3793. -`-NLINES'
  3794. -     Says to operate with NLINES lines on the screen, for terminals
  3795. -     such as the Ambassador which provide this as an option.  Normally
  3796. -     this is a user option; by choosing the terminal type, you control
  3797. -     how many lines termcap will use.
  3798. -
  3799. -`-NPAGESp'
  3800. -     Says that the terminal has NPAGES pages worth of screen memory,
  3801. -     for terminals where this is a hardware option.
  3802. -
  3803. -`-unk'
  3804. -     Says that description is not for direct use, but only for
  3805. -     reference in `tc' capabilities.  Such a description is a kind of
  3806. -     subroutine, because it describes the common characteristics of
  3807. -     several variant descriptions that would use other suffixes in
  3808. -     place of `-unk'.
  3809. -
  3810. -
  3811. -File: termcap.info,  Node: Inheriting,  Next: Changing,  Prev: Naming,  Up: Data Base
  3812. -
  3813. -Inheriting from Related Descriptions
  3814. -====================================
  3815. -
  3816. -   When two terminal descriptions are similar, their identical parts do
  3817. -not need to be given twice.  Instead, one of the two can be defined in
  3818. -terms of the other, using the `tc' capability.  We say that one
  3819. -description "refers to" the other, or "inherits from" the other.
  3820. -
  3821. -   The `tc' capability must be the last one in the terminal description,
  3822. -and its value is a string which is the name of another terminal type
  3823. -which is referred to.  For example,
  3824. -
  3825. -     N9|aaa|ambassador|aaa-30|ann arbor ambassador/30 lines:\
  3826. -             :ti=\E[2J\E[30;0;0;30p:\
  3827. -             :te=\E[60;0;0;30p\E[30;1H\E[J:\
  3828. -             :li#30:tc=aaa-unk:
  3829. -
  3830. -defines the terminal type `aaa-30' (also known as plain `aaa') in terms
  3831. -of `aaa-unk', which defines everything about the Ambassador that is
  3832. -independent of screen height.  The types `aaa-36', `aaa-48' and so on
  3833. -for other screen heights are likewise defined to inherit from `aaa-unk'.
  3834. -
  3835. -   The capabilities overridden by `aaa-30' include `li', which says how
  3836. -many lines there are, and `ti' and `te', which configure the terminal
  3837. -to use that many lines.
  3838. -
  3839. -   The effective terminal description for type `aaa' consists of the
  3840. -text shown above followed by the text of the description of `aaa-unk'.
  3841. -The `tc' capability is handled automatically by `tgetent', which finds
  3842. -the description thus referenced and combines the two descriptions
  3843. -(*note Find::.).  Therefore, only the implementor of the terminal
  3844. -descriptions needs to think about using `tc'.  Users and application
  3845. -programmers do not need to be concerned with it.
  3846. -
  3847. -   Since the reference terminal description is used last, capabilities
  3848. -specified in the referring description override any specifications of
  3849. -the same capabilities in the reference description.
  3850. -
  3851. -   The referring description can cancel out a capability without
  3852. -specifying any new value for it by means of a special trick.  Write the
  3853. -capability in the referring description, with the character `@' after
  3854. -the capability name, as follows:
  3855. -
  3856. -     NZ|aaa-30-nam|ann arbor ambassador/30 lines/no automatic-margins:\
  3857. -             :am@:tc=aaa-30:
  3858. -
  3859. -
  3860. -File: termcap.info,  Node: Changing,  Prev: Inheriting,  Up: Data Base
  3861. -
  3862. -When Changes in the Data Base Take Effect
  3863. -=========================================
  3864. -
  3865. -   Each application program must read the terminal description from the
  3866. -data base, so a change in the data base is effective for all jobs
  3867. -started after the change is made.
  3868. -
  3869. -   The change will usually have no effect on a job that have been in
  3870. -existence since before the change. The program probably read the
  3871. -terminal description once, when it was started, and is continuing to
  3872. -use what it read then.  If the program does not have a feature for
  3873. -reexamining the data base, then you will need to run it again (probably
  3874. -killing the old job).
  3875. -
  3876. -   If the description in use is coming from the `TERMCAP' environment
  3877. -variable, then the data base file is effectively overridden, and
  3878. -changes in it will have no effect until you change the `TERMCAP'
  3879. -variable as well.  For example, some users' `.login' files
  3880. -automatically copy the terminal description into `TERMCAP' to speed
  3881. -startup of applications.  If you have done this, you will need to
  3882. -change the `TERMCAP' variable to make the changed data base take effect.
  3883. -
  3884. -
  3885. -File: termcap.info,  Node: Capabilities,  Next: Summary,  Prev: Data Base,  Up: Top
  3886. -
  3887. -Definitions of the Terminal Capabilities
  3888. -****************************************
  3889. -
  3890. -   This section is divided into many subsections, each for one aspect of
  3891. -use of display terminals.  For writing a display program, you usually
  3892. -need only check the subsections for the operations you want to use.
  3893. -For writing a terminal description, you must read each subsection and
  3894. -fill in the capabilities described there.
  3895. -
  3896. -   String capabilities that are display commands may require numeric
  3897. -parameters (*note Parameters::.).  Most such capabilities do not use
  3898. -parameters.  When a capability requires parameters, this is explicitly
  3899. -stated at the beginning of its definition.  In simple cases, the first
  3900. -or second sentence of the definition mentions all the parameters, in
  3901. -the order they should be given, using a name in upper case for each
  3902. -one.  For example, the `rp' capability is a command that requires two
  3903. -parameters; its definition begins as follows:
  3904. -
  3905. -     String of commands to output a graphic character C, repeated N
  3906. -     times.
  3907. -
  3908. -   In complex cases or when there are many parameters, they are
  3909. -described explicitly.
  3910. -
  3911. -   When a capability is described as obsolete, this means that programs
  3912. -should not be written to look for it, but terminal descriptions should
  3913. -still be written to provide it.
  3914. -
  3915. -   When a capability is described as very obsolete, this means that it
  3916. -should be omitted from terminal descriptions as well.
  3917. -
  3918. -* Menu:
  3919. -
  3920. -* Basic::       Basic characteristics.
  3921. -* Screen Size::  Screen size, and what happens when it changes.
  3922. -* Cursor Motion::  Various ways to move the cursor.
  3923. -* Wrapping::    What happens if you write a character in the last column.
  3924. -* Scrolling::   Pushing text up and down on the screen.
  3925. -* Windows::     Limiting the part of the window that output affects.
  3926. -* Clearing::    Erasing one or many lines.
  3927. -* Insdel Line::  Making new blank lines in mid-screen; deleting lines.
  3928. -* Insdel Char::  Inserting and deleting characters within a line.
  3929. -* Standout::    Highlighting some of the text.
  3930. -* Underlining::  Underlining some of the text.
  3931. -* Cursor Visibility::  Making the cursor more or less easy to spot.
  3932. -* Bell::        Attracts user's attention; not localized on the screen.
  3933. -* Keypad::      Recognizing when function keys or arrows are typed.
  3934. -* Meta Key::    META acts like an extra shift key.
  3935. -* Initialization::  Commands used to initialize or reset the terminal.
  3936. -* Pad Specs::   Info for the kernel on how much padding is needed.
  3937. -* Status Line::  A status line displays "background" information.
  3938. -* Half-Line::   Moving by half-lines, for superscripts and subscripts.
  3939. -* Printer::     Controlling auxiliary printers of display terminals.
  3940. -
  3941. -
  3942. -File: termcap.info,  Node: Basic,  Next: Screen Size,  Up: Capabilities
  3943. -
  3944. -Basic Characteristics
  3945. -=====================
  3946. -
  3947. -   This section documents the capabilities that describe the basic and
  3948. -nature of the terminal, and also those that are relevant to the output
  3949. -of graphic characters.
  3950. -
  3951. -`os'
  3952. -     Flag whose presence means that the terminal can overstrike.  This
  3953. -     means that outputting a graphic character does not erase whatever
  3954. -     was present in the same character position before.  The terminals
  3955. -     that can overstrike include printing terminals, storage tubes (all
  3956. -     obsolete nowadays), and many bit-map displays.
  3957. -
  3958. -`eo'
  3959. -     Flag whose presence means that outputting a space erases a
  3960. -     character position even if the terminal supports overstriking.  If
  3961. -     this flag is not present and overstriking is supported, output of
  3962. -     a space has no effect except to move the cursor.
  3963. -
  3964. -     (On terminals that do not support overstriking, you can always
  3965. -     assume that outputting a space at a position erases whatever
  3966. -     character was previously displayed there.)
  3967. -
  3968. -`gn'
  3969. -     Flag whose presence means that this terminal type is a generic type
  3970. -     which does not really describe any particular terminal.  Generic
  3971. -     types are intended for use as the default type assigned when the
  3972. -     user connects to the system, with the intention that the user
  3973. -     should specify what type he really has.  One example of a generic
  3974. -     type is the type `network'.
  3975. -
  3976. -     Since the generic type cannot say how to do anything interesting
  3977. -     with the terminal, termcap-using programs will always find that the
  3978. -     terminal is too weak to be supported if the user has failed to
  3979. -     specify a real terminal type in place of the generic one.  The
  3980. -     `gn' flag directs these programs to use a different error message:
  3981. -     "You have not specified your real terminal type", rather than
  3982. -     "Your terminal is not powerful enough to be used".
  3983. -
  3984. -`hc'
  3985. -     Flag whose presence means this is a hardcopy terminal.
  3986. -
  3987. -`rp'
  3988. -     String of commands to output a graphic character C, repeated N
  3989. -     times.  The first parameter value is the ASCII code for the desired
  3990. -     character, and the second parameter is the number of times to
  3991. -     repeat the character.  Often this command requires padding
  3992. -     proportional to the number of times the character is repeated.
  3993. -     This effect can be had by using parameter arithmetic with
  3994. -     `%'-sequences to compute the amount of padding, then generating
  3995. -     the result as a number at the front of the string so that `tputs'
  3996. -     will treat it as padding.
  3997. -
  3998. -`hz'
  3999. -     Flag whose presence means that the ASCII character `~' cannot be
  4000. -     output on this terminal because it is used for display commands.
  4001. -
  4002. -     Programs handle this flag by checking all text to be output and
  4003. -     replacing each `~' with some other character(s).  If this is not
  4004. -     done, the screen will be thoroughly garbled.
  4005. -
  4006. -     The old Hazeltine terminals that required such treatment are
  4007. -     probably very rare today, so you might as well not bother to
  4008. -     support this flag.
  4009. -
  4010. -`CC'
  4011. -     String whose presence means the terminal has a settable command
  4012. -     character.  The value of the string is the default command
  4013. -     character (which is usually ESC).
  4014. -
  4015. -     All the strings of commands in the terminal description should be
  4016. -     written to use the default command character.  If you are writing
  4017. -     an application program that changes the command character, use the
  4018. -     `CC' capability to figure out how to translate all the display
  4019. -     commands to work with the new command character.
  4020. -
  4021. -     Most programs have no reason to look at the `CC' capability.
  4022. -
  4023. -`xb'
  4024. -     Flag whose presence identifies Superbee terminals which are unable
  4025. -     to transmit the characters ESC and `Control-C'.  Programs which
  4026. -     support this flag are supposed to check the input for the code
  4027. -     sequences sent by the F1 and F2 keys, and pretend that ESC or
  4028. -     `Control-C' (respectively) had been read.  But this flag is
  4029. -     obsolete, and not worth supporting.
  4030. -
  4031. -
  4032. -File: termcap.info,  Node: Screen Size,  Next: Cursor Motion,  Prev: Basic,  Up: Capabilities
  4033. -
  4034. -Screen Size
  4035. -===========
  4036. -
  4037. -   A terminal description has two capabilities, `co' and `li', that
  4038. -describe the screen size in columns and lines.  But there is more to
  4039. -the question of screen size than this.
  4040. -
  4041. -   On some operating systems the "screen" is really a window and the
  4042. -effective width can vary.  On some of these systems, `tgetnum' uses the
  4043. -actual width of the window to decide what value to return for the `co'
  4044. -capability, overriding what is actually written in the terminal
  4045. -description.  On other systems, it is up to the application program to
  4046. -check the actual window width using a system call.  For example, on BSD
  4047. -4.3 systems, the system call `ioctl' with code `TIOCGWINSZ' will tell
  4048. -you the current screen size.
  4049. -
  4050. -   On all window systems, termcap is powerless to advise the application
  4051. -program if the user resizes the window.  Application programs must deal
  4052. -with this possibility in a system-dependent fashion.  On some systems
  4053. -the C shell handles part of the problem by detecting changes in window
  4054. -size and setting the `TERMCAP' environment variable appropriately.
  4055. -This takes care of application programs that are started subsequently.
  4056. -It does not help application programs already running.
  4057. -
  4058. -   On some systems, including BSD 4.3, all programs using a terminal get
  4059. -a signal named `SIGWINCH' whenever the screen size changes.  Programs
  4060. -that use termcap should handle this signal by using `ioctl TIOCGWINSZ'
  4061. -to learn the new screen size.
  4062. -
  4063. -`co'
  4064. -     Numeric value, the width of the screen in character positions.
  4065. -     Even hardcopy terminals normally have a `co' capability.
  4066. -
  4067. -`li'
  4068. -     Numeric value, the height of the screen in lines.
  4069. -
  4070. -
  4071. -File: termcap.info,  Node: Cursor Motion,  Next: Wrapping,  Prev: Screen Size,  Up: Capabilities
  4072. -
  4073. -Cursor Motion
  4074. -=============
  4075. -
  4076. -   Termcap assumes that the terminal has a "cursor", a spot on the
  4077. -screen where a visible mark is displayed, and that most display
  4078. -commands take effect at the position of the cursor.  It follows that
  4079. -moving the cursor to a specified location is very important.
  4080. -
  4081. -   There are many terminal capabilities for different cursor motion
  4082. -operations.  A terminal description should define as many as possible,
  4083. -but most programs do not need to use most of them.  One capability,
  4084. -`cm', moves the cursor to an arbitrary place on the screen; this by
  4085. -itself is sufficient for any application as long as there is no need to
  4086. -support hardcopy terminals or certain old, weak displays that have only
  4087. -relative motion commands.  Use of other cursor motion capabilities is an
  4088. -optimization, enabling the program to output fewer characters in some
  4089. -common cases.
  4090. -
  4091. -   If you plan to use the relative cursor motion commands in an
  4092. -application program, you must know what the starting cursor position
  4093. -is.  To do this, you must keep track of the cursor position and update
  4094. -the records each time anything is output to the terminal, including
  4095. -graphic characters.  In addition, it is necessary to know whether the
  4096. -terminal wraps after writing in the rightmost column.  *Note Wrapping::.
  4097. -
  4098. -   One other motion capability needs special mention: `nw' moves the
  4099. -cursor to the beginning of the following line, perhaps clearing all the
  4100. -starting line after the cursor, or perhaps not clearing at all.  This
  4101. -capability is a least common denominator that is probably supported
  4102. -even by terminals that cannot do most other things such as `cm' or `do'.
  4103. -Even hardcopy terminals can support `nw'.
  4104. -
  4105. -`cm'
  4106. -     String of commands to position the cursor at line L, column C.
  4107. -     Both parameters are origin-zero, and are defined relative to the
  4108. -     screen, not relative to display memory.
  4109. -
  4110. -     All display terminals except a few very obsolete ones support `cm',
  4111. -     so it is acceptable for an application program to refuse to
  4112. -     operate on terminals lacking `cm'.
  4113. -
  4114. -`ho'
  4115. -     String of commands to move the cursor to the upper left corner of
  4116. -     the screen (this position is called the "home position").  In
  4117. -     terminals where the upper left corner of the screen is not the
  4118. -     same as the beginning of display memory, this command must go to
  4119. -     the upper left corner of the screen, not the beginning of display
  4120. -     memory.
  4121. -
  4122. -     Every display terminal supports this capability, and many
  4123. -     application programs refuse to operate if the `ho' capability is
  4124. -     missing.
  4125. -
  4126. -`ll'
  4127. -     String of commands to move the cursor to the lower left corner of
  4128. -     the screen.  On some terminals, moving up from home position does
  4129. -     this, but programs should never assume that will work.  Just
  4130. -     output the `ll' string (if it is provided); if moving to home
  4131. -     position and then moving up is the best way to get there, the `ll'
  4132. -     command will do that.
  4133. -
  4134. -`cr'
  4135. -     String of commands to move the cursor to the beginning of the line
  4136. -     it is on.  If this capability is not specified, many programs
  4137. -     assume they can use the ASCII carriage return character for this.
  4138. -
  4139. -`le'
  4140. -     String of commands to move the cursor left one column.  Unless the
  4141. -     `bw' flag capability is specified, the effect is undefined if the
  4142. -     cursor is at the left margin; do not use this command there.  If
  4143. -     `bw' is present, this command may be used at the left margin, and
  4144. -     it wraps the cursor to the last column of the preceding line.
  4145. -
  4146. -`nd'
  4147. -     String of commands to move the cursor right one column.  The
  4148. -     effect is undefined if the cursor is at the right margin; do not
  4149. -     use this command there, not even if `am' is present.
  4150. -
  4151. -`up'
  4152. -     String of commands to move the cursor vertically up one line.  The
  4153. -     effect of sending this string when on the top line is undefined;
  4154. -     programs should never use it that way.
  4155. -
  4156. -`do'
  4157. -     String of commands to move the cursor vertically down one line.
  4158. -     The effect of sending this string when on the bottom line is
  4159. -     undefined; programs should never use it that way.
  4160. -
  4161. -     Some programs do use `do' to scroll up one line if used at the
  4162. -     bottom line, if `sf' is not defined but `sr' is.  This is only to
  4163. -     compensate for certain old, incorrect terminal descriptions.  (In
  4164. -     principle this might actually lead to incorrect behavior on other
  4165. -     terminals, but that seems to happen rarely if ever.)  But the
  4166. -     proper solution is that the terminal description should define
  4167. -     `sf' as well as `do' if the command is suitable for scrolling.
  4168. -
  4169. -     The original idea was that this string would not contain a newline
  4170. -     character and therefore could be used without disabling the
  4171. -     kernel's usual habit of converting of newline into a
  4172. -     carriage-return newline sequence.  But many terminal descriptions
  4173. -     do use newline in the `do' string, so this is not possible; a
  4174. -     program which sends the `do' string must disable output conversion
  4175. -     in the kernel (*note Initialize::.).
  4176. -
  4177. -`bw'
  4178. -     Flag whose presence says that `le' may be used in column zero to
  4179. -     move to the last column of the preceding line.  If this flag is
  4180. -     not present, `le' should not be used in column zero.
  4181. -
  4182. -`nw'
  4183. -     String of commands to move the cursor to start of next line,
  4184. -     possibly clearing rest of line (following the cursor) before
  4185. -     moving.
  4186. -
  4187. -`DO', `UP', `LE', `RI'
  4188. -     Strings of commands to move the cursor N lines down vertically, up
  4189. -     vertically, or N columns left or right.  Do not attempt to move
  4190. -     past any edge of the screen with these commands; the effect of
  4191. -     trying that is undefined.  Only a few terminal descriptions provide
  4192. -     these commands, and most programs do not use them.
  4193. -
  4194. -`CM'
  4195. -     String of commands to position the cursor at line L, column C,
  4196. -     relative to display memory.  Both parameters are origin-zero.
  4197. -     This capability is present only in terminals where there is a
  4198. -     difference between screen-relative and memory-relative addressing,
  4199. -     and not even in all such terminals.
  4200. -
  4201. -`ch'
  4202. -     String of commands to position the cursor at column C in the same
  4203. -     line it is on.  This is a special case of `cm' in which the
  4204. -     vertical position is not changed.  The `ch' capability is provided
  4205. -     only when it is faster to output than `cm' would be in this
  4206. -     special case.  Programs should not assume most display terminals
  4207. -     have `ch'.
  4208. -
  4209. -`cv'
  4210. -     String of commands to position the cursor at line L in the same
  4211. -     column.  This is a special case of `cm' in which the horizontal
  4212. -     position is not changed.  The `cv' capability is provided only
  4213. -     when it is faster to output than `cm' would be in this special
  4214. -     case.  Programs should not assume most display terminals have `cv'.
  4215. -
  4216. -`sc'
  4217. -     String of commands to make the terminal save the current cursor
  4218. -     position.  Only the last saved position can be used.  If this
  4219. -     capability is present, `rc' should be provided also.  Most
  4220. -     terminals have neither.
  4221. -
  4222. -`rc'
  4223. -     String of commands to make the terminal restore the last saved
  4224. -     cursor position.  If this capability is present, `sc' should be
  4225. -     provided also.  Most terminals have neither.
  4226. -
  4227. -`ff'
  4228. -     String of commands to advance to the next page, for a hardcopy
  4229. -     terminal.
  4230. -
  4231. -`ta'
  4232. -     String of commands to move the cursor right to the next hardware
  4233. -     tab stop column.  Missing if the terminal does not have any kind of
  4234. -     hardware tabs.  Do not send this command if the kernel's terminal
  4235. -     modes say that the kernel is expanding tabs into spaces.
  4236. -
  4237. -`bt'
  4238. -     String of commands to move the cursor left to the previous hardware
  4239. -     tab stop column.  Missing if the terminal has no such ability; many
  4240. -     terminals do not.  Do not send this command if the kernel's
  4241. -     terminal modes say that the kernel is expanding tabs into spaces.
  4242. -
  4243. -   The following obsolete capabilities should be included in terminal
  4244. -descriptions when appropriate, but should not be looked at by new
  4245. -programs.
  4246. -
  4247. -`nc'
  4248. -     Flag whose presence means the terminal does not support the ASCII
  4249. -     carriage return character as `cr'.  This flag is needed because
  4250. -     old programs assume, when the `cr' capability is missing, that
  4251. -     ASCII carriage return can be used for the purpose.  We use `nc' to
  4252. -     tell the old programs that carriage return may not be used.
  4253. -
  4254. -     New programs should not assume any default for `cr', so they need
  4255. -     not look at `nc'.  However, descriptions should contain `nc'
  4256. -     whenever they do not contain `cr'.
  4257. -
  4258. -`xt'
  4259. -     Flag whose presence means that the ASCII tab character may not be
  4260. -     used for cursor motion.  This flag exists because old programs
  4261. -     assume, when the `ta' capability is missing, that ASCII tab can be
  4262. -     used for the purpose.  We use `xt' to tell the old programs not to
  4263. -     use tab.
  4264. -
  4265. -     New programs should not assume any default for `ta', so they need
  4266. -     not look at `xt' in connection with cursor motion.  Note that `xt'
  4267. -     also has implications for standout mode (*note Standout::.).  It
  4268. -     is obsolete in regard to cursor motion but not in regard to
  4269. -     standout.
  4270. -
  4271. -     In fact, `xt' means that the terminal is a Teleray 1061.
  4272. -
  4273. -`bc'
  4274. -     Very obsolete alternative name for the `le' capability.
  4275. -
  4276. -`bs'
  4277. -     Flag whose presence means that the ASCII character backspace may be
  4278. -     used to move the cursor left.  Obsolete; look at `le' instead.
  4279. -
  4280. -`nl'
  4281. -     Obsolete capability which is a string that can either be used to
  4282. -     move the cursor down or to scroll.  The same string must scroll
  4283. -     when used on the bottom line and move the cursor when used on any
  4284. -     other line.  New programs should use `do' or `sf', and ignore `nl'.
  4285. -
  4286. -     If there is no `nl' capability, some old programs assume they can
  4287. -     use the newline character for this purpose.  These programs follow
  4288. -     a bad practice, but because they exist, it is still desirable to
  4289. -     define the `nl' capability in a terminal description if the best
  4290. -     way to move down is *not* a newline.
  4291. -
  4292. -
  4293. -File: termcap.info,  Node: Wrapping,  Next: Scrolling,  Prev: Cursor Motion,  Up: Capabilities
  4294. -
  4295. -Wrapping
  4296. -========
  4297. -
  4298. -   "Wrapping" means moving the cursor from the right margin to the left
  4299. -margin of the following line.  Some terminals wrap automatically when a
  4300. -graphic character is output in the last column, while others do not.
  4301. -Most application programs that use termcap need to know whether the
  4302. -terminal wraps.  There are two special flag capabilities to describe
  4303. -what the terminal does when a graphic character is output in the last
  4304. -column.
  4305. -
  4306. -`am'
  4307. -     Flag whose presence means that writing a character in the last
  4308. -     column causes the cursor to wrap to the beginning of the next line.
  4309. -
  4310. -     If `am' is not present, writing in the last column leaves the
  4311. -     cursor at the place where the character was written.
  4312. -
  4313. -     Writing in the last column of the last line should be avoided on
  4314. -     terminals with `am', as it may or may not cause scrolling to occur
  4315. -     (*note Scrolling::.).  Scrolling is surely not what you would
  4316. -     intend.
  4317. -
  4318. -     If your program needs to check the `am' flag, then it also needs
  4319. -     to check the `xn' flag which indicates that wrapping happens in a
  4320. -     strange way.  Many common terminals have the `xn' flag.
  4321. -
  4322. -`xn'
  4323. -     Flag whose presence means that the cursor wraps in a strange way.
  4324. -     At least two distinct kinds of strange behavior are known; the
  4325. -     termcap data base does not contain anything to distinguish the two.
  4326. -
  4327. -     On Concept-100 terminals, output in the last column wraps the
  4328. -     cursor almost like an ordinary `am' terminal.  But if the next
  4329. -     thing output is a newline, it is ignored.
  4330. -
  4331. -     DEC VT-100 terminals (when the wrap switch is on) do a different
  4332. -     strange thing: the cursor wraps only if the next thing output is
  4333. -     another graphic character.  In fact, the wrap occurs when the
  4334. -     following graphic character is received by the terminal, before the
  4335. -     character is placed on the screen.
  4336. -
  4337. -     On both of these terminals, after writing in the last column a
  4338. -     following graphic character will be displayed in the first column
  4339. -     of the following line.  But the effect of relative cursor motion
  4340. -     characters such as newline or backspace at such a time depends on
  4341. -     the terminal.  The effect of erase or scrolling commands also
  4342. -     depends on the terminal.  You can't assume anything about what
  4343. -     they will do on a terminal that has `xn'.  So, to be safe, you
  4344. -     should never do these things at such a time on such a terminal.
  4345. -
  4346. -     To be sure of reliable results on a terminal which has the `xn'
  4347. -     flag, output a `cm' absolute positioning command after writing in
  4348. -     the last column.  Another safe thing to do is to output
  4349. -     carriage-return newline, which will leave the cursor at the
  4350. -     beginning of the following line.
  4351. -
  4352. -`LP'
  4353. -     Flag whose presence means that it is safe to write in the last
  4354. -     column of the last line without worrying about undesired
  4355. -     scrolling.  `LP' indicates the DEC flavor of `xn' strangeness.
  4356. -
  4357. -
  4358. -File: termcap.info,  Node: Scrolling,  Next: Windows,  Prev: Wrapping,  Up: Capabilities
  4359. -
  4360. -Scrolling
  4361. -=========
  4362. -
  4363. -   "Scrolling" means moving the contents of the screen up or down one or
  4364. -more lines.  Moving the contents up is "forward scrolling"; moving them
  4365. -down is "reverse scrolling".
  4366. -
  4367. -   Scrolling happens after each line of output during ordinary output
  4368. -on most display terminals.  But in an application program that uses
  4369. -termcap for random-access output, scrolling happens only when
  4370. -explicitly requested with the commands in this section.
  4371. -
  4372. -   Some terminals have a "scroll region" feature.  This lets you limit
  4373. -the effect of scrolling to a specified range of lines.  Lines outside
  4374. -the range are unaffected when scrolling happens.  The scroll region
  4375. -feature is available if either `cs' or `cS' is present.
  4376. -
  4377. -`sf'
  4378. -     String of commands to scroll the screen one line up, assuming it is
  4379. -     output with the cursor at the beginning of the bottom line.
  4380. -
  4381. -`sr'
  4382. -     String of commands to scroll the screen one line down, assuming it
  4383. -     is output with the cursor at the beginning of the top line.
  4384. -
  4385. -`do'
  4386. -     A few programs will try to use `do' to do the work of `sf'.  This
  4387. -     is not really correct--it is an attempt to compensate for the
  4388. -     absence of a `sf' command in some old terminal descriptions.
  4389. -
  4390. -     Since these terminal descriptions do define `sr', perhaps at one
  4391. -     time the definition of `do' was different and it could be used for
  4392. -     scrolling as well.  But it isn't desirable to combine these two
  4393. -     functions in one capability, since scrolling often requires more
  4394. -     padding than simply moving the cursor down.  Defining `sf' and
  4395. -     `do' separately allows you to specify the padding properly.  Also,
  4396. -     all sources agree that `do' should not be relied on to do
  4397. -     scrolling.
  4398. -
  4399. -     So the best approach is to add `sf' capabilities to the
  4400. -     descriptions of these terminals, copying the definition of `do' if
  4401. -     that does scroll.
  4402. -
  4403. -`SF'
  4404. -     String of commands to scroll the screen N lines up, assuming it is
  4405. -     output with the cursor at the beginning of the bottom line.
  4406. -
  4407. -`SR'
  4408. -     String of commands to scroll the screen N lines down, assuming it
  4409. -     is output with the cursor at the beginning of the top line.
  4410. -
  4411. -`cs'
  4412. -     String of commands to set the scroll region.  This command takes
  4413. -     two parameters, START and END, which are the line numbers
  4414. -     (origin-zero) of the first line to include in the scroll region
  4415. -     and of the last line to include in it.  When a scroll region is
  4416. -     set, scrolling is limited to the specified range of lines; lines
  4417. -     outside the range are not affected by scroll commands.
  4418. -
  4419. -     Do not try to move the cursor outside the scroll region.  The
  4420. -     region remains set until explicitly removed.  To remove the scroll
  4421. -     region, use another `cs' command specifying the full height of the
  4422. -     screen.
  4423. -
  4424. -     The cursor position is undefined after the `cs' command is set, so
  4425. -     position the cursor with `cm' immediately afterward.
  4426. -
  4427. -`cS'
  4428. -     String of commands to set the scroll region using parameters in
  4429. -     different form.  The effect is the same as if `cs' were used.
  4430. -     Four parameters are required:
  4431. -
  4432. -       1. Total number of lines on the screen.
  4433. -
  4434. -       2. Number of lines above desired scroll region.
  4435. -
  4436. -       3. Number of lines below (outside of) desired scroll region.
  4437. -
  4438. -       4. Total number of lines on the screen, the same as the first
  4439. -          parameter.
  4440. -
  4441. -     This capability is a GNU extension that was invented to allow the
  4442. -     Ann Arbor Ambassador's scroll-region command to be described; it
  4443. -     could also be done by putting non-Unix `%'-sequences into a `cs'
  4444. -     string, but that would have confused Unix programs that used the
  4445. -     `cs' capability with the Unix termcap.  Currently only GNU Emacs
  4446. -     uses the `cS' capability.
  4447. -
  4448. -`ns'
  4449. -     Flag which means that the terminal does not normally scroll for
  4450. -     ordinary sequential output.  For modern terminals, this means that
  4451. -     outputting a newline in ordinary sequential output with the cursor
  4452. -     on the bottom line wraps to the top line.  For some obsolete
  4453. -     terminals, other things may happen.
  4454. -
  4455. -     The terminal may be able to scroll even if it does not normally do
  4456. -     so.  If the `sf' capability is provided, it can be used for
  4457. -     scrolling regardless of `ns'.
  4458. -
  4459. -`da'
  4460. -     Flag whose presence means that lines scrolled up off the top of the
  4461. -     screen may come back if scrolling down is done subsequently.
  4462. -
  4463. -     The `da' and `db' flags do not, strictly speaking, affect how to
  4464. -     scroll.  But programs that scroll usually need to clear the lines
  4465. -     scrolled onto the screen, if these flags are present.
  4466. -
  4467. -`db'
  4468. -     Flag whose presence means that lines scrolled down off the bottom
  4469. -     of the screen may come back if scrolling up is done subsequently.
  4470. -
  4471. -`lm'
  4472. -     Numeric value, the number of lines of display memory that the
  4473. -     terminal has.  A value of zero means that the terminal has more
  4474. -     display memory than can fit on the screen, but no fixed number of
  4475. -     lines.  (The number of lines may depend on the amount of text in
  4476. -     each line.)
  4477. -
  4478. -   Any terminal description that defines `SF' should also define `sf';
  4479. -likewise for `SR' and `sr'.  However, many terminals can only scroll by
  4480. -one line at a time, so it is common to find `sf' and not `SF', or `sr'
  4481. -without `SR'.
  4482. -
  4483. -   Therefore, all programs that use the scrolling facilities should be
  4484. -prepared to work with `sf' in the case that `SF' is absent, and
  4485. -likewise with `sr'.  On the other hand, an application program that
  4486. -uses only `sf' and not `SF' is acceptable, though slow on some
  4487. -terminals.
  4488. -
  4489. -   When outputting a scroll command with `tputs', the NLINES argument
  4490. -should be the total number of lines in the portion of the screen being
  4491. -scrolled.  Very often these commands require padding proportional to
  4492. -this number of lines.  *Note Padding::.
  4493. -
  4494. -
  4495. -File: termcap.info,  Node: Windows,  Next: Clearing,  Prev: Scrolling,  Up: Capabilities
  4496. -
  4497. -Windows
  4498. -=======
  4499. -
  4500. -   A "window", in termcap, is a rectangular portion of the screen to
  4501. -which all display operations are restricted.  Wrapping, clearing,
  4502. -scrolling, insertion and deletion all operate as if the specified
  4503. -window were all the screen there was.
  4504. -
  4505. -`wi'
  4506. -     String of commands to set the terminal output screen window.  This
  4507. -     string requires four parameters, all origin-zero:
  4508. -       1. The first line to include in the window.
  4509. -
  4510. -       2. The last line to include in the window.
  4511. -
  4512. -       3. The first column to include in the window.
  4513. -
  4514. -       4. The last column to include in the window.
  4515. -
  4516. -   Most terminals do not support windows.
  4517. -
  4518. -
  4519. -File: termcap.info,  Node: Clearing,  Next: Insdel Line,  Prev: Windows,  Up: Capabilities
  4520. -
  4521. -Clearing Parts of the Screen
  4522. -============================
  4523. -
  4524. -   There are several terminal capabilities for clearing parts of the
  4525. -screen to blank.  All display terminals support the `cl' string, and
  4526. -most display terminals support all of these capabilities.
  4527. -
  4528. -`cl'
  4529. -     String of commands to clear the entire screen and position the
  4530. -     cursor at the upper left corner.
  4531. -
  4532. -`cd'
  4533. -     String of commands to clear the line the cursor is on, and all the
  4534. -     lines below it, down to the bottom of the screen.  This command
  4535. -     string should be used only with the cursor in column zero; their
  4536. -     effect is undefined if the cursor is elsewhere.
  4537. -
  4538. -`ce'
  4539. -     String of commands to clear from the cursor to the end of the
  4540. -     current line.
  4541. -
  4542. -`ec'
  4543. -     String of commands to clear N characters, starting with the
  4544. -     character that the cursor is on.  This command string is expected
  4545. -     to leave the cursor position unchanged.  The parameter N should
  4546. -     never be large enough to reach past the right margin; the effect
  4547. -     of such a large parameter would be undefined.
  4548. -
  4549. -   Clear to end of line (`ce') is extremely important in programs that
  4550. -maintain an updating display.  Nearly all display terminals support this
  4551. -operation, so it is acceptable for a an application program to refuse to
  4552. -work if `ce' is not present.  However, if you do not want this
  4553. -limitation, you can accomplish clearing to end of line by outputting
  4554. -spaces until you reach the right margin.  In order to do this, you must
  4555. -know the current horizontal position.  Also, this technique assumes
  4556. -that writing a space will erase.  But this happens to be true on all
  4557. -the display terminals that fail to support `ce'.
  4558. -
  4559. -
  4560. -File: termcap.info,  Node: Insdel Line,  Next: Insdel Char,  Prev: Clearing,  Up: Capabilities
  4561. -
  4562. -Insert/Delete Line
  4563. -==================
  4564. -
  4565. -   "Inserting a line" means creating a blank line in the middle of the
  4566. -screen, and pushing the existing lines of text apart.  In fact, the
  4567. -lines above the insertion point do not change, while the lines below
  4568. -move down, and one is normally lost at the bottom of the screen.
  4569. -
  4570. -   "Deleting a line" means causing the line to disappear from the
  4571. -screen, closing up the gap by moving the lines below it upward.  A new
  4572. -line appears at the bottom of the screen.  Usually this line is blank,
  4573. -but on terminals with the `db' flag it may be a line previously moved
  4574. -off the screen bottom by scrolling or line insertion.
  4575. -
  4576. -   Insertion and deletion of lines is useful in programs that maintain
  4577. -an updating display some parts of which may get longer or shorter.
  4578. -They are also useful in editors for scrolling parts of the screen, and
  4579. -for redisplaying after lines of text are killed or inserted.
  4580. -
  4581. -   Many terminals provide commands to insert or delete a single line at
  4582. -the cursor position.  Some provide the ability to insert or delete
  4583. -several lines with one command, using the number of lines to insert or
  4584. -delete as a parameter.  Always move the cursor to column zero before
  4585. -using any of these commands.
  4586. -
  4587. -`al'
  4588. -     String of commands to insert a blank line before the line the
  4589. -     cursor is on.  The existing line, and all lines below it, are
  4590. -     moved down.  The last line in the screen (or in the scroll region,
  4591. -     if one is set) disappears and in most circumstances is discarded.
  4592. -     It may not be discarded if the `db' is present (*note
  4593. -     Scrolling::.).
  4594. -
  4595. -     The cursor must be at the left margin before this command is used.
  4596. -     This command does not move the cursor.
  4597. -
  4598. -`dl'
  4599. -     String of commands to delete the line the cursor is on.  The
  4600. -     following lines move up, and a blank line appears at the bottom of
  4601. -     the screen (or bottom of the scroll region).  If the terminal has
  4602. -     the `db' flag, a nonblank line previously pushed off the screen
  4603. -     bottom may reappear at the bottom.
  4604. -
  4605. -     The cursor must be at the left margin before this command is used.
  4606. -     This command does not move the cursor.
  4607. -
  4608. -`AL'
  4609. -     String of commands to insert N blank lines before the line that
  4610. -     the cursor is on.  It is like `al' repeated N times, except that
  4611. -     it is as fast as one `al'.
  4612. -
  4613. -`DL'
  4614. -     String of commands to delete N lines starting with the line that
  4615. -     the cursor is on.  It is like `dl' repeated N times, except that
  4616. -     it is as fast as one `dl'.
  4617. -
  4618. -   Any terminal description that defines `AL' should also define `al';
  4619. -likewise for `DL' and `dl'.  However, many terminals can only insert or
  4620. -delete one line at a time, so it is common to find `al' and not `AL',
  4621. -or `dl' without `DL'.
  4622. -
  4623. -   Therefore, all programs that use the insert and delete facilities
  4624. -should be prepared to work with `al' in the case that `AL' is absent,
  4625. -and likewise with `dl'.  On the other hand, it is acceptable to write
  4626. -an application that uses only `al' and `dl' and does not look for `AL'
  4627. -or `DL' at all.
  4628. -
  4629. -   If a terminal does not support line insertion and deletion directly,
  4630. -but does support a scroll region, the effect of insertion and deletion
  4631. -can be obtained with scrolling.  However, it is up to the individual
  4632. -user program to check for this possibility and use the scrolling
  4633. -commands to get the desired result.  It is fairly important to implement
  4634. -this alternate strategy, since it is the only way to get the effect of
  4635. -line insertion and deletion on the popular VT100 terminal.
  4636. -
  4637. -   Insertion and deletion of lines is affected by the scroll region on
  4638. -terminals that have a settable scroll region.  This is useful when it is
  4639. -desirable to move any few consecutive lines up or down by a few lines.
  4640. -*Note Scrolling::.
  4641. -
  4642. -   The line pushed off the bottom of the screen is not lost if the
  4643. -terminal has the `db' flag capability; instead, it is pushed into
  4644. -display memory that does not appear on the screen.  This is the same
  4645. -thing that happens when scrolling pushes a line off the bottom of the
  4646. -screen.  Either reverse scrolling or deletion of a line can bring the
  4647. -apparently lost line back onto the bottom of the screen.  If the
  4648. -terminal has the scroll region feature as well as `db', the pushed-out
  4649. -line really is lost if a scroll region is in effect.
  4650. -
  4651. -   When outputting an insert or delete command with `tputs', the NLINES
  4652. -argument should be the total number of lines from the cursor to the
  4653. -bottom of the screen (or scroll region).  Very often these commands
  4654. -require padding proportional to this number of lines.  *Note Padding::.
  4655. -
  4656. -   For `AL' and `DL' the NLINES argument should *not* depend on the
  4657. -number of lines inserted or deleted; only the total number of lines
  4658. -affected.  This is because it is just as fast to insert two or N lines
  4659. -with `AL' as to insert one line with `al'.
  4660. -
  4661. diff -rup --new-file baseline/fsf/termcap/termcap.info-3 amiga/fsf/termcap/termcap.info-3
  4662. --- baseline/fsf/termcap/termcap.info-3    Wed Jul 26 08:44:13 1995
  4663. +++ amiga/fsf/termcap/termcap.info-3    Wed Dec 31 17:00:00 1969
  4664. @@ -1,1480 +0,0 @@
  4665. -This is Info file ./termcap.info, produced by Makeinfo-1.55 from the
  4666. -input file ./termcap.texi.
  4667. -
  4668. -   This file documents the termcap library of the GNU system.
  4669. -
  4670. -   Copyright (C) 1988 Free Software Foundation, Inc.
  4671. -
  4672. -   Permission is granted to make and distribute verbatim copies of this
  4673. -manual provided the copyright notice and this permission notice are
  4674. -preserved on all copies.
  4675. -
  4676. -   Permission is granted to copy and distribute modified versions of
  4677. -this manual under the conditions for verbatim copying, provided that
  4678. -the entire resulting derived work is distributed under the terms of a
  4679. -permission notice identical to this one.
  4680. -
  4681. -   Permission is granted to copy and distribute translations of this
  4682. -manual into another language, under the above conditions for modified
  4683. -versions, except that this permission notice may be stated in a
  4684. -translation approved by the Foundation.
  4685. -
  4686. -
  4687. -File: termcap.info,  Node: Insdel Char,  Next: Standout,  Prev: Insdel Line,  Up: Capabilities
  4688. -
  4689. -Insert/Delete Character
  4690. -=======================
  4691. -
  4692. -   "Inserting a character" means creating a blank space in the middle
  4693. -of a line, and pushing the rest of the line rightward.  The character
  4694. -in the rightmost column is lost.
  4695. -
  4696. -   "Deleting a character" means causing the character to disappear from
  4697. -the screen, closing up the gap by moving the rest of the line leftward.
  4698. -A blank space appears in the rightmost column.
  4699. -
  4700. -   Insertion and deletion of characters is useful in programs that
  4701. -maintain an updating display some parts of which may get longer or
  4702. -shorter.  It is also useful in editors for redisplaying the results of
  4703. -editing within a line.
  4704. -
  4705. -   Many terminals provide commands to insert or delete a single
  4706. -character at the cursor position.  Some provide the ability to insert
  4707. -or delete several characters with one command, using the number of
  4708. -characters to insert or delete as a parameter.
  4709. -
  4710. -   Many terminals provide an insert mode in which outputting a graphic
  4711. -character has the added effect of inserting a position for that
  4712. -character.  A special command string is used to enter insert mode and
  4713. -another is used to exit it.  The reason for designing a terminal with
  4714. -an insert mode rather than an insert command is that inserting
  4715. -character positions is usually followed by writing characters into
  4716. -them.  With insert mode, this is as fast as simply writing the
  4717. -characters, except for the fixed overhead of entering and leaving
  4718. -insert mode.  However, when the line speed is great enough, padding may
  4719. -be required for the graphic characters output in insert mode.
  4720. -
  4721. -   Some terminals require you to enter insert mode and then output a
  4722. -special command for each position to be inserted.  Or they may require
  4723. -special commands to be output before or after each graphic character to
  4724. -be inserted.
  4725. -
  4726. -   Deletion of characters is usually accomplished by a straightforward
  4727. -command to delete one or several positions; but on some terminals, it
  4728. -is necessary to enter a special delete mode before using the delete
  4729. -command, and leave delete mode afterward.  Sometimes delete mode and
  4730. -insert mode are the same mode.
  4731. -
  4732. -   Some terminals make a distinction between character positions in
  4733. -which a space character has been output and positions which have been
  4734. -cleared.  On these terminals, the effect of insert or delete character
  4735. -runs to the first cleared position rather than to the end of the line.
  4736. -In fact, the effect may run to more than one line if there is no
  4737. -cleared position to stop the shift on the first line.  These terminals
  4738. -are identified by the `in' flag capability.
  4739. -
  4740. -   On terminals with the `in' flag, the technique of skipping over
  4741. -characters that you know were cleared, and then outputting text later
  4742. -on in the same line, causes later insert and delete character
  4743. -operations on that line to do nonstandard things.  A program that has
  4744. -any chance of doing this must check for the `in' flag and must be
  4745. -careful to write explicit space characters into the intermediate
  4746. -columns when `in' is present.
  4747. -
  4748. -   A plethora of terminal capabilities are needed to describe all of
  4749. -this complexity.  Here is a list of them all.  Following the list, we
  4750. -present an algorithm for programs to use to take proper account of all
  4751. -of these capabilities.
  4752. -
  4753. -`im'
  4754. -     String of commands to enter insert mode.
  4755. -
  4756. -     If the terminal has no special insert mode, but it can insert
  4757. -     characters with a special command, `im' should be defined with a
  4758. -     null value, because the `vi' editor assumes that insertion of a
  4759. -     character is impossible if `im' is not provided.
  4760. -
  4761. -     New programs should not act like `vi'.  They should pay attention
  4762. -     to `im' only if it is defined.
  4763. -
  4764. -`ei'
  4765. -     String of commands to leave insert mode.  This capability must be
  4766. -     present if `im' is.
  4767. -
  4768. -     On a few old terminals the same string is used to enter and exit
  4769. -     insert mode.  This string turns insert mode on if it was off, and
  4770. -     off it it was on.  You can tell these terminals because the `ei'
  4771. -     string equals the `im' string.  If you want to support these
  4772. -     terminals, you must always remember accurately whether insert mode
  4773. -     is in effect.  However, these terminals are obsolete, and it is
  4774. -     reasonable to refuse to support them.  On all modern terminals, you
  4775. -     can safely output `ei' at any time to ensure that insert mode is
  4776. -     turned off.
  4777. -
  4778. -`ic'
  4779. -     String of commands to insert one character position at the cursor.
  4780. -     The cursor does not move.
  4781. -
  4782. -     If outputting a graphic character while in insert mode is
  4783. -     sufficient to insert the character, then the `ic' capability
  4784. -     should be defined with a null value.
  4785. -
  4786. -     If your terminal offers a choice of ways to insert--either use
  4787. -     insert mode or use a special command--then define `im' and do not
  4788. -     define `ic', since this gives the most efficient operation when
  4789. -     several characters are to be inserted.  *Do not* define both
  4790. -     strings, for that means that *both* must be used each time
  4791. -     insertion is done.
  4792. -
  4793. -`ip'
  4794. -     String of commands to output following an inserted graphic
  4795. -     character in insert mode.  Often it is used just for a padding
  4796. -     spec, when padding is needed after an inserted character (*note
  4797. -     Padding::.).
  4798. -
  4799. -`IC'
  4800. -     String of commands to insert N character positions at and after
  4801. -     the cursor.  It has the same effect as repeating the `ic' string
  4802. -     and a space, N times.
  4803. -
  4804. -     If `IC' is provided, application programs may use it without first
  4805. -     entering insert mode.
  4806. -
  4807. -`mi'
  4808. -     Flag whose presence means it is safe to move the cursor while in
  4809. -     insert mode and assume the terminal remains in insert mode.
  4810. -
  4811. -`in'
  4812. -     Flag whose presence means that the terminal distinguishes between
  4813. -     character positions in which space characters have been output and
  4814. -     positions which have been cleared.
  4815. -
  4816. -   An application program can assume that the terminal can do character
  4817. -insertion if *any one of* the capabilities `IC', `im', `ic' or `ip' is
  4818. -provided.
  4819. -
  4820. -   To insert N blank character positions, move the cursor to the place
  4821. -to insert them and follow this algorithm:
  4822. -
  4823. -  1. If an `IC' string is provided, output it with parameter N and you
  4824. -     are finished.  Otherwise (or if you don't want to bother to look
  4825. -     for an `IC' string) follow the remaining steps.
  4826. -
  4827. -  2. Output the `im' string, if there is one, unless the terminal is
  4828. -     already in insert mode.
  4829. -
  4830. -  3. Repeat steps 4 through 6, N times.
  4831. -
  4832. -  4. Output the `ic' string if any.
  4833. -
  4834. -  5. Output a space.
  4835. -
  4836. -  6. Output the `ip' string if any.
  4837. -
  4838. -  7. Output the `ei' string, eventually, to exit insert mode.  There is
  4839. -     no need to do this right away.  If the `mi' flag is present, you
  4840. -     can move the cursor and the cursor will remain in insert mode;
  4841. -     then you can do more insertion elsewhere without reentering insert
  4842. -     mode.
  4843. -
  4844. -   To insert N graphic characters, position the cursor and follow this
  4845. -algorithm:
  4846. -
  4847. -  1. If an `IC' string is provided, output it with parameter N, then
  4848. -     output the graphic characters, and you are finished.  Otherwise
  4849. -     (or if you don't want to bother to look for an `IC' string) follow
  4850. -     the remaining steps.
  4851. -
  4852. -  2. Output the `im' string, if there is one, unless the terminal is
  4853. -     already in insert mode.
  4854. -
  4855. -  3. For each character to be output, repeat steps 4 through 6.
  4856. -
  4857. -  4. Output the `ic' string if any.
  4858. -
  4859. -  5. Output the next graphic character.
  4860. -
  4861. -  6. Output the `ip' string if any.
  4862. -
  4863. -  7. Output the `ei' string, eventually, to exit insert mode.  There is
  4864. -     no need to do this right away.  If the `mi' flag is present, you
  4865. -     can move the cursor and the cursor will remain in insert mode;
  4866. -     then you can do more insertion elsewhere without reentering insert
  4867. -     mode.
  4868. -
  4869. -   Note that this is not the same as the original Unix termcap
  4870. -specifications in one respect: it assumes that the `IC' string can be
  4871. -used without entering insert mode.  This is true as far as I know, and
  4872. -it allows you be able to avoid entering and leaving insert mode, and
  4873. -also to be able to avoid the inserted-character padding after the
  4874. -characters that go into the inserted positions.
  4875. -
  4876. -   Deletion of characters is less complicated; deleting one column is
  4877. -done by outputting the `dc' string.  However, there may be a delete
  4878. -mode that must be entered with `dm' in order to make `dc' work.
  4879. -
  4880. -`dc'
  4881. -     String of commands to delete one character position at the cursor.
  4882. -     If `dc' is not present, the terminal cannot delete characters.
  4883. -
  4884. -`DC'
  4885. -     String of commands to delete N characters starting at the cursor.
  4886. -     It has the same effect as repeating the `dc' string N times.  Any
  4887. -     terminal description that has `DC' also has `dc'.
  4888. -
  4889. -`dm'
  4890. -     String of commands to enter delete mode.  If not present, there is
  4891. -     no delete mode, and `dc' can be used at any time (assuming there is
  4892. -     a `dc').
  4893. -
  4894. -`ed'
  4895. -     String of commands to exit delete mode.  This must be present if
  4896. -     `dm' is.
  4897. -
  4898. -   To delete N character positions, position the cursor and follow these
  4899. -steps:
  4900. -
  4901. -  1. If the `DC' string is present, output it with parameter N and you
  4902. -     are finished.  Otherwise, follow the remaining steps.
  4903. -
  4904. -  2. Output the `dm' string, unless you know the terminal is already in
  4905. -     delete mode.
  4906. -
  4907. -  3. Output the `dc' string N times.
  4908. -
  4909. -  4. Output the `ed' string eventually.  If the flag capability `mi' is
  4910. -     present, you can move the cursor and do more deletion without
  4911. -     leaving and reentering delete mode.
  4912. -
  4913. -   As with the `IC' string, we have departed from the original termcap
  4914. -specifications by assuming that `DC' works without entering delete mode
  4915. -even though `dc' would not.
  4916. -
  4917. -   If the `dm' and `im' capabilities are both present and have the same
  4918. -value, it means that the terminal has one mode for both insertion and
  4919. -deletion.  It is useful for a program to know this, because then it can
  4920. -do insertions after deletions, or vice versa, without leaving
  4921. -insert/delete mode and reentering it.
  4922. -
  4923. -
  4924. -File: termcap.info,  Node: Standout,  Next: Underlining,  Prev: Insdel Char,  Up: Capabilities
  4925. -
  4926. -Standout and Appearance Modes
  4927. -=============================
  4928. -
  4929. -   "Appearance modes" are modifications to the ways characters are
  4930. -displayed.  Typical appearance modes include reverse video, dim, bright,
  4931. -blinking, underlined, invisible, and alternate character set.  Each
  4932. -kind of terminal supports various among these, or perhaps none.
  4933. -
  4934. -   For each type of terminal, one appearance mode or combination of
  4935. -them that looks good for highlighted text is chosen as the "standout
  4936. -mode".  The capabilities `so' and `se' say how to enter and leave
  4937. -standout mode.  Programs that use appearance modes only to highlight
  4938. -some text generally use the standout mode so that they can work on as
  4939. -many terminals as possible.  Use of specific appearance modes other
  4940. -than "underlined" and "alternate character set" is rare.
  4941. -
  4942. -   Terminals that implement appearance modes fall into two general
  4943. -classes as to how they do it.
  4944. -
  4945. -   In some terminals, the presence or absence of any appearance mode is
  4946. -recorded separately for each character position.  In these terminals,
  4947. -each graphic character written is given the appearance modes current at
  4948. -the time it is written, and keeps those modes until it is erased or
  4949. -overwritten.  There are special commands to turn the appearance modes
  4950. -on or off for characters to be written in the future.
  4951. -
  4952. -   In other terminals, the change of appearance modes is represented by
  4953. -a marker that belongs to a certain screen position but affects all
  4954. -following screen positions until the next marker.  These markers are
  4955. -traditionally called "magic cookies".
  4956. -
  4957. -   The same capabilities (`so', `se', `mb' and so on) for turning
  4958. -appearance modes on and off are used for both magic-cookie terminals
  4959. -and per-character terminals.  On magic cookie terminals, these give the
  4960. -commands to write the magic cookies.  On per-character terminals, they
  4961. -change the current modes that affect future output and erasure.  Some
  4962. -simple applications can use these commands without knowing whether or
  4963. -not they work by means of cookies.
  4964. -
  4965. -   However, a program that maintains and updates a display needs to know
  4966. -whether the terminal uses magic cookies, and exactly what their effect
  4967. -is.  This information comes from the `sg' capability.
  4968. -
  4969. -   The `sg' capability is a numeric capability whose presence indicates
  4970. -that the terminal uses magic cookies for appearance modes.  Its value is
  4971. -the number of character positions that a magic cookie occupies.  Usually
  4972. -the cookie occupies one or more character positions on the screen, and
  4973. -these character positions are displayed as blank, but in some terminals
  4974. -the cookie has zero width.
  4975. -
  4976. -   The `sg' capability describes both the magic cookie to turn standout
  4977. -on and the cookie to turn it off.  This makes the assumption that both
  4978. -kinds of cookie have the same width on the screen.  If that is not true,
  4979. -the narrower cookie must be "widened" with spaces until it has the same
  4980. -width as the other.
  4981. -
  4982. -   On some magic cookie terminals, each line always starts with normal
  4983. -display; in other words, the scope of a magic cookie never extends over
  4984. -more than one line.  But on other terminals, one magic cookie affects
  4985. -all the lines below it unless explicitly canceled.  Termcap does not
  4986. -define any way to distinguish these two ways magic cookies can work.
  4987. -To be safe, it is best to put a cookie at the beginning of each line.
  4988. -
  4989. -   On some per-character terminals, standout mode or other appearance
  4990. -modes may be canceled by moving the cursor.  On others, moving the
  4991. -cursor has no effect on the state of the appearance modes.  The latter
  4992. -class of terminals are given the flag capability `ms' ("can move in
  4993. -standout").  All programs that might have occasion to move the cursor
  4994. -while appearance modes are turned on must check for this flag; if it is
  4995. -not present, they should reset appearance modes to normal before doing
  4996. -cursor motion.
  4997. -
  4998. -   A program that has turned on only standout mode should use `se' to
  4999. -reset the standout mode to normal.  A program that has turned on only
  5000. -alternate character set mode should use `ae' to return it to normal.
  5001. -If it is possible that any other appearance modes are turned on, use the
  5002. -`me' capability to return them to normal.
  5003. -
  5004. -   Note that the commands to turn on one appearance mode, including `so'
  5005. -and `mb' ... `mr', if used while some other appearance modes are turned
  5006. -on, may combine the two modes on some terminals but may turn off the
  5007. -mode previously enabled on other terminals.  This is because some
  5008. -terminals do not have a command to set or clear one appearance mode
  5009. -without changing the others.  Programs should not attempt to use
  5010. -appearance modes in combination except with `sa', and when switching
  5011. -from one single mode to another should always turn off the previously
  5012. -enabled mode and then turn on the new desired mode.
  5013. -
  5014. -   On some old terminals, the `so' and `se' commands may be the same
  5015. -command, which has the effect of turning standout on if it is off, or
  5016. -off it is on.  It is therefore risky for a program to output extra `se'
  5017. -commands for good measure.  Fortunately, all these terminals are
  5018. -obsolete.
  5019. -
  5020. -   Programs that update displays in which standout-text may be replaced
  5021. -with non-standout text must check for the `xs' flag.  In a per-character
  5022. -terminal, this flag says that the only way to remove standout once
  5023. -written is to clear that portion of the line with the `ce' string or
  5024. -something even more powerful (*note Clearing::.); just writing new
  5025. -characters at those screen positions will not change the modes in
  5026. -effect there.  In a magic cookie terminal, `xs' says that the only way
  5027. -to remove a cookie is to clear a portion of the line that includes the
  5028. -cookie; writing a different cookie at the same position does not work.
  5029. -
  5030. -   Such programs must also check for the `xt' flag, which means that the
  5031. -terminal is a Teleray 1061.  On this terminal it is impossible to
  5032. -position the cursor at the front of a magic cookie, so the only two
  5033. -ways to remove a cookie are (1) to delete the line it is on or (2) to
  5034. -position the cursor at least one character before it (possibly on a
  5035. -previous line) and output the `se' string, which on these terminals
  5036. -finds and removes the next `so' magic cookie on the screen.  (It may
  5037. -also be possible to remove a cookie which is not at the beginning of a
  5038. -line by clearing that line.)  The `xt' capability also has implications
  5039. -for the use of tab characters, but in that regard it is obsolete (*Note
  5040. -Cursor Motion::).
  5041. -
  5042. -`so'
  5043. -     String of commands to enter standout mode.
  5044. -
  5045. -`se'
  5046. -     String of commands to leave standout mode.
  5047. -
  5048. -`sg'
  5049. -     Numeric capability, the width on the screen of the magic cookie.
  5050. -     This capability is absent in terminals that record appearance modes
  5051. -     character by character.
  5052. -
  5053. -`ms'
  5054. -     Flag whose presence means that it is safe to move the cursor while
  5055. -     the appearance modes are not in the normal state.  If this flag is
  5056. -     absent, programs should always reset the appearance modes to
  5057. -     normal before moving the cursor.
  5058. -
  5059. -`xs'
  5060. -     Flag whose presence means that the only way to reset appearance
  5061. -     modes already on the screen is to clear to end of line.  On a
  5062. -     per-character terminal, you must clear the area where the modes
  5063. -     are set.  On a magic cookie terminal, you must clear an area
  5064. -     containing the cookie.  See the discussion above.
  5065. -
  5066. -`xt'
  5067. -     Flag whose presence means that the cursor cannot be positioned
  5068. -     right in front of a magic cookie, and that `se' is a command to
  5069. -     delete the next magic cookie following the cursor.  See discussion
  5070. -     above.
  5071. -
  5072. -`mb'
  5073. -     String of commands to enter blinking mode.
  5074. -
  5075. -`md'
  5076. -     String of commands to enter double-bright mode.
  5077. -
  5078. -`mh'
  5079. -     String of commands to enter half-bright mode.
  5080. -
  5081. -`mk'
  5082. -     String of commands to enter invisible mode.
  5083. -
  5084. -`mp'
  5085. -     String of commands to enter protected mode.
  5086. -
  5087. -`mr'
  5088. -     String of commands to enter reverse-video mode.
  5089. -
  5090. -`me'
  5091. -     String of commands to turn off all appearance modes, including
  5092. -     standout mode and underline mode.  On some terminals it also turns
  5093. -     off alternate character set mode; on others, it may not.  This
  5094. -     capability must be present if any of `mb' ... `mr' is present.
  5095. -
  5096. -`as'
  5097. -     String of commands to turn on alternate character set mode.  This
  5098. -     mode assigns some or all graphic characters an alternate picture
  5099. -     on the screen.  There is no standard as to what the alternate
  5100. -     pictures look like.
  5101. -
  5102. -`ae'
  5103. -     String of commands to turn off alternate character set mode.
  5104. -
  5105. -`sa'
  5106. -     String of commands to turn on an arbitrary combination of
  5107. -     appearance modes.  It accepts 9 parameters, each of which controls
  5108. -     a particular kind of appearance mode.  A parameter should be 1 to
  5109. -     turn its appearance mode on, or zero to turn that mode off.  Most
  5110. -     terminals do not support the `sa' capability, even among those
  5111. -     that do have various appearance modes.
  5112. -
  5113. -     The nine parameters are, in order, STANDOUT, UNDERLINE, REVERSE,
  5114. -     BLINK, HALF-BRIGHT, DOUBLE-BRIGHT, BLANK, PROTECT, ALT CHAR SET.
  5115. -
  5116. -
  5117. -File: termcap.info,  Node: Underlining,  Next: Cursor Visibility,  Prev: Standout,  Up: Capabilities
  5118. -
  5119. -Underlining
  5120. -===========
  5121. -
  5122. -   Underlining on most terminals is a kind of appearance mode, much like
  5123. -standout mode.  Therefore, it may be implemented using magic cookies or
  5124. -as a flag in the terminal whose current state affects each character
  5125. -that is output.  *Note Standout::, for a full explanation.
  5126. -
  5127. -   The `ug' capability is a numeric capability whose presence indicates
  5128. -that the terminal uses magic cookies for underlining.  Its value is the
  5129. -number of character positions that a magic cookie for underlining
  5130. -occupies; it is used for underlining just as `sg' is used for standout.
  5131. -Aside from the simplest applications, it is impossible to use
  5132. -underlining correctly without paying attention to the value of `ug'.
  5133. -
  5134. -`us'
  5135. -     String of commands to turn on underline mode or to output a magic
  5136. -     cookie to start underlining.
  5137. -
  5138. -`ue'
  5139. -     String of commands to turn off underline mode or to output a magic
  5140. -     cookie to stop underlining.
  5141. -
  5142. -`ug'
  5143. -     Width of magic cookie that represents a change of underline mode;
  5144. -     or missing, if the terminal does not use a magic cookie for this.
  5145. -
  5146. -`ms'
  5147. -     Flag whose presence means that it is safe to move the cursor while
  5148. -     the appearance modes are not in the normal state.  Underlining is
  5149. -     an appearance mode.  If this flag is absent, programs should
  5150. -     always turn off underlining before moving the cursor.
  5151. -
  5152. -   There are two other, older ways of doing underlining: there can be a
  5153. -command to underline a single character, or the output of `_', the
  5154. -ASCII underscore character, as an overstrike could cause a character to
  5155. -be underlined.  New programs need not bother to handle these
  5156. -capabilities unless the author cares strongly about the obscure
  5157. -terminals which support them.  However, terminal descriptions should
  5158. -provide these capabilities when appropriate.
  5159. -
  5160. -`uc'
  5161. -     String of commands to underline the character under the cursor, and
  5162. -     move the cursor right.
  5163. -
  5164. -`ul'
  5165. -     Flag whose presence means that the terminal can underline by
  5166. -     overstriking an underscore character (`_'); some terminals can do
  5167. -     this even though they do not support overstriking in general.  An
  5168. -     implication of this flag is that when outputting new text to
  5169. -     overwrite old text, underscore characters must be treated
  5170. -     specially lest they underline the old text instead.
  5171. -
  5172. -
  5173. -File: termcap.info,  Node: Cursor Visibility,  Next: Bell,  Prev: Underlining,  Up: Capabilities
  5174. -
  5175. -Cursor Visibility
  5176. -=================
  5177. -
  5178. -   Some terminals have the ability to make the cursor invisible, or to
  5179. -enhance it.  Enhancing the cursor is often done by programs that plan
  5180. -to use the cursor to indicate to the user a position of interest that
  5181. -may be anywhere on the screen--for example, the Emacs editor enhances
  5182. -the cursor on entry.  Such programs should always restore the cursor to
  5183. -normal on exit.
  5184. -
  5185. -`vs'
  5186. -     String of commands to enhance the cursor.
  5187. -
  5188. -`vi'
  5189. -     String of commands to make the cursor invisible.
  5190. -
  5191. -`ve'
  5192. -     String of commands to return the cursor to normal.
  5193. -
  5194. -   If you define either `vs' or `vi', you must also define `ve'.
  5195. -
  5196. -
  5197. -File: termcap.info,  Node: Bell,  Next: Keypad,  Prev: Cursor Visibility,  Up: Capabilities
  5198. -
  5199. -Bell
  5200. -====
  5201. -
  5202. -   Here we describe commands to make the terminal ask for the user to
  5203. -pay attention to it.
  5204. -
  5205. -`bl'
  5206. -     String of commands to cause the terminal to make an audible sound.
  5207. -     If this capability is absent, the terminal has no way to make a
  5208. -     suitable sound.
  5209. -
  5210. -`vb'
  5211. -     String of commands to cause the screen to flash to attract
  5212. -     attention ("visible bell").  If this capability is absent, the
  5213. -     terminal has no way to do such a thing.
  5214. -
  5215. -
  5216. -File: termcap.info,  Node: Keypad,  Next: Meta Key,  Prev: Bell,  Up: Capabilities
  5217. -
  5218. -Keypad and Function Keys
  5219. -========================
  5220. -
  5221. -   Many terminals have arrow and function keys that transmit specific
  5222. -character sequences to the computer.  Since the precise sequences used
  5223. -depend on the terminal, termcap defines capabilities used to say what
  5224. -the sequences are.  Unlike most termcap string-valued capabilities,
  5225. -these are not strings of commands to be sent to the terminal, rather
  5226. -strings that are received from the terminal.
  5227. -
  5228. -   Programs that expect to use keypad keys should check, initially, for
  5229. -a `ks' capability and send it, to make the keypad actually transmit.
  5230. -Such programs should also send the `ke' string when exiting.
  5231. -
  5232. -`ks'
  5233. -     String of commands to make the keypad keys transmit.  If this
  5234. -     capability is not provided, but the others in this section are,
  5235. -     programs may assume that the keypad keys always transmit.
  5236. -
  5237. -`ke'
  5238. -     String of commands to make the keypad keys work locally.  This
  5239. -     capability is provided only if `ks' is.
  5240. -
  5241. -`kl'
  5242. -     String of input characters sent by typing the left-arrow key.  If
  5243. -     this capability is missing, you cannot expect the terminal to have
  5244. -     a left-arrow key that transmits anything to the computer.
  5245. -
  5246. -`kr'
  5247. -     String of input characters sent by typing the right-arrow key.
  5248. -
  5249. -`ku'
  5250. -     String of input characters sent by typing the up-arrow key.
  5251. -
  5252. -`kd'
  5253. -     String of input characters sent by typing the down-arrow key.
  5254. -
  5255. -`kh'
  5256. -     String of input characters sent by typing the "home-position" key.
  5257. -
  5258. -`K1' ... `K5'
  5259. -     Strings of input characters sent by the five other keys in a 3-by-3
  5260. -     array that includes the arrow keys, if the keyboard has such a
  5261. -     3-by-3 array.  Note that one of these keys may be the
  5262. -     "home-position" key, in which case one of these capabilities will
  5263. -     have the same value as the `kh' key.
  5264. -
  5265. -`k0'
  5266. -     String of input characters sent by function key 10 (or 0, if the
  5267. -     terminal has one labeled 0).
  5268. -
  5269. -`k1' ... `k9'
  5270. -     Strings of input characters sent by function keys 1 through 9,
  5271. -     provided for those function keys that exist.
  5272. -
  5273. -`kn'
  5274. -     Number: the number of numbered function keys, if there are more
  5275. -     than 10.
  5276. -
  5277. -`l0' ... `l9'
  5278. -     Strings which are the labels appearing on the keyboard on the keys
  5279. -     described by the capabilities `k0' ... `l9'.  These capabilities
  5280. -     should be left undefined if the labels are `f0' or `f10' and `f1'
  5281. -     ... `f9'.
  5282. -
  5283. -`kH'
  5284. -     String of input characters sent by the "home down" key, if there is
  5285. -     one.
  5286. -
  5287. -`kb'
  5288. -     String of input characters sent by the "backspace" key, if there is
  5289. -     one.
  5290. -
  5291. -`ka'
  5292. -     String of input characters sent by the "clear all tabs" key, if
  5293. -     there is one.
  5294. -
  5295. -`kt'
  5296. -     String of input characters sent by the "clear tab stop this column"
  5297. -     key, if there is one.
  5298. -
  5299. -`kC'
  5300. -     String of input characters sent by the "clear screen" key, if
  5301. -     there is one.
  5302. -
  5303. -`kD'
  5304. -     String of input characters sent by the "delete character" key, if
  5305. -     there is one.
  5306. -
  5307. -`kL'
  5308. -     String of input characters sent by the "delete line" key, if there
  5309. -     is one.
  5310. -
  5311. -`kM'
  5312. -     String of input characters sent by the "exit insert mode" key, if
  5313. -     there is one.
  5314. -
  5315. -`kE'
  5316. -     String of input characters sent by the "clear to end of line" key,
  5317. -     if there is one.
  5318. -
  5319. -`kS'
  5320. -     String of input characters sent by the "clear to end of screen"
  5321. -     key, if there is one.
  5322. -
  5323. -`kI'
  5324. -     String of input characters sent by the "insert character" or "enter
  5325. -     insert mode" key, if there is one.
  5326. -
  5327. -`kA'
  5328. -     String of input characters sent by the "insert line" key, if there
  5329. -     is one.
  5330. -
  5331. -`kN'
  5332. -     String of input characters sent by the "next page" key, if there is
  5333. -     one.
  5334. -
  5335. -`kP'
  5336. -     String of input characters sent by the "previous page" key, if
  5337. -     there is one.
  5338. -
  5339. -`kF'
  5340. -     String of input characters sent by the "scroll forward" key, if
  5341. -     there is one.
  5342. -
  5343. -`kR'
  5344. -     String of input characters sent by the "scroll reverse" key, if
  5345. -     there is one.
  5346. -
  5347. -`kT'
  5348. -     String of input characters sent by the "set tab stop in this
  5349. -     column" key, if there is one.
  5350. -
  5351. -`ko'
  5352. -     String listing the other function keys the terminal has.  This is a
  5353. -     very obsolete way of describing the same information found in the
  5354. -     `kH' ... `kT' keys.  The string contains a list of two-character
  5355. -     termcap capability names, separated by commas.  The meaning is
  5356. -     that for each capability name listed, the terminal has a key which
  5357. -     sends the string which is the value of that capability.  For
  5358. -     example, the value `:ko=cl,ll,sf,sr:' says that the terminal has
  5359. -     four function keys which mean "clear screen", "home down", "scroll
  5360. -     forward" and "scroll reverse".
  5361. -
  5362. -
  5363. -File: termcap.info,  Node: Meta Key,  Next: Initialization,  Prev: Keypad,  Up: Capabilities
  5364. -
  5365. -Meta Key
  5366. -========
  5367. -
  5368. -   A Meta key is a key on the keyboard that modifies each character you
  5369. -type by controlling the 0200 bit.  This bit is on if and only if the
  5370. -Meta key is held down when the character is typed.  Characters typed
  5371. -using the Meta key are called Meta characters.  Emacs uses Meta
  5372. -characters as editing commands.
  5373. -
  5374. -`km'
  5375. -     Flag whose presence means that the terminal has a Meta key.
  5376. -
  5377. -`mm'
  5378. -     String of commands to enable the functioning of the Meta key.
  5379. -
  5380. -`mo'
  5381. -     String of commands to disable the functioning of the Meta key.
  5382. -
  5383. -   If the terminal has `km' but does not have `mm' and `mo', it means
  5384. -that the Meta key always functions.  If it has `mm' and `mo', it means
  5385. -that the Meta key can be turned on or off.  Send the `mm' string to
  5386. -turn it on, and the `mo' string to turn it off.  I do not know why one
  5387. -would ever not want it to be on.
  5388. -
  5389. -
  5390. -File: termcap.info,  Node: Initialization,  Next: Pad Specs,  Prev: Meta Key,  Up: Capabilities
  5391. -
  5392. -Initialization
  5393. -==============
  5394. -
  5395. -`ti'
  5396. -     String of commands to put the terminal into whatever special modes
  5397. -     are needed or appropriate for programs that move the cursor
  5398. -     nonsequentially around the screen.  Programs that use termcap to do
  5399. -     full-screen display should output this string when they start up.
  5400. -
  5401. -`te'
  5402. -     String of commands to undo what is done by the `ti' string.
  5403. -     Programs that output the `ti' string on entry should output this
  5404. -     string when they exit.
  5405. -
  5406. -`is'
  5407. -     String of commands to initialize the terminal for each login
  5408. -     session.
  5409. -
  5410. -`if'
  5411. -     String which is the name of a file containing the string of
  5412. -     commands to initialize the terminal for each session of use.
  5413. -     Normally `is' and `if' are not both used.
  5414. -
  5415. -`i1'
  5416. -`i3'
  5417. -     Two more strings of commands to initialize the terminal for each
  5418. -     login session.  The `i1' string (if defined) is output before `is'
  5419. -     or `if', and the `i3' string (if defined) is output after.
  5420. -
  5421. -     The reason for having three separate initialization strings is to
  5422. -     make it easier to define a group of related terminal types with
  5423. -     slightly different initializations.  Define two or three of the
  5424. -     strings in the basic type; then the other types can override one
  5425. -     or two of the strings.
  5426. -
  5427. -`rs'
  5428. -     String of commands to reset the terminal from any strange mode it
  5429. -     may be in.  Normally this includes the `is' string (or other
  5430. -     commands with the same effects) and more.  What would go in the
  5431. -     `rs' string but not in the `is' string are annoying or slow
  5432. -     commands to bring the terminal back from strange modes that nobody
  5433. -     would normally use.
  5434. -
  5435. -`it'
  5436. -     Numeric value, the initial spacing between hardware tab stop
  5437. -     columns when the terminal is powered up.  Programs to initialize
  5438. -     the terminal can use this to decide whether there is a need to set
  5439. -     the tab stops.  If the initial width is 8, well and good; if it is
  5440. -     not 8, then the tab stops should be set; if they cannot be set,
  5441. -     the kernel is told to convert tabs to spaces, and other programs
  5442. -     will observe this and do likewise.
  5443. -
  5444. -`ct'
  5445. -     String of commands to clear all tab stops.
  5446. -
  5447. -`st'
  5448. -     String of commands to set tab stop at current cursor column on all
  5449. -     lines.
  5450. -
  5451. -`NF'
  5452. -     Flag whose presence means that the terminal does not support
  5453. -     XON/XOFF flow control.  Programs should not send XON (`C-q') or
  5454. -     XOFF (`C-s') characters to the terminal.
  5455. -
  5456. -
  5457. -File: termcap.info,  Node: Pad Specs,  Next: Status Line,  Prev: Initialization,  Up: Capabilities
  5458. -
  5459. -Padding Capabilities
  5460. -====================
  5461. -
  5462. -   There are two terminal capabilities that exist just to explain the
  5463. -proper way to obey the padding specifications in all the command string
  5464. -capabilities.  One, `pc', must be obeyed by all termcap-using programs.
  5465. -
  5466. -`pb'
  5467. -     Numeric value, the lowest baud rate at which padding is actually
  5468. -     needed.  Programs may check this and refrain from doing any
  5469. -     padding at lower speeds.
  5470. -
  5471. -`pc'
  5472. -     String of commands for padding.  The first character of this
  5473. -     string is to be used as the pad character, instead of using null
  5474. -     characters for padding.  If `pc' is not provided, use null
  5475. -     characters.  Every program that uses termcap must look up this
  5476. -     capability and use it to set the variable `PC' that is used by
  5477. -     `tputs'.  *Note Padding::.
  5478. -
  5479. -   Some termcap capabilities exist just to specify the amount of
  5480. -padding that the kernel should give to cursor motion commands used in
  5481. -ordinary sequential output.
  5482. -
  5483. -`dC'
  5484. -     Numeric value, the number of msec of padding needed for the
  5485. -     carriage-return character.
  5486. -
  5487. -`dN'
  5488. -     Numeric value, the number of msec of padding needed for the newline
  5489. -     (linefeed) character.
  5490. -
  5491. -`dB'
  5492. -     Numeric value, the number of msec of padding needed for the
  5493. -     backspace character.
  5494. -
  5495. -`dF'
  5496. -     Numeric value, the number of msec of padding needed for the
  5497. -     formfeed character.
  5498. -
  5499. -`dT'
  5500. -     Numeric value, the number of msec of padding needed for the tab
  5501. -     character.
  5502. -
  5503. -   In some systems, the kernel uses the above capabilities; in other
  5504. -systems, the kernel uses the paddings specified in the string
  5505. -capabilities `cr', `sf', `le', `ff' and `ta'.  Descriptions of
  5506. -terminals which require such padding should contain the `dC' ...  `dT'
  5507. -capabilities and also specify the appropriate padding in the
  5508. -corresponding string capabilities.  Since no modern terminals require
  5509. -padding for ordinary sequential output, you probably won't need to do
  5510. -either of these things.
  5511. -
  5512. -
  5513. -File: termcap.info,  Node: Status Line,  Next: Half-Line,  Prev: Pad Specs,  Up: Capabilities
  5514. -
  5515. -Status Line
  5516. -===========
  5517. -
  5518. -   A "status line" is a line on the terminal that is not used for
  5519. -ordinary display output but instead used for a special message.  The
  5520. -intended use is for a continuously updated description of what the
  5521. -user's program is doing, and that is where the name "status line" comes
  5522. -from, but in fact it could be used for anything.  The distinguishing
  5523. -characteristic of a status line is that ordinary output to the terminal
  5524. -does not affect it; it changes only if the special status line commands
  5525. -of this section are used.
  5526. -
  5527. -`hs'
  5528. -     Flag whose presence means that the terminal has a status line.  If
  5529. -     a terminal description specifies that there is a status line, it
  5530. -     must provide the `ts' and `fs' capabilities.
  5531. -
  5532. -`ts'
  5533. -     String of commands to move the terminal cursor into the status
  5534. -     line.  Usually these commands must specifically record the old
  5535. -     cursor position for the sake of the `fs' string.
  5536. -
  5537. -`fs'
  5538. -     String of commands to move the cursor back from the status line to
  5539. -     its previous position (outside the status line).
  5540. -
  5541. -`es'
  5542. -     Flag whose presence means that other display commands work while
  5543. -     writing the status line.  In other words, one can clear parts of
  5544. -     it, insert or delete characters, move the cursor within it using
  5545. -     `ch' if there is a `ch' capability, enter and leave standout mode,
  5546. -     and so on.
  5547. -
  5548. -`ds'
  5549. -     String of commands to disable the display of the status line.  This
  5550. -     may be absent, if there is no way to disable the status line
  5551. -     display.
  5552. -
  5553. -`ws'
  5554. -     Numeric value, the width of the status line.  If this capability is
  5555. -     absent in a terminal that has a status line, it means the status
  5556. -     line is the same width as the other lines.
  5557. -
  5558. -     Note that the value of `ws' is sometimes as small as 8.
  5559. -
  5560. -
  5561. -File: termcap.info,  Node: Half-Line,  Next: Printer,  Prev: Status Line,  Up: Capabilities
  5562. -
  5563. -Half-Line Motion
  5564. -================
  5565. -
  5566. -   Some terminals have commands for moving the cursor vertically by
  5567. -half-lines, useful for outputting subscripts and superscripts.  Mostly
  5568. -it is hardcopy terminals that have such features.
  5569. -
  5570. -`hu'
  5571. -     String of commands to move the cursor up half a line.  If the
  5572. -     terminal is a display, it is your responsibility to avoid moving
  5573. -     up past the top line; however, most likely the terminal that
  5574. -     supports this is a hardcopy terminal and there is nothing to be
  5575. -     concerned about.
  5576. -
  5577. -`hd'
  5578. -     String of commands to move the cursor down half a line.  If the
  5579. -     terminal is a display, it is your responsibility to avoid moving
  5580. -     down past the bottom line, etc.
  5581. -
  5582. -
  5583. -File: termcap.info,  Node: Printer,  Prev: Half-Line,  Up: Capabilities
  5584. -
  5585. -Controlling Printers Attached to Terminals
  5586. -==========================================
  5587. -
  5588. -   Some terminals have attached hardcopy printer ports.  They may be
  5589. -able to copy the screen contents to the printer; they may also be able
  5590. -to redirect output to the printer.  Termcap does not have anything to
  5591. -tell the program whether the redirected output appears also on the
  5592. -screen; it does on some terminals but not all.
  5593. -
  5594. -`ps'
  5595. -     String of commands to cause the contents of the screen to be
  5596. -     printed.  If it is absent, the screen contents cannot be printed.
  5597. -
  5598. -`po'
  5599. -     String of commands to redirect further output to the printer.
  5600. -
  5601. -`pf'
  5602. -     String of commands to terminate redirection of output to the
  5603. -     printer.  This capability must be present in the description if
  5604. -     `po' is.
  5605. -
  5606. -`pO'
  5607. -     String of commands to redirect output to the printer for next N
  5608. -     characters of output, regardless of what they are.  Redirection
  5609. -     will end automatically after N characters of further output.  Until
  5610. -     then, nothing that is output can end redirection, not even the
  5611. -     `pf' string if there is one.  The number N should not be more than
  5612. -     255.
  5613. -
  5614. -     One use of this capability is to send non-text byte sequences
  5615. -     (such as bit-maps) to the printer.
  5616. -
  5617. -   Most terminals with printers do not support all of `ps', `po' and
  5618. -`pO'; any one or two of them may be supported.  To make a program that
  5619. -can send output to all kinds of printers, it is necessary to check for
  5620. -all three of these capabilities, choose the most convenient of the ones
  5621. -that are provided, and use it in its own appropriate fashion.
  5622. -
  5623. -
  5624. -File: termcap.info,  Node: Summary,  Next: Var Index,  Prev: Capabilities,  Up: Top
  5625. -
  5626. -Summary of Capability Names
  5627. -***************************
  5628. -
  5629. -   Here are all the terminal capability names in alphabetical order
  5630. -with a brief description of each.  For cross references to their
  5631. -definitions, see the index of capability names (*note Cap Index::.).
  5632. -
  5633. -`ae'
  5634. -     String to turn off alternate character set mode.
  5635. -
  5636. -`al'
  5637. -     String to insert a blank line before the cursor.
  5638. -
  5639. -`AL'
  5640. -     String to insert N blank lines before the cursor.
  5641. -
  5642. -`am'
  5643. -     Flag: output to last column wraps cursor to next line.
  5644. -
  5645. -`as'
  5646. -     String to turn on alternate character set mode.like.
  5647. -
  5648. -`bc'
  5649. -     Very obsolete alternative name for the `le' capability.
  5650. -
  5651. -`bl'
  5652. -     String to sound the bell.
  5653. -
  5654. -`bs'
  5655. -     Obsolete flag: ASCII backspace may be used for leftward motion.
  5656. -
  5657. -`bt'
  5658. -     String to move the cursor left to the previous hardware tab stop
  5659. -     column.
  5660. -
  5661. -`bw'
  5662. -     Flag: `le' at left margin wraps to end of previous line.
  5663. -
  5664. -`CC'
  5665. -     String to change terminal's command character.
  5666. -
  5667. -`cd'
  5668. -     String to clear the line the cursor is on, and following lines.
  5669. -
  5670. -`ce'
  5671. -     String to clear from the cursor to the end of the line.
  5672. -
  5673. -`ch'
  5674. -     String to position the cursor at column C in the same line.
  5675. -
  5676. -`cl'
  5677. -     String to clear the entire screen and put cursor at upper left
  5678. -     corner.
  5679. -
  5680. -`cm'
  5681. -     String to position the cursor at line L, column C.
  5682. -
  5683. -`CM'
  5684. -     String to position the cursor at line L, column C, relative to
  5685. -     display memory.
  5686. -
  5687. -`co'
  5688. -     Number: width of the screen.
  5689. -
  5690. -`cr'
  5691. -     String to move cursor sideways to left margin.
  5692. -
  5693. -`cs'
  5694. -     String to set the scroll region.
  5695. -
  5696. -`cS'
  5697. -     Alternate form of string to set the scroll region.
  5698. -
  5699. -`ct'
  5700. -     String to clear all tab stops.
  5701. -
  5702. -`cv'
  5703. -     String to position the cursor at line L in the same column.
  5704. -
  5705. -`da'
  5706. -     Flag: data scrolled off top of screen may be scrolled back.
  5707. -
  5708. -`db'
  5709. -     Flag: data scrolled off bottom of screen may be scrolled back.
  5710. -
  5711. -`dB'
  5712. -     Obsolete number: msec of padding needed for the backspace
  5713. -     character.
  5714. -
  5715. -`dc'
  5716. -     String to delete one character position at the cursor.
  5717. -
  5718. -`dC'
  5719. -     Obsolete number: msec of padding needed for the carriage-return
  5720. -     character.
  5721. -
  5722. -`DC'
  5723. -     String to delete N characters starting at the cursor.
  5724. -
  5725. -`dF'
  5726. -     Obsolete number: msec of padding needed for the formfeed character.
  5727. -
  5728. -`dl'
  5729. -     String to delete the line the cursor is on.
  5730. -
  5731. -`DL'
  5732. -     String to delete N lines starting with the cursor's line.
  5733. -
  5734. -`dm'
  5735. -     String to enter delete mode.
  5736. -
  5737. -`dN'
  5738. -     Obsolete number: msec of padding needed for the newline character.
  5739. -
  5740. -`do'
  5741. -     String to move the cursor vertically down one line.
  5742. -
  5743. -`DO'
  5744. -     String to move cursor vertically down N lines.
  5745. -
  5746. -`ds'
  5747. -     String to disable the display of the status line.
  5748. -
  5749. -`dT'
  5750. -     Obsolete number: msec of padding needed for the tab character.
  5751. -
  5752. -`ec'
  5753. -     String of commands to clear N characters at cursor.
  5754. -
  5755. -`ed'
  5756. -     String to exit delete mode.
  5757. -
  5758. -`ei'
  5759. -     String to leave insert mode.
  5760. -
  5761. -`eo'
  5762. -     Flag: output of a space can erase an overstrike.
  5763. -
  5764. -`es'
  5765. -     Flag: other display commands work while writing the status line.
  5766. -
  5767. -`ff'
  5768. -     String to advance to the next page, for a hardcopy terminal.
  5769. -
  5770. -`fs'
  5771. -     String to move the cursor back from the status line to its
  5772. -     previous position (outside the status line).
  5773. -
  5774. -`gn'
  5775. -     Flag: this terminal type is generic, not real.
  5776. -
  5777. -`hc'
  5778. -     Flag: hardcopy terminal.
  5779. -
  5780. -`hd'
  5781. -     String to move the cursor down half a line.
  5782. -
  5783. -`ho'
  5784. -     String to position cursor at upper left corner.
  5785. -
  5786. -`hs'
  5787. -     Flag: the terminal has a status line.
  5788. -
  5789. -`hu'
  5790. -     String to move the cursor up half a line.
  5791. -
  5792. -`hz'
  5793. -     Flag: terminal cannot accept `~' as output.
  5794. -
  5795. -`i1'
  5796. -     String to initialize the terminal for each login session.
  5797. -
  5798. -`i3'
  5799. -     String to initialize the terminal for each login session.
  5800. -
  5801. -`ic'
  5802. -     String to insert one character position at the cursor.
  5803. -
  5804. -`IC'
  5805. -     String to insert N character positions at the cursor.
  5806. -
  5807. -`if'
  5808. -     String naming a file of commands to initialize the terminal.
  5809. -
  5810. -`im'
  5811. -     String to enter insert mode.
  5812. -
  5813. -`in'
  5814. -     Flag: outputting a space is different from moving over empty
  5815. -     positions.
  5816. -
  5817. -`ip'
  5818. -     String to output following an inserted character in insert mode.
  5819. -
  5820. -`is'
  5821. -     String to initialize the terminal for each login session.
  5822. -
  5823. -`it'
  5824. -     Number: initial spacing between hardware tab stop columns.
  5825. -
  5826. -`k0'
  5827. -     String of input sent by function key 0 or 10.
  5828. -
  5829. -`k1 ... k9'
  5830. -     Strings of input sent by function keys 1 through 9.
  5831. -
  5832. -`K1 ... K5'
  5833. -     Strings sent by the five other keys in 3-by-3 array with arrows.
  5834. -
  5835. -`ka'
  5836. -     String of input sent by the "clear all tabs" key.
  5837. -
  5838. -`kA'
  5839. -     String of input sent by the "insert line" key.
  5840. -
  5841. -`kb'
  5842. -     String of input sent by the "backspace" key.
  5843. -
  5844. -`kC'
  5845. -     String of input sent by the "clear screen" key.
  5846. -
  5847. -`kd'
  5848. -     String of input sent by typing the down-arrow key.
  5849. -
  5850. -`kD'
  5851. -     String of input sent by the "delete character" key.
  5852. -
  5853. -`ke'
  5854. -     String to make the function keys work locally.
  5855. -
  5856. -`kE'
  5857. -     String of input sent by the "clear to end of line" key.
  5858. -
  5859. -`kF'
  5860. -     String of input sent by the "scroll forward" key.
  5861. -
  5862. -`kh'
  5863. -     String of input sent by typing the "home-position" key.
  5864. -
  5865. -`kH'
  5866. -     String of input sent by the "home down" key.
  5867. -
  5868. -`kI'
  5869. -     String of input sent by the "insert character" or "enter insert
  5870. -     mode" key.
  5871. -
  5872. -`kl'
  5873. -     String of input sent by typing the left-arrow key.
  5874. -
  5875. -`kL'
  5876. -     String of input sent by the "delete line" key.
  5877. -
  5878. -`km'
  5879. -     Flag: the terminal has a Meta key.
  5880. -
  5881. -`kM'
  5882. -     String of input sent by the "exit insert mode" key.
  5883. -
  5884. -`kn'
  5885. -     Numeric value, the number of numbered function keys.
  5886. -
  5887. -`kN'
  5888. -     String of input sent by the "next page" key.
  5889. -
  5890. -`ko'
  5891. -     Very obsolete string listing the terminal's named function keys.
  5892. -
  5893. -`kP'
  5894. -     String of input sent by the "previous page" key.
  5895. -
  5896. -`kr'
  5897. -     String of input sent by typing the right-arrow key.
  5898. -
  5899. -`kR'
  5900. -     String of input sent by the "scroll reverse" key.
  5901. -
  5902. -`ks'
  5903. -     String to make the function keys transmit.
  5904. -
  5905. -`kS'
  5906. -     String of input sent by the "clear to end of screen" key.
  5907. -
  5908. -`kt'
  5909. -     String of input sent by the "clear tab stop this column" key.
  5910. -
  5911. -`kT'
  5912. -     String of input sent by the "set tab stop in this column" key.
  5913. -
  5914. -`ku'
  5915. -     String of input sent by typing the up-arrow key.
  5916. -
  5917. -`l0'
  5918. -     String on keyboard labelling function key 0 or 10.
  5919. -
  5920. -`l1 ... l9'
  5921. -     Strings on keyboard labelling function keys 1 through 9.
  5922. -
  5923. -`le'
  5924. -     String to move the cursor left one column.
  5925. -
  5926. -`LE'
  5927. -     String to move cursor left N columns.
  5928. -
  5929. -`li'
  5930. -     Number: height of the screen.
  5931. -
  5932. -`ll'
  5933. -     String to position cursor at lower left corner.
  5934. -
  5935. -`lm'
  5936. -     Number: lines of display memory.
  5937. -
  5938. -`LP'
  5939. -     Flag: writing to last column of last line will not scroll.
  5940. -
  5941. -`mb'
  5942. -     String to enter blinking mode.
  5943. -
  5944. -`md'
  5945. -     String to enter double-bright mode.
  5946. -
  5947. -`me'
  5948. -     String to turn off all appearance modes
  5949. -
  5950. -`mh'
  5951. -     String to enter half-bright mode.
  5952. -
  5953. -`mi'
  5954. -     Flag: cursor motion in insert mode is safe.
  5955. -
  5956. -`mk'
  5957. -     String to enter invisible mode.
  5958. -
  5959. -`mm'
  5960. -     String to enable the functioning of the Meta key.
  5961. -
  5962. -`mo'
  5963. -     String to disable the functioning of the Meta key.
  5964. -
  5965. -`mp'
  5966. -     String to enter protected mode.
  5967. -
  5968. -`mr'
  5969. -     String to enter reverse-video mode.
  5970. -
  5971. -`ms'
  5972. -     Flag: cursor motion in standout mode is safe.
  5973. -
  5974. -`nc'
  5975. -     Obsolete flag: do not use ASCII carriage-return on this terminal.
  5976. -
  5977. -`nd'
  5978. -     String to move the cursor right one column.
  5979. -
  5980. -`NF'
  5981. -     Flag: do not use XON/XOFF flow control.
  5982. -
  5983. -`nl'
  5984. -     Obsolete alternative name for the `do' and `sf' capabilities.
  5985. -
  5986. -`ns'
  5987. -     Flag: the terminal does not normally scroll for sequential output.
  5988. -
  5989. -`nw'
  5990. -     String to move to start of next line, possibly clearing rest of
  5991. -     old line.
  5992. -
  5993. -`os'
  5994. -     Flag: terminal can overstrike.
  5995. -
  5996. -`pb'
  5997. -     Number: the lowest baud rate at which padding is actually needed.
  5998. -
  5999. -`pc'
  6000. -     String containing character for padding.
  6001. -
  6002. -`pf'
  6003. -     String to terminate redirection of output to the printer.
  6004. -
  6005. -`po'
  6006. -     String to redirect further output to the printer.
  6007. -
  6008. -`pO'
  6009. -     String to redirect N characters ofoutput to the printer.
  6010. -
  6011. -`ps'
  6012. -     String to print the screen on the attached printer.
  6013. -
  6014. -`rc'
  6015. -     String to move to last saved cursor position.
  6016. -
  6017. -`RI'
  6018. -     String to move cursor right N columns.
  6019. -
  6020. -`rp'
  6021. -     String to output character C repeated N times.
  6022. -
  6023. -`rs'
  6024. -     String to reset the terminal from any strange modes.
  6025. -
  6026. -`sa'
  6027. -     String to turn on an arbitrary combination of appearance modes.
  6028. -
  6029. -`sc'
  6030. -     String to save the current cursor position.
  6031. -
  6032. -`se'
  6033. -     String to leave standout mode.
  6034. -
  6035. -`sf'
  6036. -     String to scroll the screen one line up.
  6037. -
  6038. -`SF'
  6039. -     String to scroll the screen N lines up.
  6040. -
  6041. -`sg'
  6042. -     Number: width of magic standout cookie.  Absent if magic cookies
  6043. -     are not used.
  6044. -
  6045. -`so'
  6046. -     String to enter standout mode.
  6047. -
  6048. -`sr'
  6049. -     String to scroll the screen one line down.
  6050. -
  6051. -`SR'
  6052. -     String to scroll the screen N line down.
  6053. -
  6054. -`st'
  6055. -     String to set tab stop at current cursor column on all lines.
  6056. -     programs.
  6057. -
  6058. -`ta'
  6059. -     String to move the cursor right to the next hardware tab stop
  6060. -     column.
  6061. -
  6062. -`te'
  6063. -     String to return terminal to settings for sequential output.
  6064. -
  6065. -`ti'
  6066. -     String to initialize terminal for random cursor motion.
  6067. -
  6068. -`ts'
  6069. -     String to move the terminal cursor into the status line.
  6070. -
  6071. -`uc'
  6072. -     String to underline one character and move cursor right.
  6073. -
  6074. -`ue'
  6075. -     String to turn off underline mode
  6076. -
  6077. -`ug'
  6078. -     Number: width of underlining magic cookie.  Absent if underlining
  6079. -     doesn't use magic cookies.
  6080. -
  6081. -`ul'
  6082. -     Flag: underline by overstriking with an underscore.
  6083. -
  6084. -`up'
  6085. -     String to move the cursor vertically up one line.
  6086. -
  6087. -`UP'
  6088. -     String to move cursor vertically up N lines.
  6089. -
  6090. -`us'
  6091. -     String to turn on underline mode
  6092. -
  6093. -`vb'
  6094. -     String to make the screen flash.
  6095. -
  6096. -`ve'
  6097. -     String to return the cursor to normal.
  6098. -
  6099. -`vi'
  6100. -     String to make the cursor invisible.
  6101. -
  6102. -`vs'
  6103. -     String to enhance the cursor.
  6104. -
  6105. -`wi'
  6106. -     String to set the terminal output screen window.
  6107. -
  6108. -`ws'
  6109. -     Number: the width of the status line.
  6110. -
  6111. -`xb'
  6112. -     Flag: superbee terminal.
  6113. -
  6114. -`xn'
  6115. -     Flag: cursor wraps in a strange way.
  6116. -
  6117. -`xs'
  6118. -     Flag: clearing a line is the only way to clear the appearance
  6119. -     modes of positions in that line (or, only way to remove magic
  6120. -     cookies on that line).
  6121. -
  6122. -`xt'
  6123. -     Flag: Teleray 1061; several strange characteristics.
  6124. -
  6125. -
  6126. -File: termcap.info,  Node: Var Index,  Next: Cap Index,  Prev: Summary,  Up: Top
  6127. -
  6128. -Variable and Function Index
  6129. -***************************
  6130. -
  6131. -* Menu:
  6132. -
  6133. -* BC:                                   tgoto.
  6134. -* ospeed:                               Output Padding.
  6135. -* PC:                                   Output Padding.
  6136. -* tgetent:                              Find.
  6137. -* tgetflag:                             Interrogate.
  6138. -* tgetnum:                              Interrogate.
  6139. -* tgetstr:                              Interrogate.
  6140. -* tgoto:                                tgoto.
  6141. -* tparam:                               tparam.
  6142. -* tputs:                                Output Padding.
  6143. -* UP:                                   tgoto.
  6144. -
  6145. diff -rup --new-file baseline/fsf/termcap/termcap.info-4 amiga/fsf/termcap/termcap.info-4
  6146. --- baseline/fsf/termcap/termcap.info-4    Wed Jul 26 08:44:13 1995
  6147. +++ amiga/fsf/termcap/termcap.info-4    Wed Dec 31 17:00:00 1969
  6148. @@ -1,220 +0,0 @@
  6149. -This is Info file ./termcap.info, produced by Makeinfo-1.55 from the
  6150. -input file ./termcap.texi.
  6151. -
  6152. -   This file documents the termcap library of the GNU system.
  6153. -
  6154. -   Copyright (C) 1988 Free Software Foundation, Inc.
  6155. -
  6156. -   Permission is granted to make and distribute verbatim copies of this
  6157. -manual provided the copyright notice and this permission notice are
  6158. -preserved on all copies.
  6159. -
  6160. -   Permission is granted to copy and distribute modified versions of
  6161. -this manual under the conditions for verbatim copying, provided that
  6162. -the entire resulting derived work is distributed under the terms of a
  6163. -permission notice identical to this one.
  6164. -
  6165. -   Permission is granted to copy and distribute translations of this
  6166. -manual into another language, under the above conditions for modified
  6167. -versions, except that this permission notice may be stated in a
  6168. -translation approved by the Foundation.
  6169. -
  6170. -
  6171. -File: termcap.info,  Node: Cap Index,  Next: Index,  Prev: Var Index,  Up: Top
  6172. -
  6173. -Capability Index
  6174. -****************
  6175. -
  6176. -* Menu:
  6177. -
  6178. -* ae:                                   Standout.
  6179. -* al:                                   Insdel Line.
  6180. -* AL:                                   Insdel Line.
  6181. -* am:                                   Wrapping.
  6182. -* as:                                   Standout.
  6183. -* bc:                                   Cursor Motion.
  6184. -* bl:                                   Bell.
  6185. -* bs:                                   Cursor Motion.
  6186. -* bt:                                   Cursor Motion.
  6187. -* bw:                                   Cursor Motion.
  6188. -* CC:                                   Basic.
  6189. -* cd:                                   Clearing.
  6190. -* ce:                                   Clearing.
  6191. -* ch:                                   Cursor Motion.
  6192. -* cl:                                   Clearing.
  6193. -* cm:                                   Cursor Motion.
  6194. -* CM:                                   Cursor Motion.
  6195. -* co:                                   Screen Size.
  6196. -* cr:                                   Cursor Motion.
  6197. -* cS:                                   Scrolling.
  6198. -* cs:                                   Scrolling.
  6199. -* ct:                                   Initialization.
  6200. -* cv:                                   Cursor Motion.
  6201. -* da:                                   Scrolling.
  6202. -* dB:                                   Pad Specs.
  6203. -* db:                                   Scrolling.
  6204. -* dC:                                   Pad Specs.
  6205. -* DC:                                   Insdel Char.
  6206. -* dc:                                   Insdel Char.
  6207. -* dF:                                   Pad Specs.
  6208. -* dl:                                   Insdel Line.
  6209. -* DL:                                   Insdel Line.
  6210. -* dm:                                   Insdel Char.
  6211. -* dN:                                   Pad Specs.
  6212. -* do:                                   Cursor Motion.
  6213. -* DO:                                   Cursor Motion.
  6214. -* ds:                                   Status Line.
  6215. -* dT:                                   Pad Specs.
  6216. -* ec:                                   Clearing.
  6217. -* ed:                                   Insdel Char.
  6218. -* ei:                                   Insdel Char.
  6219. -* eo:                                   Basic.
  6220. -* es:                                   Status Line.
  6221. -* ff:                                   Cursor Motion.
  6222. -* fs:                                   Status Line.
  6223. -* gn:                                   Basic.
  6224. -* hc:                                   Basic.
  6225. -* hd:                                   Half-Line.
  6226. -* ho:                                   Cursor Motion.
  6227. -* hs:                                   Status Line.
  6228. -* hu:                                   Half-Line.
  6229. -* hz:                                   Basic.
  6230. -* i1:                                   Initialization.
  6231. -* i3:                                   Initialization.
  6232. -* IC:                                   Insdel Char.
  6233. -* ic:                                   Insdel Char.
  6234. -* if:                                   Initialization.
  6235. -* im:                                   Insdel Char.
  6236. -* in:                                   Insdel Char.
  6237. -* ip:                                   Insdel Char.
  6238. -* is:                                   Initialization.
  6239. -* it:                                   Initialization.
  6240. -* K1...K5:                              Keypad.
  6241. -* k1...k9:                              Keypad.
  6242. -* kA...kT:                              Keypad.
  6243. -* ka...ku:                              Keypad.
  6244. -* km:                                   Meta Key.
  6245. -* l0...l9:                              Keypad.
  6246. -* le:                                   Cursor Motion.
  6247. -* LE:                                   Cursor Motion.
  6248. -* li:                                   Screen Size.
  6249. -* ll:                                   Cursor Motion.
  6250. -* lm:                                   Scrolling.
  6251. -* LP:                                   Wrapping.
  6252. -* mb:                                   Standout.
  6253. -* md:                                   Standout.
  6254. -* me:                                   Standout.
  6255. -* mh:                                   Standout.
  6256. -* mi:                                   Insdel Char.
  6257. -* mk:                                   Standout.
  6258. -* mm:                                   Meta Key.
  6259. -* mo:                                   Meta Key.
  6260. -* mp:                                   Standout.
  6261. -* mr:                                   Standout.
  6262. -* ms:                                   Standout.
  6263. -* ms:                                   Underlining.
  6264. -* nc:                                   Cursor Motion.
  6265. -* nd:                                   Cursor Motion.
  6266. -* NF:                                   Initialization.
  6267. -* nl:                                   Cursor Motion.
  6268. -* ns:                                   Scrolling.
  6269. -* nw:                                   Cursor Motion.
  6270. -* os:                                   Basic.
  6271. -* pb:                                   Pad Specs.
  6272. -* pc:                                   Pad Specs.
  6273. -* pf:                                   Printer.
  6274. -* pO:                                   Printer.
  6275. -* po:                                   Printer.
  6276. -* ps:                                   Printer.
  6277. -* rc:                                   Cursor Motion.
  6278. -* RI:                                   Cursor Motion.
  6279. -* rp:                                   Basic.
  6280. -* rs:                                   Initialization.
  6281. -* sa:                                   Standout.
  6282. -* sc:                                   Cursor Motion.
  6283. -* se:                                   Standout.
  6284. -* SF:                                   Scrolling.
  6285. -* sf:                                   Scrolling.
  6286. -* sg:                                   Standout.
  6287. -* so:                                   Standout.
  6288. -* SR:                                   Scrolling.
  6289. -* sr:                                   Scrolling.
  6290. -* st:                                   Initialization.
  6291. -* ta:                                   Cursor Motion.
  6292. -* te:                                   Initialization.
  6293. -* ti:                                   Initialization.
  6294. -* ts:                                   Status Line.
  6295. -* uc:                                   Underlining.
  6296. -* ue:                                   Underlining.
  6297. -* ug:                                   Underlining.
  6298. -* ul:                                   Underlining.
  6299. -* up:                                   Cursor Motion.
  6300. -* UP:                                   Cursor Motion.
  6301. -* us:                                   Underlining.
  6302. -* vb:                                   Bell.
  6303. -* ve:                                   Cursor Visibility.
  6304. -* vi:                                   Cursor Visibility.
  6305. -* vs:                                   Cursor Visibility.
  6306. -* wi:                                   Windows.
  6307. -* ws:                                   Status Line.
  6308. -* xb:                                   Basic.
  6309. -* xn:                                   Wrapping.
  6310. -* xs:                                   Standout.
  6311. -* xt:                                   Cursor Motion.
  6312. -* xt:                                   Standout.
  6313. -
  6314. -
  6315. -File: termcap.info,  Node: Index,  Prev: Cap Index,  Up: Top
  6316. -
  6317. -Concept Index
  6318. -*************
  6319. -
  6320. -* Menu:
  6321. -
  6322. -* %:                                    Encode Parameters.
  6323. -* appearance modes:                     Standout.
  6324. -* bell:                                 Bell.
  6325. -* clearing the screen:                  Clearing.
  6326. -* command character:                    Basic.
  6327. -* cursor motion:                        Cursor Motion.
  6328. -* delete character:                     Insdel Char.
  6329. -* delete line:                          Insdel Line.
  6330. -* delete mode:                          Insdel Char.
  6331. -* description format:                   Format.
  6332. -* erasing:                              Clearing.
  6333. -* generic terminal type:                Basic.
  6334. -* home position:                        Cursor Motion.
  6335. -* inheritance:                          Inheriting.
  6336. -* initialization:                       Initialization.
  6337. -* insert character:                     Insdel Char.
  6338. -* insert line:                          Insdel Line.
  6339. -* insert mode:                          Insdel Char.
  6340. -* line speed:                           Output Padding.
  6341. -* magic cookie:                         Standout.
  6342. -* meta key:                             Meta Key.
  6343. -* names of terminal types:              Naming.
  6344. -* overstrike:                           Basic.
  6345. -* padding:                              Pad Specs.
  6346. -* padding:                              Padding.
  6347. -* parameters:                           Parameters.
  6348. -* printer:                              Printer.
  6349. -* repeat output:                        Basic.
  6350. -* reset:                                Initialization.
  6351. -* screen size:                          Screen Size.
  6352. -* screen size:                          Naming.
  6353. -* screen size:                          Screen Size.
  6354. -* scrolling:                            Scrolling.
  6355. -* standout:                             Standout.
  6356. -* status line:                          Status Line.
  6357. -* Superbee:                             Basic.
  6358. -* tab stops:                            Initialization.
  6359. -* termcap:                              Introduction.
  6360. -* terminal flags (kernel):              Initialize.
  6361. -* underlining:                          Underlining.
  6362. -* visibility:                           Cursor Visibility.
  6363. -* visible bell:                         Bell.
  6364. -* window:                               Windows.
  6365. -* wrapping:                             Wrapping.
  6366. -* wrapping:                             Naming.
  6367. -
  6368. -
  6369. diff -rup --new-file baseline/fsf/termcap/termcap.src amiga/fsf/termcap/termcap.src
  6370. --- baseline/fsf/termcap/termcap.src    Wed Jul 26 11:22:08 1995
  6371. +++ amiga/fsf/termcap/termcap.src    Sat Sep 28 00:00:00 1996
  6372. @@ -7622,6 +7622,17 @@ uniterm|uniterm49|UniTerm VT220 emulator
  6373.  #     dimension larger than 80 columns.
  6374.  # :k0=\E9~:    map F10 to k0 - could have F0-9 -> k0-9, but ... F10 was 'k;'
  6375.  # (amiga: removed obsolete ":kn#10:" -- esr)
  6376. +RL|rlamiga|RLamiga|Amiga ANSI:\
  6377. +    :co#80:li#48:am:bs:bw:\
  6378. +    :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:\
  6379. +    :LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:\
  6380. +    :ae=\017:al=\E[L:as=\016:bl=\007:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
  6381. +    :cm=\E[%i%d;%dH:dc=\E[P:dl=\E[M:do=\E[B:ho=\E[H:ic=\E[@:is=\E[20l:\
  6382. +    :k1=\E[0~:k2=\E[1~:k3=\E[2~:k4=\E[3~:k5=\E[4~:k6=\E[5~:k7=\E[6~:k8=\E[7~:k9=\E[8~:\
  6383. +    :k0=\E[9~:kb=^H:kd=\E[B:kl=\E[D:kr=\E[C:ku=\E[A:le=\E[D:\
  6384. +    :mb=\E[7;2m:md=\E[1m:me=\E[0m:mh=\E[2m:mk=\E[8m:mr=\E[7m:nd=\E[C:nl=\E[B:\
  6385. +    :rs=\Ec:se=\E[0m:sf=\E[S:so=\E[7m:sr=\E[T:ue=\E[0m:up=\E[A:us=\E[4m:\
  6386. +    :ve=\E[\040p:vi=\E[\060\040p:xn:
  6387.  amiga|Amiga ANSI:\
  6388.      :am:bs:bw:xn:\
  6389.      :co#80:li#24:\
  6390. diff -rup --new-file baseline/fsf/termcap/tests/Makefile.in amiga/fsf/termcap/tests/Makefile.in
  6391. --- baseline/fsf/termcap/tests/Makefile.in    Wed Dec 31 17:00:00 1969
  6392. +++ amiga/fsf/termcap/tests/Makefile.in    Sat Sep 28 00:00:00 1996
  6393. @@ -0,0 +1,35 @@
  6394. +#### Start of system configuration section. ####
  6395. +
  6396. +srcdir =    @srcdir@
  6397. +VPATH =        @srcdir@
  6398. +
  6399. +CC =        @CC@
  6400. +
  6401. +CFLAGS =    @CFLAGS@
  6402. +
  6403. +#### End system configuration section ####
  6404. +
  6405. +OTHER_CFLAGS =    -I$(srcdir)
  6406. +ALL_CFLAGS =    $(OTHER_CFLAGS) $(CFLAGS)
  6407. +
  6408. +.c.o:
  6409. +        $(CC) -c $(ALL_CFLAGS) $<
  6410. +
  6411. +all :        tc1 tc2 tc3
  6412. +
  6413. +tc1 :        tc1.o
  6414. +        $(CC) -o tc1 tc1.o ../libtermcap.a
  6415. +
  6416. +tc2 :        tc2.o
  6417. +        $(CC) -o tc2 tc2.o ../libtermcap.a
  6418. +
  6419. +tc3 :        tc3.o
  6420. +        $(CC) -o tc3 tc3.o ../libtermcap.a
  6421. +
  6422. +clean:
  6423. +        rm -f *! *~
  6424. +
  6425. +clobber:    clean
  6426. +        rm -f tc1 tc2 tc3 *.o
  6427. +
  6428. +
  6429. diff -rup --new-file baseline/fsf/termcap/tests/tc1.c amiga/fsf/termcap/tests/tc1.c
  6430. --- baseline/fsf/termcap/tests/tc1.c    Wed Dec 31 17:00:00 1969
  6431. +++ amiga/fsf/termcap/tests/tc1.c    Sat Sep 28 00:00:00 1996
  6432. @@ -0,0 +1,63 @@
  6433. +/*-
  6434. + * Copyright (c) 1983, 1993
  6435. + *    The Regents of the University of California.  All rights reserved.
  6436. + *
  6437. + * Redistribution and use in source and binary forms, with or without
  6438. + * modification, are permitted provided that the following conditions
  6439. + * are met:
  6440. + * 1. Redistributions of source code must retain the above copyright
  6441. + *    notice, this list of conditions and the following disclaimer.
  6442. + * 2. Redistributions in binary form must reproduce the above copyright
  6443. + *    notice, this list of conditions and the following disclaimer in the
  6444. + *    documentation and/or other materials provided with the distribution.
  6445. + * 3. All advertising materials mentioning features or use of this software
  6446. + *    must display the following acknowledgement:
  6447. + *    This product includes software developed by the University of
  6448. + *    California, Berkeley and its contributors.
  6449. + * 4. Neither the name of the University nor the names of its contributors
  6450. + *    may be used to endorse or promote products derived from this software
  6451. + *    without specific prior written permission.
  6452. + *
  6453. + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  6454. + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  6455. + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  6456. + * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  6457. + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  6458. + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  6459. + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  6460. + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  6461. + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  6462. + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  6463. + * SUCH DAMAGE.
  6464. + */
  6465. +
  6466. +#ifndef lint
  6467. +static char copyright[] =
  6468. +"@(#) Copyright (c) 1983, 1993\n\
  6469. +    The Regents of the University of California.  All rights reserved.\n";
  6470. +#endif /* not lint */
  6471. +
  6472. +#ifndef lint
  6473. +static char sccsid[] = "@(#)tc1.c    8.1 (Berkeley) 6/4/93";
  6474. +#endif /* not lint */
  6475. +
  6476. +/*
  6477. + * tc1 [term]
  6478. + * dummy program to test termlib.
  6479. + * gets entry, counts it, and prints it.
  6480. + */
  6481. +#include <stdio.h>
  6482. +char buf[1024];
  6483. +char *getenv();
  6484. +
  6485. +main(argc, argv) char **argv; {
  6486. +    char *p;
  6487. +    int rc;
  6488. +
  6489. +    if (argc < 2)
  6490. +        p = getenv("TERM");
  6491. +    else
  6492. +        p = argv[1];
  6493. +    rc = tgetent(buf,p);
  6494. +    printf("tgetent returns %d, len=%d, text=\n'%s'\n",rc,strlen(buf),buf);
  6495. +}
  6496. diff -rup --new-file baseline/fsf/termcap/tests/tc2.c amiga/fsf/termcap/tests/tc2.c
  6497. --- baseline/fsf/termcap/tests/tc2.c    Wed Dec 31 17:00:00 1969
  6498. +++ amiga/fsf/termcap/tests/tc2.c    Sat Sep 28 00:00:00 1996
  6499. @@ -0,0 +1,90 @@
  6500. +/*-
  6501. + * Copyright (c) 1983, 1993
  6502. + *    The Regents of the University of California.  All rights reserved.
  6503. + *
  6504. + * Redistribution and use in source and binary forms, with or without
  6505. + * modification, are permitted provided that the following conditions
  6506. + * are met:
  6507. + * 1. Redistributions of source code must retain the above copyright
  6508. + *    notice, this list of conditions and the following disclaimer.
  6509. + * 2. Redistributions in binary form must reproduce the above copyright
  6510. + *    notice, this list of conditions and the following disclaimer in the
  6511. + *    documentation and/or other materials provided with the distribution.
  6512. + * 3. All advertising materials mentioning features or use of this software
  6513. + *    must display the following acknowledgement:
  6514. + *    This product includes software developed by the University of
  6515. + *    California, Berkeley and its contributors.
  6516. + * 4. Neither the name of the University nor the names of its contributors
  6517. + *    may be used to endorse or promote products derived from this software
  6518. + *    without specific prior written permission.
  6519. + *
  6520. + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  6521. + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  6522. + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  6523. + * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  6524. + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  6525. + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  6526. + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  6527. + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  6528. + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  6529. + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  6530. + * SUCH DAMAGE.
  6531. + */
  6532. +
  6533. +#ifndef lint
  6534. +static char copyright[] =
  6535. +"@(#) Copyright (c) 1983, 1993\n\
  6536. +    The Regents of the University of California.  All rights reserved.\n";
  6537. +#endif /* not lint */
  6538. +
  6539. +#ifndef lint
  6540. +static char sccsid[] = "@(#)tc2.c    8.1 (Berkeley) 6/4/93";
  6541. +#endif /* not lint */
  6542. +
  6543. +/*
  6544. + * tc2 [term]
  6545. + * Dummy program to test out termlib.
  6546. + * Commands are "tcc\n" where t is type (s for string, f for flag,
  6547. + * or n for number) and cc is the name of the capability.
  6548. + */
  6549. +#include <stdio.h>
  6550. +char buf[1024];
  6551. +char *getenv(), *tgetstr();
  6552. +
  6553. +main(argc, argv) char **argv; {
  6554. +    char *p, *q;
  6555. +    int rc;
  6556. +    char b[3], c;
  6557. +    char area[200];
  6558. +
  6559. +    if (argc < 2)
  6560. +        p = getenv("TERM");
  6561. +    else
  6562. +        p = argv[1];
  6563. +    rc = tgetent(buf,p);
  6564. +    for (;;) {
  6565. +        c = getchar();
  6566. +        if (c < 0)
  6567. +            exit(0);
  6568. +        b[0] = getchar();
  6569. +        if (b[0] < ' ')
  6570. +            exit(0);
  6571. +        b[1] = getchar();
  6572. +        b[2] = 0;
  6573. +        getchar();
  6574. +        switch(c) {
  6575. +            case 'f':
  6576. +                printf("%s: %d\n",b,tgetflag(b));
  6577. +                break;
  6578. +            case 'n':
  6579. +                printf("%s: %d\n",b,tgetnum(b));
  6580. +                break;
  6581. +            case 's':
  6582. +                q = area;
  6583. +                printf("%s: %s\n",b,tgetstr(b,&q));
  6584. +                break;
  6585. +            default:
  6586. +                exit(0);
  6587. +        }
  6588. +    }
  6589. +}
  6590. diff -rup --new-file baseline/fsf/termcap/tests/tc3.c amiga/fsf/termcap/tests/tc3.c
  6591. --- baseline/fsf/termcap/tests/tc3.c    Wed Dec 31 17:00:00 1969
  6592. +++ amiga/fsf/termcap/tests/tc3.c    Sat Sep 28 00:00:00 1996
  6593. @@ -0,0 +1,112 @@
  6594. +/*-
  6595. + * Copyright (c) 1983, 1993
  6596. + *    The Regents of the University of California.  All rights reserved.
  6597. + *
  6598. + * Redistribution and use in source and binary forms, with or without
  6599. + * modification, are permitted provided that the following conditions
  6600. + * are met:
  6601. + * 1. Redistributions of source code must retain the above copyright
  6602. + *    notice, this list of conditions and the following disclaimer.
  6603. + * 2. Redistributions in binary form must reproduce the above copyright
  6604. + *    notice, this list of conditions and the following disclaimer in the
  6605. + *    documentation and/or other materials provided with the distribution.
  6606. + * 3. All advertising materials mentioning features or use of this software
  6607. + *    must display the following acknowledgement:
  6608. + *    This product includes software developed by the University of
  6609. + *    California, Berkeley and its contributors.
  6610. + * 4. Neither the name of the University nor the names of its contributors
  6611. + *    may be used to endorse or promote products derived from this software
  6612. + *    without specific prior written permission.
  6613. + *
  6614. + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  6615. + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  6616. + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  6617. + * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  6618. + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  6619. + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  6620. + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  6621. + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  6622. + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  6623. + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  6624. + * SUCH DAMAGE.
  6625. + */
  6626. +
  6627. +#ifndef lint
  6628. +static char copyright[] =
  6629. +"@(#) Copyright (c) 1983, 1993\n\
  6630. +    The Regents of the University of California.  All rights reserved.\n";
  6631. +#endif /* not lint */
  6632. +
  6633. +#ifndef lint
  6634. +static char sccsid[] = "@(#)tc3.c    8.1 (Berkeley) 6/4/93";
  6635. +#endif /* not lint */
  6636. +
  6637. +/*
  6638. + * tc3 [term]
  6639. + * Dummy program to test out termlib.  Input two numbers (row and col)
  6640. + * and it prints out the tgoto string generated.
  6641. + */
  6642. +#include <stdio.h>
  6643. +char buf[1024];
  6644. +char *getenv(), *tgetstr();
  6645. +char *rdchar();
  6646. +char *tgoto();
  6647. +char *CM;
  6648. +char cmbuff[30];
  6649. +char *x;
  6650. +char *UP;
  6651. +char *tgout;
  6652. +
  6653. +main(argc, argv) char **argv; {
  6654. +    char *p;
  6655. +    int rc;
  6656. +    int row, col;
  6657. +
  6658. +    if (argc < 2)
  6659. +        p = getenv("TERM");
  6660. +    else
  6661. +        p = argv[1];
  6662. +    rc = tgetent(buf,p);
  6663. +    x = cmbuff;
  6664. +    UP = tgetstr("up", &x);
  6665. +    printf("UP = %x = ", UP); pr(UP); printf("\n");
  6666. +    if (UP && *UP==0)
  6667. +        UP = 0;
  6668. +    CM = tgetstr("cm", &x);
  6669. +    printf("CM = "); pr(CM); printf("\n");
  6670. +    for (;;) {
  6671. +        if (scanf("%d %d", &row, &col) < 2)
  6672. +            exit(0);
  6673. +        tgout = tgoto(CM, col, row);
  6674. +        pr(tgout);
  6675. +        printf("\n");
  6676. +    }
  6677. +}
  6678. +
  6679. +pr(p)
  6680. +register char *p;
  6681. +{
  6682. +    for (; *p; p++)
  6683. +        printf("%s", rdchar(*p));
  6684. +}
  6685. +
  6686. +/*
  6687. + * rdchar() returns a readable representation of an ASCII character
  6688. + * using ^ for control, ' for meta.
  6689. + */
  6690. +#include <ctype.h>
  6691. +char *rdchar(c)
  6692. +char c;
  6693. +{
  6694. +    static char ret[4];
  6695. +    register char *p = ret;
  6696. +
  6697. +    if ((c&0377) > 0177)
  6698. +        *p++ = '\'';
  6699. +    c &= 0177;
  6700. +    if (!isprint(c))
  6701. +        *p++ = '^';
  6702. +    *p++ = (isprint(c) ?  c  : c^0100);
  6703. +    *p = 0;
  6704. +    return (ret);
  6705. +}
  6706.