?? enhance.3
字號:
.\" Copyright (C) 2000, 2001 by Martin C. Shepherd.\" .\" All rights reserved..\" .\" 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, and/or sell copies of the Software, and to permit persons.\" to whom the Software is furnished to do so, provided that the above.\" copyright notice(s) and this permission notice appear in all copies of.\" the Software and that both the above copyright notice(s) and this.\" permission notice appear in supporting documentation..\" .\" 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.\" OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR.\" HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL.\" INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE..\" .\" Except as contained in this notice, the name of a copyright holder.\" shall not be used in advertising or otherwise to promote the sale, use.\" or other dealings in this Software without prior written authorization.\" of the copyright holder..TH libtecla 3.SH NAMEenhance - A program that adds command-line editing to third party programs..SH SYNOPSIS.nfenhance command [ argument ... ].fi.SH DESCRIPTIONThe \f3enhance\f1 program provides enhanced command-line editingfacilities to users of third party applications, to which one doesn'thave any source code. It does this by placing a pseudo-terminalbetween the application and the real terminal. It uses the teclacommand-line editing library to read input from the real terminal,then forwards each just completed input line to the application viathe pseudo-terminal. All output from the application is forwardedback unchanged to the real terminal..spWhenever the application stops generating output for more than a tenthof a second, the \f3enhance\f1 program treats the latest incompleteoutput line as the prompt, and redisplays any incompleted input linethat the user has typed after it. Note that the small delay, which isimperceptible to the user, isn't necessary for correct operation ofthe program. It is just an optimization, designed to stop the inputline from being redisplayed so often that it slows down output..SH DEFICIENCIESThe one major problem that hasn't been solved yet, is how to deal withapplications that change whether typed input is echo'd by theircontrolling terminal. For example, programs that ask for a password,such as ftp and telnet, temporarily tell their controlling terminalnot to echo what the user types. Since this request goes to theapplication side of the psuedo terminal, the \f3enhance\f1 program hasno way of knowing that this has happened, and continues to echo typedinput to its controlling terminal, while the user types theirpassword..spFurthermore, before executing the host application, the \f3enhance\f1program initially sets the pseudo terminal to noecho mode, so thateverything that it sends to the program doesn't get redundantlyechoed. If a program that switches to noecho mode explicitly restoresechoing afterwards, rather than restoring the terminal modes that werepreviously in force, then subsequently, every time that you enter anew input line, a duplicate copy will be displayed on the next line..SH FILES.nflibtecla.a - The tecla library.~/.teclarc - The tecla personal customization file..fi.SH SEE ALSOlibtecla(3) .SH AUTHORMartin Shepherd (mcs@astro.caltech.edu)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -