⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tset.1.html

📁 ncurses 库 可能有用酒用 没用就算了 我觉得还可以用
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><!--   ****************************************************************************  * Copyright (c) 1998-2004,2005 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            *  * "Software"), to deal in the Software without restriction, including      *  * without limitation the rights to use, copy, modify, merge, publish,      *  * distribute, distribute with modifications, sublicense, and/or sell       *  * copies of the Software, and to permit persons to whom the Software is    *  * furnished to do so, subject to the following conditions:                 *  *                                                                          *  * The above copyright notice and this permission notice shall be included  *  * in all copies or substantial portions of the Software.                   *  *                                                                          *  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *  * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *  * THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *  *                                                                          *  * Except as contained in this notice, the name(s) of the above copyright   *  * holders shall not be used in advertising or otherwise to promote the     *  * sale, use or other dealings in this Software without prior written       *  * authorization.                                                           *  ****************************************************************************  * @Id: tset.1,v 1.15 2005/03/20 18:27:09 tom Exp @--><HTML><HEAD><TITLE>tset 1</TITLE><link rev=made href="mailto:bug-ncurses@gnu.org"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></HEAD><BODY><H1>tset 1</H1><HR><PRE><!-- Manpage converted by man2html 3.0.1 --><STRONG><A HREF="tset.1.html">tset(1)</A></STRONG>                                                         <STRONG><A HREF="tset.1.html">tset(1)</A></STRONG></PRE><H2>NAME</H2><PRE>       <STRONG>tset</STRONG>, <STRONG>reset</STRONG> - terminal initialization</PRE><H2>SYNOPSIS</H2><PRE>       <STRONG>tset</STRONG>  [<STRONG>-IQVcqrsw</STRONG>] [<STRONG>-</STRONG>] [<STRONG>-e</STRONG> <EM>ch</EM>] [<STRONG>-i</STRONG> <EM>ch</EM>] [<STRONG>-k</STRONG> <EM>ch</EM>] [<STRONG>-m</STRONG> <EM>mapping</EM>]       [<EM>terminal</EM>]       <STRONG>reset</STRONG> [<STRONG>-IQVcqrsw</STRONG>] [<STRONG>-</STRONG>] [<STRONG>-e</STRONG> <EM>ch</EM>] [<STRONG>-i</STRONG> <EM>ch</EM>] [<STRONG>-k</STRONG> <EM>ch</EM>] [<STRONG>-m</STRONG> <EM>mapping</EM>]       [<EM>terminal</EM>]</PRE><H2>DESCRIPTION</H2><PRE>       <STRONG>Tset</STRONG>  initializes  terminals.   <STRONG>Tset</STRONG>  first determines the       type of terminal that you are using.   This  determination       is done as follows, using the first terminal type found.       1. The <STRONG>terminal</STRONG> argument specified on the command line.       2. The value of the <STRONG>TERM</STRONG> environmental variable.       3.  (BSD  systems only.) The terminal type associated with       the standard error output device in  the  <EM>/etc/ttys</EM>  file.       (On Linux and System-V-like UNIXes, <EM>getty</EM> does this job by       setting <STRONG>TERM</STRONG>  according  to  the  type  passed  to  it  by       <EM>/etc/inittab</EM>.)       4. The default terminal type, ``unknown''.       If  the  terminal  type  was not specified on the command-       line, the <STRONG>-m</STRONG> option mappings are  then  applied  (see  the       section  <STRONG>TERMINAL</STRONG>  <STRONG>TYPE</STRONG>  <STRONG>MAPPING</STRONG>  for  more  information).       Then, if the terminal type begins  with  a  question  mark       (``?''), the user is prompted for confirmation of the ter-       minal type.  An empty  response  confirms  the  type,  or,       another  type  can be entered to specify a new type.  Once       the terminal type has been determined, the terminfo  entry       for  the  terminal  is retrieved.  If no terminfo entry is       found for the type, the user is prompted for another  ter-       minal type.       Once  the  terminfo  entry  is retrieved, the window size,       backspace, interrupt and line kill characters (among  many       other things) are set and the terminal and tab initializa-       tion strings  are  sent  to  the  standard  error  output.       Finally,  if the erase, interrupt and line kill characters       have changed, or are not  set  to  their  default  values,       their  values  are displayed to the standard error output.       Use the <STRONG>-c</STRONG> or <STRONG>-w</STRONG> option to select only the  window  sizing       versus  the  other  initialization.   If neither option is       given, both are assumed.       When invoked as <STRONG>reset</STRONG>, <STRONG>tset</STRONG> sets cooked  and  echo  modes,       turns  off cbreak and raw modes, turns on newline transla-       tion and resets any  unset  special  characters  to  their       default  values  before  doing the terminal initialization       described above.  This is  useful  after  a  program  dies       leaving  a  terminal  in an abnormal state.  Note, you may       have to type           <STRONG>&lt;LF&gt;reset&lt;LF&gt;</STRONG>       (the line-feed character is normally control-J) to get the       terminal to work, as carriage-return may no longer work in       the abnormal state.  Also, the  terminal  will  often  not       echo the command.       The options are as follows:       <STRONG>-c</STRONG>   Set  control  characters and modes.  <STRONG>-e</STRONG> Set the erase            character to <EM>ch</EM>.       <STRONG>-I</STRONG>   Do  not  send  the  terminal  or  tab  initialization            strings to the terminal.       <STRONG>-i</STRONG>   Set the interrupt character to <EM>ch</EM>.       <STRONG>-k</STRONG>   Set the line kill character to <EM>ch</EM>.       <STRONG>-m</STRONG>   Specify  a  mapping  from  a port type to a terminal.            See the section <STRONG>TERMINAL</STRONG> <STRONG>TYPE</STRONG> <STRONG>MAPPING</STRONG> for more infor-            mation.       <STRONG>-Q</STRONG>   Do  not  display  any values for the erase, interrupt            and line kill characters.  Normally <STRONG>tset</STRONG> displays the            values  for  control characters which differ from the            system's default values.       <STRONG>-q</STRONG>   The terminal type is displayed to the  standard  out-            put,  and the terminal is not initialized in any way.            The option `-' by itself is equivalent but archaic.       <STRONG>-r</STRONG>   Print the terminal type to the standard error output.       <STRONG>-s</STRONG>   Print  the  sequence  of shell commands to initialize            the environment variable <STRONG>TERM</STRONG> to the standard output.            See  the section <STRONG>SETTING</STRONG> <STRONG>THE</STRONG> <STRONG>ENVIRONMENT</STRONG> for details.       <STRONG>-V</STRONG>   reports the version of ncurses which was used in this            program, and exits.       <STRONG>-w</STRONG>   Resize  the  window  to  match  the  size deduced via            <STRONG>setupterm</STRONG>.   Normally  this  has  no  effect,  unless            <STRONG>setupterm</STRONG> is not able to detect the window size.       The arguments for the <STRONG>-e</STRONG>, <STRONG>-i</STRONG>, and <STRONG>-k</STRONG> options may either be       entered as actual characters or by using the  `hat'  nota-       tion, i.e. control-h may be specified as ``^H'' or ``^h''.</PRE><H2>SETTING THE ENVIRONMENT</H2><PRE>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -