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

📄 tset.1.html

📁 ncurses-5.4
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><!--   ****************************************************************************  * Copyright (c) 1998-2000,2003 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.13 2003/05/11 00:32:53 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>       tset  [-IQVqrs]  [-]  [-e <EM>ch</EM>] [-i <EM>ch</EM>] [-k <EM>ch</EM>] [-m <EM>mapping</EM>]       [<EM>terminal</EM>]       reset [-IQVqrs] [-] [-e <EM>ch</EM>] [-i <EM>ch</EM>] [-k <EM>ch</EM>]  [-m  <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  below       for  more information).  Then, if the terminal type begins       with a question mark (``?''), the  user  is  prompted  for       confirmation of the terminal type.  An empty response con-       firms 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 terminal 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.       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>-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>-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>-Q</STRONG>   Don't display any values for the erase, interrupt and            line kill characters.       <STRONG>-V</STRONG>   reports the version of ncurses which was used in this            program, and exits.       <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 below for more information.       <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 below on setting the environment  for            details.       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>       It is often desirable  to  enter  the  terminal  type  and       information  about  the  terminal's  capabilities into the       shell's environment.  This is done using the <STRONG>-s</STRONG> option.       When the <STRONG>-s</STRONG> option is specified, the commands to enter the       information  into  the  shell's environment are written to

⌨️ 快捷键说明

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