LIBTECLA(3LIB) Interface Libraries LIBTECLA(3LIB)

libtecla - interactive command line input library

cc [ flag... ] file... -ltecla [ library... ]
#include <libtecla.h>

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.

The terminfo functions setupterm(3CURSES), tigetstr(3CURSES), tigetnum(3CURSES), and tputs(3CURSES) are not reentrant. This condition, however, should not prevent use of this library in threaded applications, since few applications will want to interact with multiple terminals.

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

/usr/lib/libtecla.so.1

shared object

/usr/lib/64/libtecla.so.1

64-bit shared object

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Interface Stability Evolving
MT-Level MT-Safe

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(7), tecla(7)

June 1, 2004 OmniOS