1libtecla(3LIB) Interface Libraries libtecla(3LIB)
2
3
4
6 libtecla - interactive command line input library
7
9 cc [ flag... ] file... -ltecla [ library... ]
10 #include <libtecla.h>
11
12
14 This library provides programs with interactive command line editing
15 facilities, similar to those of the UNIX tcsh shell. In addition to
16 simple command-line editing, it supports recall of previously entered
17 command lines, TAB completion of file names or other tokens, and in-
18 line wildcard expansion of filenames. The internal functions that per‐
19 form file-name completion and wild-card expansion are also available
20 externally for optional use by the calling program.
21
22 Thread Safety
23 The terminfo functions setupterm(3CURSES), tigetstr(3CURSES), tiget‐
24 num(3CURSES), and tputs(3CURSES) are not reentrant. This condition,
25 however, should not prevent use of this library in threaded applica‐
26 tions, since few applications will want to interact with multiple ter‐
27 minals.
28
30 The shared object libtecla.so.1 provides the public interfaces defined
31 below. See Intro(3) for additional information on shared object inter‐
32 faces.
33
34
35
36
37 cfc_file_start cfc_literal_escapes
38 cfc_set_check_fn cpl_add_completion
39 cpl_check_exe cpl_complete_word
40 cpl_file_completions cpl_last_error
41 cpl_list_completions cpl_recall_matches
42 cpl_record_error del_CplFileConf
43 del_ExpandFile del_GetLine
44 del_PathCache del_PcaPathConf
45 del_WordCompletion ef_expand_file
46 ef_last_error ef_list_expansions
47 gl_abandon_line gl_append_history
48 gl_automatic_history gl_bind_keyseq
49 gl_catch_blocked gl_change_terminal
50 gl_clear_history gl_completion_action
51 gl_configure_getline gl_customize_completion
52 gl_display_text gl_echo_mode
53 gl_erase_terminal gl_error_message
54 gl_get_line gl_group_history
55 gl_handle_signal gl_ignore_signal
56 gl_inactivity_timeout gl_io_mode
57 gl_last_signal gl_limit_history
58 gl_list_signals gl_load_history
59 gl_lookup_history gl_normal_io
60 gl_pending_io gl_prompt_style
61 gl_query_char gl_range_of_history
62 gl_raw_io gl_read_char
63 gl_register_action gl_replace_prompt
64 gl_resize_history gl_return_status
65 gl_save_history gl_set_term_size
66
67 gl_show_history gl_size_of_history
68 gl_state_of_history gl_terminal_size
69 gl_toggle_history gl_trap_signal
70 gl_tty_signals gl_watch_fd
71 libtecla_version new_CplFileConf
72 new_ExpandFile new_GetLine
73 new_PathCache new_PcaPathConf
74 new_WordCompletion pca_last_error
75 pca_lookup_file pca_path_completions
76 pca_scan_path pca_set_check_fn
77 ppc_file_start ppc_literal_escapes
78
79
81 /usr/lib/libtecla.so.1 shared object
82
83
84 /usr/lib/64/libtecla.so.1 64-bit shared object
85
86
88 See attributes(5) for descriptions of the following attributes:
89
90
91
92
93 ┌─────────────────────────────┬─────────────────────────────┐
94 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
95 ├─────────────────────────────┼─────────────────────────────┤
96 │Availability │SUNWcsl │
97 │Interface Stability │Evolving │
98 ├─────────────────────────────┼─────────────────────────────┤
99 │MT-Level │MT-Safe │
100 └─────────────────────────────┴─────────────────────────────┘
101
103 enhance(1), Intro(3), cpl_complete_word(3TECLA),
104 ef_expand_file(3TECLA), gl_get_line(3TECLA), gl_io_mode(3TECLA),
105 pca_lookup_file(3TECLA), attributes(5), tecla(5)
106
107
108
109SunOS 5.11 1 Jun 2004 libtecla(3LIB)