Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

enhance(1) [debian man page]

enhance(1)                                                         User Commands                                                        enhance(1)

NAME
enhance - enhanced command-line editing facilities SYNOPSIS
enhance command [argument...] DESCRIPTION
The enhance program provides enhanced command-line editing facilities to users of third party applications, to which one doesn't have any source code. It does this by placing a pseudo-terminal between the application and the real terminal. It uses the tecla command-line edit- ing library to read input from the real terminal, then forwards each just completed input line to the application via the pseudo-terminal. All output from the application is forwarded back unchanged to the real terminal. Whenever the application stops generating output for more than a tenth of a second, the enhance program treats the latest incomplete output line as the prompt, and redisplays any incompleted input line that the user has typed after it. Note that the small delay, which is imper- ceptible to the user, isn't necessary for correct operation of the program.It is just an optimization, designed to stop the input line from being redisplayed so often that it slows down output. Note that the user-level command-line editing facilities provided by the Tecla library are documented in the tecla(5) man page DEFICIENCIES The one major problem that hasn't been solved yet, is how to deal with applications that change whether typed input is echo'd by their con- trolling terminal. For example, programs that ask for a password, such as ftp and telnet, temporarily tell their controlling terminal not to echo what the user types. Since this request goes to the application side of the psuedo terminal, the enhance program has no way of knowing that this has happened, and continues to echo typed input to its controlling terminal, while the user types their password. Furthermore, before executing the host application, the enhance program initially sets the pseudo terminal to noecho mode, so that every- thing that it sends to the program doesn't get redundantly echoed. If a program that switches to noecho mode explicitly restores echoing afterwards, rather than restoring the terminal modes that were previously in force, then subsequently, every time that you enter a new input line, a duplicate copy will be displayed on the next line. FILES
/usr/lib/libtecla.so tecla library ~/.teclarc tecla personal customization file. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWesu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
libtecla(3LIB), attributes(5), tecla(5) SunOS 5.10 18 May 2004 enhance(1)

Check Out this Related Man Page

libtecla(3LIB)							Interface Libraries						    libtecla(3LIB)

NAME
libtecla - interactive command line input library SYNOPSIS
cc [ flag... ] file... -ltecla [ library... ] #include <libtecla.h> DESCRIPTION
This library provides programs with interactive command line editing facilities, similar to those of the UNIX tcsh shell. In addition to simple command-line editing, it supports recall of previously entered command lines, TAB completion of file names or other tokens, and in- line wildcard expansion of filenames. The internal functions that perform file-name completion and wild-card expansion are also available externally for optional use by the calling program. Thread Safety The terminfo functions setupterm(3CURSES), tigetstr(3CURSES), tigetnum(3CURSES), and tputs(3CURSES) are not reentrant. This condition, how- ever, should not prevent use of this library in threaded applications, since few applications will want to interact with multiple termi- nals. INTERFACES
The shared object libtecla.so.1 provides the public interfaces defined below. See Intro(3) for additional information on shared object interfaces. cfc_file_start cfc_literal_escapes cfc_set_check_fn cpl_add_completion cpl_check_exe cpl_complete_word cpl_file_completions cpl_last_error cpl_list_completions cpl_recall_matches cpl_record_error del_CplFileConf del_ExpandFile del_GetLine del_PathCache del_PcaPathConf del_WordCompletion ef_expand_file ef_last_error ef_list_expansions gl_abandon_line gl_append_history gl_automatic_history gl_bind_keyseq gl_catch_blocked gl_change_terminal gl_clear_history gl_completion_action gl_configure_getline gl_customize_completion gl_display_text gl_echo_mode gl_erase_terminal gl_error_message gl_get_line gl_group_history gl_handle_signal gl_ignore_signal gl_inactivity_timeout gl_io_mode gl_last_signal gl_limit_history gl_list_signals gl_load_history gl_lookup_history gl_normal_io gl_pending_io gl_prompt_style gl_query_char gl_range_of_history gl_raw_io gl_read_char gl_register_action gl_replace_prompt gl_resize_history gl_return_status gl_save_history gl_set_term_size gl_show_history gl_size_of_history gl_state_of_history gl_terminal_size gl_toggle_history gl_trap_signal gl_tty_signals gl_watch_fd libtecla_version new_CplFileConf new_ExpandFile new_GetLine new_PathCache new_PcaPathConf new_WordCompletion pca_last_error pca_lookup_file pca_path_completions pca_scan_path pca_set_check_fn ppc_file_start ppc_literal_escapes FILES
/usr/lib/libtecla.so.1 shared object /usr/lib/64/libtecla.so.1 64-bit shared object ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsl | |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
enhance(1), Intro(3), cpl_complete_word(3TECLA), ef_expand_file(3TECLA), gl_get_line(3TECLA), gl_io_mode(3TECLA), pca_lookup_file(3TECLA), attributes(5), tecla(5) SunOS 5.11 1 Jun 2004 libtecla(3LIB)
Man Page