X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=man%2Ftic.1m;h=a3b169173d5c1ac7530adcb422599b64c5b803cc;hp=5c3a63fa9cbd6afcd81e14d59b01a3122a0429e9;hb=8f6d94b8d6211a2323caef53fa4c96c475ec9a62;hpb=7517964d4343789c36b7ded32feb81961b03b725 diff --git a/man/tic.1m b/man/tic.1m index 5c3a63fa..a3b16917 100644 --- a/man/tic.1m +++ b/man/tic.1m @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright (c) 1998-2012,2013 Free Software Foundation, Inc. * +.\" Copyright (c) 1998-2018,2019 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * .\" copy of this software and associated documentation files (the * @@ -26,7 +26,7 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: tic.1m,v 1.58 2013/07/20 19:31:25 tom Exp $ +.\" $Id: tic.1m,v 1.68 2019/05/18 21:59:56 tom Exp $ .TH @TIC@ 1M "" .ie \n(.g .ds `` \(lq .el .ds `` `` @@ -35,7 +35,8 @@ .ds n 5 .ds d @TERMINFO@ .de bP -.IP \(bu 4 +.ie n .IP \(bu 4 +.el .IP \(bu 2 .. .SH NAME \fB@TIC@\fR \- the \fIterminfo\fR entry-description compiler @@ -54,10 +55,12 @@ N\ T\ U\ V\ +W\ a\ c\ f\ g\ +q\ r\ s\ t\ @@ -65,6 +68,7 @@ x\ \fR] [\fB\-e\fR \fInames\fR] [\fB\-o\fR \fIdir\fR] +[\fB\-Q\fR[\fIn\fR]] [\fB\-R\fR \fIsubset\fR] [\fB\-v\fR[\fIn\fR]] [\fB\-w\fR[\fIn\fR]] @@ -152,10 +156,24 @@ but commented out with two preceding dots. The actual format used incorporates some improvements for escaped characters from terminfo format. For a stricter BSD-compatible translation, add the \fB\-K\fR option. +.IP +If this is combined with \fB\-c\fR, \fB@TIC@\fR makes additional checks +to report cases where the terminfo values do not have an exact equivalent +in termcap form. +For example: +.RS +.bP +\fBsgr\fP usually will not convert, because termcap lacks the ability to +work with more than two parameters, and because termcap lacks many of +the arithmetic/logical operators used in terminfo. +.bP +capabilities with more than one delay or with delays before the end of +the string will not convert completely. +.RE .TP \fB\-c\fR -tells \fB@TIC@\fP to only check \fIfile\fR for errors, including syntax problems and -bad use links. +tells \fB@TIC@\fP to only check \fIfile\fR for errors, +including syntax problems and bad use-links. If you specify \fB\-C\fR (\fB\-I\fR) with this option, the code will print warnings about entries which, after use resolution, are more than 1023 (4096) bytes long. @@ -164,6 +182,11 @@ as well as buggy checking for the buffer length (and a documented limit in terminfo), these entries may cause core dumps with other implementations. +.IP +\fB@TIC@\fP checks string capabilities to ensure that those with parameters +will be valid expressions. +It does this check only for the predefined string capabilities; +those which are defined with the \fB\-x\fP option are ignored. .TP \fB\-D\fR tells \fB@TIC@\fP to print the database locations that it knows about, and exit. @@ -182,7 +205,8 @@ the list, the entry will be written or translated as normal. Otherwise no output will be generated for it. The option value is interpreted as a file containing the list if it contains a '/'. -(Note: depending on how tic was compiled, this option may require \fB\-I\fR or \fB\-C\fR.) +(Note: depending on how @TIC@ was compiled, +this option may require \fB\-I\fR or \fB\-C\fR.) .TP \fB\-f\fR Display complex terminfo strings which contain if/then/else/endif expressions @@ -224,6 +248,25 @@ obsolete capabilities. Write compiled entries to given database location. Overrides the TERMINFO environment variable. .TP +\fB\-Q\fR\fIn\fR +Rather than show source in terminfo (text) format, +print the compiled (binary) format in hexadecimal or base64 form, +depending on the option's value: +.RS 8 +.TP 3 +1 +hexadecimal +.TP 3 +2 +base64 +.TP 3 +3 +hexadecimal and base64 +.RE +.TP +\fB\-q\fR +Suppress comments and blank lines when showing translated source. +.TP \fB\-R\fR\fIsubset\fR Restrict output to a given subset. This option is for use with archaic @@ -231,7 +274,8 @@ versions of terminfo like those on SVr1, Ultrix, or HP/UX that do not support the full set of SVR4/XSI Curses terminfo; and outright broken ports like AIX 3.x that have their own extensions incompatible with SVr4/XSI. Available subsets -are "SVr1", "Ultrix", "HP", "BSD" and "AIX"; see \fBterminfo\fR(\*n) for details. +are "SVr1", "Ultrix", "HP", "BSD" and "AIX"; +see \fBterminfo\fR(\*n) for details. .TP \fB\-r\fR Force entry resolution (so there are no remaining tc capabilities) even @@ -266,8 +310,10 @@ reports the version of ncurses which was used in this program, and exits. \fB\-v\fR\fIn\fR specifies that (verbose) output be written to standard error trace information showing \fB@TIC@\fR's progress. +.IP The optional parameter \fIn\fR is a number from 1 to 10, inclusive, indicating the desired level of detail of information. +If ncurses is built without tracing support, the optional parameter is ignored. If \fIn\fR is omitted, the default level is 1. If \fIn\fR is specified and greater than 1, the level of detail is increased. @@ -299,13 +345,20 @@ All values computed in construction of the hash table If the debug level \fIn\fR is not given, it is taken to be one. .RE .TP +\fB\-W\fR +By itself, the \fB\-w\fP option will not force long strings to be wrapped. +Use the \fB\-W\fP option to do this. +.IP +If you specify both \fB\-f\fP and \fB\-W\fP options, +the latter is ignored when \fB\-f\fP has already split the line. +.TP \fB\-w\fR\fIn\fR specifies the width of the output. The parameter is optional. If it is omitted, it defaults to 60. .TP \fB\-x\fR -Treat unknown capabilities as user-defined. +Treat unknown capabilities as user-defined (see \fBuser_caps(\*n)\fP). That is, if you supply a capability name which \fB@TIC@\fP does not recognize, it will infer its type (boolean, number or string) from the syntax and make an extended table entry for that. @@ -347,7 +400,8 @@ The name field cannot exceed 512 bytes. Terminal names exceeding the maximum alias length (32 characters on systems with long filenames, 14 characters otherwise) -will be truncated to the maximum alias length and a warning message will be printed. +will be truncated to the maximum alias length +and a warning message will be printed. .SH COMPATIBILITY There is some evidence that historic \fB@TIC@\fR implementations treated description fields with no whitespace in them as additional aliases or @@ -413,6 +467,7 @@ Compiled terminal description database. \fBcurses\fR(3X), \fBterm\fR(\*n). \fBterminfo\fR(\*n). +\fBuser_caps\fR(\*n). .PP This describes \fBncurses\fR version @NCURSES_MAJOR@.@NCURSES_MINOR@ (patch @NCURSES_PATCH@).