Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-08-08·18:10:52.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-08-08·18:10:52.000000·debian-binary |
2 | -rw-r--r--···0········0········0······504·2024-08-08·18:10:52.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0······504·2024-08-08·18:10:52.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0····1 | 3 | -rw-r--r--···0········0········0····14348·2024-08-08·18:10:52.000000·data.tar.xz |
Offset 1, 17 lines modified | Offset 1, 17 lines modified | ||
1 | drwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./ | 1 | drwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./ |
2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/ | 2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/ |
3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/ | 3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/ |
4 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/ | 4 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/ |
5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/ | 5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/ |
6 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 6 | -rw-r--r--···0·root·········(0)·root·········(0)····23827·2024-08-08·18:10:52.000000·./usr/share/man/man3/editline.3 |
7 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man5/ | 7 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man5/ |
8 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 8 | -rw-r--r--···0·root·········(0)·root·········(0)·····3598·2024-08-08·18:10:52.000000·./usr/share/man/man5/editrc.5 |
9 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man7/ | 9 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man7/ |
10 | -rw-r--r--···0·root·········(0)·root·········(0)····33 | 10 | -rw-r--r--···0·root·········(0)·root·········(0)····33136·2024-08-08·18:10:52.000000·./usr/share/man/man7/editline.7 |
11 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_deletestr.3·->·editline.3 | 11 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_deletestr.3·->·editline.3 |
12 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_end.3·->·editline.3 | 12 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_end.3·->·editline.3 |
13 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_get.3·->·editline.3 | 13 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_get.3·->·editline.3 |
14 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_getc.3·->·editline.3 | 14 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_getc.3·->·editline.3 |
15 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_gets.3·->·editline.3 | 15 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_gets.3·->·editline.3 |
16 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history.3·->·editline.3 | 16 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history.3·->·editline.3 |
17 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history_end.3·->·editline.3 | 17 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history_end.3·->·editline.3 |
Offset 1, 1020 lines modified | Offset 1, 1172 lines modified | ||
1 | .TH·EDITLINE·3·"August·15,·2021"·"" | ||
1 | .\"» $NetBSD:·editline.3,v·1.102·2024/02/04·18:47:27·andvar·Exp·$ | ||
2 | .\" | ||
3 | .\"·Copyright·(c)·1997-2014·The·NetBSD·Foundation,·Inc. | ||
4 | .\"·All·rights·reserved. | ||
5 | .\" | ||
6 | .\"·This·file·was·contributed·to·The·NetBSD·Foundation·by·Luke·Mewburn. | ||
7 | .\" | ||
8 | .\"·Redistribution·and·use·in·source·and·binary·forms,·with·or·without | ||
9 | .\"·modification,·are·permitted·provided·that·the·following·conditions | ||
10 | .\"·are·met: | ||
11 | .\"·1.·Redistributions·of·source·code·must·retain·the·above·copyright | ||
12 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer. | ||
13 | .\"·2.·Redistributions·in·binary·form·must·reproduce·the·above·copyright | ||
14 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer·in·the | ||
15 | .\"····documentation·and/or·other·materials·provided·with·the·distribution. | ||
16 | .\" | ||
17 | .\"·THIS·SOFTWARE·IS·PROVIDED·BY·THE·NETBSD·FOUNDATION,·INC.·AND·CONTRIBUTORS | ||
18 | .\"·``AS·IS''·AND·ANY·EXPRESS·OR·IMPLIED·WARRANTIES,·INCLUDING,·BUT·NOT·LIMITED | ||
19 | .\"·TO,·THE·IMPLIED·WARRANTIES·OF·MERCHANTABILITY·AND·FITNESS·FOR·A·PARTICULAR | ||
20 | .\"·PURPOSE·ARE·DISCLAIMED.··IN·NO·EVENT·SHALL·THE·FOUNDATION·OR·CONTRIBUTORS | ||
21 | .\"·BE·LIABLE·FOR·ANY·DIRECT,·INDIRECT,·INCIDENTAL,·SPECIAL,·EXEMPLARY,·OR | ||
22 | .\"·CONSEQUENTIAL·DAMAGES·(INCLUDING,·BUT·NOT·LIMITED·TO,·PROCUREMENT·OF | ||
23 | .\"·SUBSTITUTE·GOODS·OR·SERVICES;·LOSS·OF·USE,·DATA,·OR·PROFITS;·OR·BUSINESS | ||
24 | .\"·INTERRUPTION)·HOWEVER·CAUSED·AND·ON·ANY·THEORY·OF·LIABILITY,·WHETHER·IN | ||
25 | .\"·CONTRACT,·STRICT·LIABILITY,·OR·TORT·(INCLUDING·NEGLIGENCE·OR·OTHERWISE) | ||
26 | .\"·ARISING·IN·ANY·WAY·OUT·OF·THE·USE·OF·THIS·SOFTWARE,·EVEN·IF·ADVISED·OF·THE | ||
27 | .\"·POSSIBILITY·OF·SUCH·DAMAGE. | ||
28 | .\" | ||
29 | .Dd·August·15,·2021 | ||
30 | .Dt·EDITLINE·3 | ||
31 | .Os | ||
32 | .S | 2 | .SH·NAME |
33 | .Nm·editline·, | ||
34 | .Nm·el_init·, | ||
35 | .Nm·el_init_fd·, | ||
36 | .Nm·el_end·, | ||
37 | .Nm·el_reset·, | ||
38 | .Nm·el_gets·, | ||
39 | .Nm·el_wgets·, | ||
40 | .Nm·el_getc·, | ||
41 | .Nm·el_wgetc·, | ||
42 | .Nm·el_push·, | ||
43 | .Nm·el_wpush·, | ||
44 | .Nm·el_parse·, | ||
45 | .Nm·el_wparse·, | ||
46 | .Nm·el_set·, | ||
47 | .Nm·el_wset·, | ||
48 | .Nm·el_get·, | ||
49 | .Nm·el_wget·, | ||
50 | .Nm·el_source·, | ||
51 | .Nm·el_resize·, | ||
52 | .Nm·el_cursor·, | ||
53 | .Nm·el_line·, | ||
54 | .Nm·el_wline·, | ||
55 | .Nm·el_insertstr·, | ||
56 | .Nm·el_winsertstr·, | ||
57 | .Nm·el_deletestr·, | ||
58 | .Nm·el_wdeletestr·, | ||
59 | .Nm·history_init·, | ||
60 | .Nm·history_winit·, | ||
61 | .Nm·history_end·, | ||
62 | .Nm·history_wend·, | ||
63 | .Nm·history·, | ||
64 | .Nm·history_w·, | ||
65 | .Nm·tok_init·, | ||
66 | .Nm·tok_winit·, | ||
67 | .Nm·tok_end·, | ||
68 | .Nm·tok_wend·, | ||
69 | .Nm·tok_reset·, | ||
70 | .Nm·tok_wreset·, | ||
71 | .Nm·tok_line·, | ||
72 | .Nm·tok_wline·, | ||
73 | .Nm·tok_str·, | ||
74 | 3 | \fBeditline\fP, | |
4 | \fBel_init\fP, | ||
5 | \fBel_init_fd\fP, | ||
6 | \fBel_end\fP, | ||
7 | \fBel_reset\fP, | ||
8 | \fBel_gets\fP, | ||
9 | \fBel_wgets\fP, | ||
10 | \fBel_getc\fP, | ||
11 | \fBel_wgetc\fP, | ||
12 | \fBel_push\fP, | ||
13 | \fBel_wpush\fP, | ||
14 | \fBel_parse\fP, | ||
15 | \fBel_wparse\fP, | ||
16 | \fBel_set\fP, | ||
17 | \fBel_wset\fP, | ||
18 | \fBel_get\fP, | ||
19 | \fBel_wget\fP, | ||
20 | \fBel_source\fP, | ||
21 | \fBel_resize\fP, | ||
22 | \fBel_cursor\fP, | ||
23 | \fBel_line\fP, | ||
24 | \fBel_wline\fP, | ||
25 | \fBel_insertstr\fP, | ||
26 | \fBel_winsertstr\fP, | ||
27 | \fBel_deletestr\fP, | ||
28 | \fBel_wdeletestr\fP, | ||
29 | \fBhistory_init\fP, | ||
30 | \fBhistory_winit\fP, | ||
31 | \fBhistory_end\fP, | ||
32 | \fBhistory_wend\fP, | ||
33 | \fBhistory\fP, | ||
34 | \fBhistory_w\fP, | ||
35 | \fBtok_init\fP, | ||
36 | \fBtok_winit\fP, | ||
37 | \fBtok_end\fP, | ||
38 | \fBtok_wend\fP, | ||
39 | \fBtok_reset\fP, | ||
40 | \fBtok_wreset\fP, | ||
41 | \fBtok_line\fP, | ||
42 | \fBtok_wline\fP, | ||
43 | \fBtok_str\fP, | ||
44 | \fBtok_wstr\fP | ||
75 | 45 | \-·line·editor,·history·and·tokenization·functions | |
76 | .S | 46 | .SH·LIBRARY |
77 | 47 | Command·Line·Editor·Library·(libedit,·-ledit) | |
78 | .S | 48 | .SH·SYNOPSIS |
79 | .In·histedit.h | ||
80 | .Ft·EditLine·* | ||
81 | .Fn·el_init·"const·char·*prog"·"FILE·*fin"·"FILE·*fout"·"FILE·*ferr" | ||
82 | .Ft·EditLine·* | ||
83 | .Fn·el_init_fd·"const·char·*prog"·"FILE·*fin"·"FILE·*fout"·"FILE·*ferr"·"int·fdin"·"int·fdout"·"int·fderr" | ||
84 | .Ft·void | ||
85 | .Fn·el_end·"EditLine·*e" | ||
... Open expanded diff ... |
Offset 1, 326 lines modified | Offset 1, 142 lines modified | ||
1 | .TH·EDITRC·5·"May·22,·2016"·"" | ||
1 | .\"» $NetBSD:·editrc.5,v·1.34·2022/12/06·00:59:20·uwe·Exp·$ | ||
2 | .\" | ||
3 | .\"·Copyright·(c)·1997-2000·The·NetBSD·Foundation,·Inc. | ||
4 | .\"·All·rights·reserved. | ||
5 | .\" | ||
6 | .\"·This·file·was·contributed·to·The·NetBSD·Foundation·by·Luke·Mewburn. | ||
7 | .\" | ||
8 | .\"·Redistribution·and·use·in·source·and·binary·forms,·with·or·without | ||
9 | .\"·modification,·are·permitted·provided·that·the·following·conditions | ||
10 | .\"·are·met: | ||
11 | .\"·1.·Redistributions·of·source·code·must·retain·the·above·copyright | ||
12 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer. | ||
13 | .\"·2.·Redistributions·in·binary·form·must·reproduce·the·above·copyright | ||
14 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer·in·the | ||
15 | .\"····documentation·and/or·other·materials·provided·with·the·distribution. | ||
16 | .\" | ||
17 | .\"·THIS·SOFTWARE·IS·PROVIDED·BY·THE·NETBSD·FOUNDATION,·INC.·AND·CONTRIBUTORS | ||
18 | .\"·``AS·IS''·AND·ANY·EXPRESS·OR·IMPLIED·WARRANTIES,·INCLUDING,·BUT·NOT·LIMITED | ||
19 | .\"·TO,·THE·IMPLIED·WARRANTIES·OF·MERCHANTABILITY·AND·FITNESS·FOR·A·PARTICULAR | ||
20 | .\"·PURPOSE·ARE·DISCLAIMED.··IN·NO·EVENT·SHALL·THE·FOUNDATION·OR·CONTRIBUTORS | ||
21 | .\"·BE·LIABLE·FOR·ANY·DIRECT,·INDIRECT,·INCIDENTAL,·SPECIAL,·EXEMPLARY,·OR | ||
22 | .\"·CONSEQUENTIAL·DAMAGES·(INCLUDING,·BUT·NOT·LIMITED·TO,·PROCUREMENT·OF | ||
23 | .\"·SUBSTITUTE·GOODS·OR·SERVICES;·LOSS·OF·USE,·DATA,·OR·PROFITS;·OR·BUSINESS | ||
24 | .\"·INTERRUPTION)·HOWEVER·CAUSED·AND·ON·ANY·THEORY·OF·LIABILITY,·WHETHER·IN | ||
25 | .\"·CONTRACT,·STRICT·LIABILITY,·OR·TORT·(INCLUDING·NEGLIGENCE·OR·OTHERWISE) | ||
26 | .\"·ARISING·IN·ANY·WAY·OUT·OF·THE·USE·OF·THIS·SOFTWARE,·EVEN·IF·ADVISED·OF·THE | ||
27 | .\"·POSSIBILITY·OF·SUCH·DAMAGE. | ||
28 | .\" | ||
29 | .Dd·May·22,·2016 | ||
30 | .Dt·EDITRC·5 | ||
31 | .Os | ||
32 | .S | 2 | .SH·NAME |
33 | 3 | \fBeditrc\fP | |
34 | 4 | \-·configuration·file·for·editline·library | |
35 | .S | 5 | .SH·SYNOPSIS |
36 | . | 6 | .br |
7 | \fBeditrc\fP | ||
37 | .S | 8 | .SH·DESCRIPTION |
38 | The | 9 | The |
39 | 10 | \fBeditrc\fP | |
40 | file·defines·various·settings·to·be·used·by·the | 11 | file·defines·various·settings·to·be·used·by·the |
41 | 12 | \fBeditline\fP(3) | |
42 | library. | 13 | library. |
43 | .Pp | ||
44 | The·format·of·each·line·is: | 14 | The·format·of·each·line·is: |
45 | .Pp | ||
46 | .D1·Oo·Ar·prog·Ns·Ic·\&:·Oc·Ns·Ar·command·Oo·Ar·arg·...·Oc | ||
47 | .Pp | ||
48 | .Ar·command | ||
49 | is·one·of·the | 15 | is·one·of·the |
50 | .Xr·editline·3 | ||
51 | builtin·commands. | 16 | builtin·commands. |
52 | Refer·to | 17 | Refer·to |
53 | .Sx·BUILTIN·COMMANDS | ||
54 | for·more·information. | 18 | for·more·information. |
55 | .Pp | ||
56 | .Ar·prog | ||
57 | is·the·program·name·string·that·a·program·defines·when·it·calls | 19 | is·the·program·name·string·that·a·program·defines·when·it·calls |
58 | .Xr·el_init·3 | ||
59 | to·set·up | 20 | to·set·up |
60 | .Xr·editline·3·, | ||
61 | which·is·usually | 21 | which·is·usually |
62 | .Va·argv·Ns·Li·[0]·. | ||
63 | .Ar·command | ||
64 | will·be·executed·for·any·program·which·matches | 22 | will·be·executed·for·any·program·which·matches |
65 | .Ar·prog·. | ||
66 | .Pp | ||
67 | .Ar·prog | ||
68 | may·also·be·a | 23 | may·also·be·a |
69 | .Xr·regex·3 | ||
70 | style | 24 | style |
71 | regular·expression,·in·which·case | 25 | regular·expression,·in·which·case |
72 | .Ar·command | ||
73 | will·be·executed·for·any·program·that·matches·the·regular·expression. | 26 | will·be·executed·for·any·program·that·matches·the·regular·expression. |
74 | .Pp | ||
75 | If | 27 | If |
76 | .Ar·prog | ||
77 | is·absent, | 28 | is·absent, |
78 | .Ar·command | ||
79 | is·executed·for·all·programs. | 29 | is·executed·for·all·programs. |
80 | .Sh·BUILTIN·COMMANDS | ||
81 | The | 30 | The |
82 | .Nm·editline | ||
83 | library·has·some·builtin·commands,·which·affect·the·way | 31 | library·has·some·builtin·commands,·which·affect·the·way |
84 | that·the·line·editing·and·history·functions·operate. | 32 | that·the·line·editing·and·history·functions·operate. |
85 | These·are·based·on·similar·named·builtins·present·in·the | 33 | These·are·based·on·similar·named·builtins·present·in·the |
86 | .Xr·tcsh·1 | ||
87 | shell. | 34 | shell. |
88 | .Pp | ||
89 | The·following·builtin·commands·are·available: | 35 | The·following·builtin·commands·are·available: |
90 | .Bl·-tag·-width·4n | ||
91 | .It·Ic·bind·Oo·Fl·aeklrsv·Oc·Op·Ar·key·Op·Ar·command | ||
92 | Without·options·and·arguments,·list·all·bound·keys·and·macros,·and | 36 | Without·options·and·arguments,·list·all·bound·keys·and·macros,·and |
93 | the·editor·command·or·input·string·to·which·each·one·is·bound. | 37 | the·editor·command·or·input·string·to·which·each·one·is·bound. |
94 | If·only | 38 | If·only |
95 | .Ar·key | ||
96 | is·supplied,·show·the·binding·for·that·key·or·macro. | 39 | is·supplied,·show·the·binding·for·that·key·or·macro. |
97 | If | 40 | If |
98 | .Ar·key·command | ||
99 | is·supplied,·bind·the·editor | 41 | is·supplied,·bind·the·editor |
100 | .Ar·command | ||
101 | to·that·key·or·macro. | 42 | to·that·key·or·macro. |
102 | .Pp | ||
103 | The·options·are·as·follows: | 43 | The·options·are·as·follows: |
104 | .Bl·-tag·-width·4n | ||
105 | .It·Fl·a | ||
106 | List·or·change·key·bindings·in·the | 44 | List·or·change·key·bindings·in·the |
107 | .Xr·vi·1 | ||
108 | mode·alternate·(command·mode)·key·map. | 45 | mode·alternate·(command·mode)·key·map. |
109 | .It·Fl·e | ||
110 | Bind·all·keys·to·the·standard | 46 | Bind·all·keys·to·the·standard |
111 | .Tn·GNU | ||
112 | Emacs-like·bindings. | 47 | Emacs-like·bindings. |
113 | .It·Fl·k | ||
114 | .Ar·key | ||
115 | is·interpreted·as·a·symbolic·arrow·key·name,·which·may·be·one·of | 48 | is·interpreted·as·a·symbolic·arrow·key·name,·which·may·be·one·of |
116 | .Ic·up·, | ||
117 | .Ic·down·, | ||
118 | .Ic·left | ||
119 | or | 49 | or |
120 | .Ic·right·. | ||
121 | .It·Fl·l | ||
122 | List·all·editor·commands·and·a·short·description·of·each. | 50 | List·all·editor·commands·and·a·short·description·of·each. |
123 | .It·Fl·r | ||
124 | Remove·the·binding·of·the·key·or·macro | 51 | Remove·the·binding·of·the·key·or·macro |
125 | .Ar·key·. | ||
... Open expanded diff ... |
Offset 1, 935 lines modified | Offset 1, 1001 lines modified | ||
1 | .TH·EDITLINE·7·"April·6,·2024"·"" | ||
1 | .\"» $NetBSD:·editline.7,v·1.6·2024/04/06·13:36:11·christos·Exp·$ | ||
2 | .\"» $OpenBSD:·editline.7,v·1.1·2016/04/20·01:11:45·schwarze·Exp·$ | ||
3 | .\" | ||
4 | .\"·Copyright·(c)·2016·Ingo·Schwarze·<schwarze@openbsd.org> | ||
5 | .\" | ||
6 | .\"·Permission·to·use,·copy,·modify,·and·distribute·this·software·for·any | ||
7 | .\"·purpose·with·or·without·fee·is·hereby·granted,·provided·that·the·above | ||
8 | .\"·copyright·notice·and·this·permission·notice·appear·in·all·copies. | ||
9 | .\" | ||
10 | .\"·THE·SOFTWARE·IS·PROVIDED·"AS·IS"·AND·THE·AUTHOR·DISCLAIMS·ALL·WARRANTIES | ||
11 | .\"·WITH·REGARD·TO·THIS·SOFTWARE·INCLUDING·ALL·IMPLIED·WARRANTIES·OF | ||
12 | .\"·MERCHANTABILITY·AND·FITNESS.·IN·NO·EVENT·SHALL·THE·AUTHOR·BE·LIABLE·FOR | ||
13 | .\"·ANY·SPECIAL,·DIRECT,·INDIRECT,·OR·CONSEQUENTIAL·DAMAGES·OR·ANY·DAMAGES | ||
14 | .\"·WHATSOEVER·RESULTING·FROM·LOSS·OF·USE,·DATA·OR·PROFITS,·WHETHER·IN·AN | ||
15 | .\"·ACTION·OF·CONTRACT,·NEGLIGENCE·OR·OTHER·TORTIOUS·ACTION,·ARISING·OUT·OF | ||
16 | .\"·OR·IN·CONNECTION·WITH·THE·USE·OR·PERFORMANCE·OF·THIS·SOFTWARE. | ||
17 | .\" | ||
18 | .Dd·April·6,·2024 | ||
19 | .Dt·EDITLINE·7 | ||
20 | .Os | ||
21 | .S | 2 | .SH·NAME |
22 | 3 | \fBeditline\fP | |
23 | 4 | \-·line·editing·user·interface | |
24 | .S | 5 | .SH·DESCRIPTION |
25 | When·a·program·using·the | 6 | When·a·program·using·the |
26 | 7 | \fBeditline\fP(3) | |
27 | library·prompts·for·an·input·string·using·the·function | 8 | library·prompts·for·an·input·string·using·the·function |
28 | 9 | \fBel_wgets\fP(3), | |
29 | it·reads·characters·from·the·terminal. | 10 | it·reads·characters·from·the·terminal. |
30 | Invalid·input·bytes·that·do·not·form·characters·are·silently | 11 | Invalid·input·bytes·that·do·not·form·characters·are·silently |
31 | discarded. | 12 | discarded. |
32 | For·each·character·read,·one·editor·command·is·executed. | 13 | For·each·character·read,·one·editor·command·is·executed. |
33 | The·mapping·of·input·characters·to·editor·commands·depends·on·the | 14 | The·mapping·of·input·characters·to·editor·commands·depends·on·the |
34 | editing·mode. | 15 | editing·mode. |
35 | There·are·three·editing·modes:·vi·insert·mode,·vi·command·mode, | 16 | There·are·three·editing·modes:·vi·insert·mode,·vi·command·mode, |
36 | and·emacs·mode. | 17 | and·emacs·mode. |
37 | The·default·is·vi·insert·mode. | 18 | The·default·is·vi·insert·mode. |
38 | The·program·can·switch·the·default·to·emacs·mode·by·using·the | 19 | The·program·can·switch·the·default·to·emacs·mode·by·using·the |
39 | 20 | \fBel_set\fP(3) | |
40 | or | 21 | or |
41 | 22 | \fBel_parse\fP(3) | |
42 | functions,·and·the·user·can·switch·to·emacs·mode·either·in·the | 23 | functions,·and·the·user·can·switch·to·emacs·mode·either·in·the |
43 | 24 | \fBeditrc\fP(5) | |
44 | configuration·file·or·interactively·with·the | 25 | configuration·file·or·interactively·with·the |
45 | 26 | \fBed-command\fP | |
46 | editor·command,·in·all·three·cases·executing·the | 27 | editor·command,·in·all·three·cases·executing·the |
47 | 28 | \fBbind·Fl·e\fP | |
48 | builtin·command. | 29 | builtin·command. |
49 | .Pp | ||
50 | If·trying·to·read·from·the·terminal·results·in·end·of·file·or·an | 30 | If·trying·to·read·from·the·terminal·results·in·end·of·file·or·an |
51 | error,·the·library·signals·end·of·file·to·the·program·and·does·not | 31 | error,·the·library·signals·end·of·file·to·the·program·and·does·not |
52 | return·a·string. | 32 | return·a·string. |
53 | .S | 33 | .SS·Input·character·bindings |
54 | All·default·bindings·described·below·can·be·overridden·by·individual | 34 | All·default·bindings·described·below·can·be·overridden·by·individual |
55 | programs·and·can·be·changed·with·the | 35 | programs·and·can·be·changed·with·the |
56 | .Xr·editrc·5 | ||
57 | 36 | \fBeditrc\fP(5) | |
37 | \fBbind\fP | ||
58 | builtin·command. | 38 | builtin·command. |
59 | .Pp | ||
60 | In·the·following·tables, | 39 | In·the·following·tables, |
61 | 40 | `Ctrl-' | |
62 | indicates·a·character·with·the·bit·0x40·flipped,·and | 41 | indicates·a·character·with·the·bit·0x40·flipped,·and |
63 | 42 | `Meta-' | |
64 | indicates·a·character·with·the·bit·0x80·set. | 43 | indicates·a·character·with·the·bit·0x80·set. |
65 | In·vi·insert·mode·and·in·emacs·mode,·all·Meta-characters·considered | 44 | In·vi·insert·mode·and·in·emacs·mode,·all·Meta-characters·considered |
66 | printable·by·the·current | 45 | printable·by·the·current |
67 | 46 | \fBlocale\fP(1) | |
68 | are·bound·to | 47 | are·bound·to |
69 | 48 | \fBed-insert\fP | |
70 | instead·of·to·the·editor·command·listed·below. | 49 | instead·of·to·the·editor·command·listed·below. |
71 | Consequently,·in·UTF-8·mode,·most·of·the·Meta-characters·are·not | 50 | Consequently,·in·UTF-8·mode,·most·of·the·Meta-characters·are·not |
72 | directly·accessible·because·their·code·points·are·occupied·by | 51 | directly·accessible·because·their·code·points·are·occupied·by |
73 | printable·Unicode·characters,·and·Meta-characters·are·usually·input | 52 | printable·Unicode·characters,·and·Meta-characters·are·usually·input |
74 | using·the | 53 | using·the |
75 | 54 | \fBem-meta-next\fP | |
76 | editor·command. | 55 | editor·command. |
77 | For·example,·to·enter | 56 | For·example,·to·enter |
78 | 57 | `Meta-B' | |
79 | in·order·to·call·the | 58 | in·order·to·call·the |
80 | 59 | \fBed-prev-word\fP | |
81 | editor·command·in·emacs·mode,·call | 60 | editor·command·in·emacs·mode,·call |
82 | 61 | \fBem-meta-next\fP | |
83 | by·pressing·and·releasing·the·escape·key·(or·equivalently,·Ctrl-[), | 62 | by·pressing·and·releasing·the·escape·key·(or·equivalently,·Ctrl-[), |
84 | then·press·and·release·the | 63 | then·press·and·release·the |
85 | 64 | `B' | |
86 | key. | 65 | key. |
87 | If·you·have·configured·a·Meta-key·on·your·keyboard,·for·example | 66 | If·you·have·configured·a·Meta-key·on·your·keyboard,·for·example |
88 | with | 67 | with |
89 | 68 | `setxkbmap'·-option·altwin:left_meta_win·, | |
90 | the·Ctrl-Meta-characters·are·directly·accessible. | 69 | the·Ctrl-Meta-characters·are·directly·accessible. |
91 | For·example,·to·enter | 70 | For·example,·to·enter |
92 | 71 | `Ctrl-Meta-H' | |
93 | in·order·to·call·the | 72 | in·order·to·call·the |
94 | 73 | \fBed-delete-prev-word\fP | |
95 | editor·command·in·emacs·mode,·hold·down·the·keys | 74 | editor·command·in·emacs·mode,·hold·down·the·keys |
96 | .Sq·Ctrl·, | ||
97 | 75 | `Ctrl', | |
76 | `Meta', | ||
98 | and | 77 | and |
99 | 78 | `H' | |
100 | at·the·same·time. | 79 | at·the·same·time. |
101 | Alternatively,·press·and·release·the·escape·key,·then·press·and | 80 | Alternatively,·press·and·release·the·escape·key,·then·press·and |
102 | release | 81 | release |
103 | .Sq·Ctrl-H·. | ||
104 | 82 | `Ctrl-H'. | |
105 | In·vi·input·mode,·input·characters·are·bound·to·the·following·editor | 83 | In·vi·input·mode,·input·characters·are·bound·to·the·following·editor |
106 | commands·by·default: | 84 | commands·by·default: |
107 | .Bl·-column·-offset·indent·"Ctrl-Z,·TSTP"·"ed-search-next-history" | ||
108 | 85 | It·Ctrl-D,·EOF·Ta·\fBvi-list-or-eof\fP | |
109 | 86 | It·Ctrl-H,·BS·Ta·\fBvi-delete-prev-char\fP | |
110 | 87 | It·Ctrl-J,·LF·Ta·\fBed-newline\fP | |
111 | 88 | It·Ctrl-M,·CR·Ta·\fBed-newline\fP | |
112 | 89 | It·Ctrl-Q·Ta·\fBed-tty-start-output\fP | |
113 | 90 | It·Ctrl-S·Ta·\fBed-tty-stop-output\fP | |
114 | 91 | It·Ctrl-U·Ta·\fBvi-kill-line-prev\fP | |
115 | 92 | It·Ctrl-V·Ta·\fBed-quoted-insert\fP | |
116 | 93 | It·Ctrl-W·Ta·\fBed-delete-prev-word\fP | |
117 | 94 | It·Ctrl-[,·ESC·Ta·\fBvi-command-mode\fP | |
118 | 95 | It·Ctrl-\e,·QUIT·Ta·\fBed-tty-sigquit\fP | |
119 | 96 | It·Ctrl-?,·DEL·Ta·\fBvi-delete-prev-char\fP | |
120 | .El | ||
121 | .Pp | ||
122 | All·other·input·characters·except·the·NUL·character·(Ctrl-@)·are | 97 | All·other·input·characters·except·the·NUL·character·(Ctrl-@)·are |
... Open expanded diff ... |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | ?rw-r--r--···0········0········0········4·1970-01-01·00:00:00.000000·debian-binary | 1 | ?rw-r--r--···0········0········0········4·1970-01-01·00:00:00.000000·debian-binary |
2 | ?rw-r--r--···0········0········0······420·1970-01-01·00:00:00.000000·control.tar.gz | 2 | ?rw-r--r--···0········0········0······420·1970-01-01·00:00:00.000000·control.tar.gz |
3 | ?rw-r--r--···0········0········0····1 | 3 | ?rw-r--r--···0········0········0····16929·1970-01-01·00:00:00.000000·data.tar.zst |
Offset 1, 12 lines modified | Offset 1, 12 lines modified | ||
1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/ | 1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/ |
2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/ | 2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/ |
3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/ | 3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/ |
4 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/ | 4 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/ |
5 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 5 | -rw-r--r--···0·root·········(0)·root·········(0)····23827·2024-08-08·18:10:52.000000·./usr/share/man/man3/editline.3 |
6 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_deletestr.3·->·editline.3 | 6 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_deletestr.3·->·editline.3 |
7 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_end.3·->·editline.3 | 7 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_end.3·->·editline.3 |
8 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_get.3·->·editline.3 | 8 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_get.3·->·editline.3 |
9 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_getc.3·->·editline.3 | 9 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_getc.3·->·editline.3 |
10 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_gets.3·->·editline.3 | 10 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_gets.3·->·editline.3 |
11 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history.3·->·editline.3 | 11 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history.3·->·editline.3 |
12 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history_end.3·->·editline.3 | 12 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history_end.3·->·editline.3 |
Offset 40, 10 lines modified | Offset 40, 10 lines modified | ||
40 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wgets.3·->·editline.3 | 40 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wgets.3·->·editline.3 |
41 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_winsertstr.3·->·editline.3 | 41 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_winsertstr.3·->·editline.3 |
42 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wline.3·->·editline.3 | 42 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wline.3·->·editline.3 |
43 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wparse.3·->·editline.3 | 43 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wparse.3·->·editline.3 |
44 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wpush.3·->·editline.3 | 44 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wpush.3·->·editline.3 |
45 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wset.3·->·editline.3 | 45 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wset.3·->·editline.3 |
46 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man5/ | 46 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man5/ |
47 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 47 | -rw-r--r--···0·root·········(0)·root·········(0)·····3598·2024-08-08·18:10:52.000000·./usr/share/man/man5/editrc.5 |
48 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man7/ | 48 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man7/ |
49 | -rw-r--r--···0·root·········(0)·root·········(0)····33 | 49 | -rw-r--r--···0·root·········(0)·root·········(0)····33136·2024-08-08·18:10:52.000000·./usr/share/man/man7/editline.7 |
Offset 1, 1020 lines modified | Offset 1, 1172 lines modified | ||
1 | .TH·EDITLINE·3·"August·15,·2021"·"" | ||
1 | .\"» $NetBSD:·editline.3,v·1.102·2024/02/04·18:47:27·andvar·Exp·$ | ||
2 | .\" | ||
3 | .\"·Copyright·(c)·1997-2014·The·NetBSD·Foundation,·Inc. | ||
4 | .\"·All·rights·reserved. | ||
5 | .\" | ||
6 | .\"·This·file·was·contributed·to·The·NetBSD·Foundation·by·Luke·Mewburn. | ||
7 | .\" | ||
8 | .\"·Redistribution·and·use·in·source·and·binary·forms,·with·or·without | ||
9 | .\"·modification,·are·permitted·provided·that·the·following·conditions | ||
10 | .\"·are·met: | ||
11 | .\"·1.·Redistributions·of·source·code·must·retain·the·above·copyright | ||
12 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer. | ||
13 | .\"·2.·Redistributions·in·binary·form·must·reproduce·the·above·copyright | ||
14 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer·in·the | ||
15 | .\"····documentation·and/or·other·materials·provided·with·the·distribution. | ||
16 | .\" | ||
17 | .\"·THIS·SOFTWARE·IS·PROVIDED·BY·THE·NETBSD·FOUNDATION,·INC.·AND·CONTRIBUTORS | ||
18 | .\"·``AS·IS''·AND·ANY·EXPRESS·OR·IMPLIED·WARRANTIES,·INCLUDING,·BUT·NOT·LIMITED | ||
19 | .\"·TO,·THE·IMPLIED·WARRANTIES·OF·MERCHANTABILITY·AND·FITNESS·FOR·A·PARTICULAR | ||
20 | .\"·PURPOSE·ARE·DISCLAIMED.··IN·NO·EVENT·SHALL·THE·FOUNDATION·OR·CONTRIBUTORS | ||
21 | .\"·BE·LIABLE·FOR·ANY·DIRECT,·INDIRECT,·INCIDENTAL,·SPECIAL,·EXEMPLARY,·OR | ||
22 | .\"·CONSEQUENTIAL·DAMAGES·(INCLUDING,·BUT·NOT·LIMITED·TO,·PROCUREMENT·OF | ||
23 | .\"·SUBSTITUTE·GOODS·OR·SERVICES;·LOSS·OF·USE,·DATA,·OR·PROFITS;·OR·BUSINESS | ||
24 | .\"·INTERRUPTION)·HOWEVER·CAUSED·AND·ON·ANY·THEORY·OF·LIABILITY,·WHETHER·IN | ||
25 | .\"·CONTRACT,·STRICT·LIABILITY,·OR·TORT·(INCLUDING·NEGLIGENCE·OR·OTHERWISE) | ||
26 | .\"·ARISING·IN·ANY·WAY·OUT·OF·THE·USE·OF·THIS·SOFTWARE,·EVEN·IF·ADVISED·OF·THE | ||
27 | .\"·POSSIBILITY·OF·SUCH·DAMAGE. | ||
28 | .\" | ||
29 | .Dd·August·15,·2021 | ||
30 | .Dt·EDITLINE·3 | ||
31 | .Os | ||
32 | .S | 2 | .SH·NAME |
33 | .Nm·editline·, | ||
34 | .Nm·el_init·, | ||
35 | .Nm·el_init_fd·, | ||
36 | .Nm·el_end·, | ||
37 | .Nm·el_reset·, | ||
38 | .Nm·el_gets·, | ||
39 | .Nm·el_wgets·, | ||
40 | .Nm·el_getc·, | ||
41 | .Nm·el_wgetc·, | ||
42 | .Nm·el_push·, | ||
43 | .Nm·el_wpush·, | ||
44 | .Nm·el_parse·, | ||
45 | .Nm·el_wparse·, | ||
46 | .Nm·el_set·, | ||
47 | .Nm·el_wset·, | ||
48 | .Nm·el_get·, | ||
49 | .Nm·el_wget·, | ||
50 | .Nm·el_source·, | ||
51 | .Nm·el_resize·, | ||
52 | .Nm·el_cursor·, | ||
53 | .Nm·el_line·, | ||
54 | .Nm·el_wline·, | ||
55 | .Nm·el_insertstr·, | ||
56 | .Nm·el_winsertstr·, | ||
57 | .Nm·el_deletestr·, | ||
58 | .Nm·el_wdeletestr·, | ||
59 | .Nm·history_init·, | ||
60 | .Nm·history_winit·, | ||
61 | .Nm·history_end·, | ||
62 | .Nm·history_wend·, | ||
63 | .Nm·history·, | ||
64 | .Nm·history_w·, | ||
65 | .Nm·tok_init·, | ||
66 | .Nm·tok_winit·, | ||
67 | .Nm·tok_end·, | ||
68 | .Nm·tok_wend·, | ||
69 | .Nm·tok_reset·, | ||
70 | .Nm·tok_wreset·, | ||
71 | .Nm·tok_line·, | ||
72 | .Nm·tok_wline·, | ||
73 | .Nm·tok_str·, | ||
74 | 3 | \fBeditline\fP, | |
4 | \fBel_init\fP, | ||
5 | \fBel_init_fd\fP, | ||
6 | \fBel_end\fP, | ||
7 | \fBel_reset\fP, | ||
8 | \fBel_gets\fP, | ||
9 | \fBel_wgets\fP, | ||
10 | \fBel_getc\fP, | ||
11 | \fBel_wgetc\fP, | ||
12 | \fBel_push\fP, | ||
13 | \fBel_wpush\fP, | ||
14 | \fBel_parse\fP, | ||
15 | \fBel_wparse\fP, | ||
16 | \fBel_set\fP, | ||
17 | \fBel_wset\fP, | ||
18 | \fBel_get\fP, | ||
19 | \fBel_wget\fP, | ||
20 | \fBel_source\fP, | ||
21 | \fBel_resize\fP, | ||
22 | \fBel_cursor\fP, | ||
23 | \fBel_line\fP, | ||
24 | \fBel_wline\fP, | ||
25 | \fBel_insertstr\fP, | ||
26 | \fBel_winsertstr\fP, | ||
27 | \fBel_deletestr\fP, | ||
28 | \fBel_wdeletestr\fP, | ||
29 | \fBhistory_init\fP, | ||
30 | \fBhistory_winit\fP, | ||
31 | \fBhistory_end\fP, | ||
32 | \fBhistory_wend\fP, | ||
33 | \fBhistory\fP, | ||
34 | \fBhistory_w\fP, | ||
35 | \fBtok_init\fP, | ||
36 | \fBtok_winit\fP, | ||
37 | \fBtok_end\fP, | ||
38 | \fBtok_wend\fP, | ||
39 | \fBtok_reset\fP, | ||
40 | \fBtok_wreset\fP, | ||
41 | \fBtok_line\fP, | ||
42 | \fBtok_wline\fP, | ||
43 | \fBtok_str\fP, | ||
44 | \fBtok_wstr\fP | ||
75 | 45 | \-·line·editor,·history·and·tokenization·functions | |
76 | .S | 46 | .SH·LIBRARY |
77 | 47 | Command·Line·Editor·Library·(libedit,·-ledit) | |
78 | .S | 48 | .SH·SYNOPSIS |
79 | .In·histedit.h | ||
80 | .Ft·EditLine·* | ||
81 | .Fn·el_init·"const·char·*prog"·"FILE·*fin"·"FILE·*fout"·"FILE·*ferr" | ||
82 | .Ft·EditLine·* | ||
83 | .Fn·el_init_fd·"const·char·*prog"·"FILE·*fin"·"FILE·*fout"·"FILE·*ferr"·"int·fdin"·"int·fdout"·"int·fderr" | ||
84 | .Ft·void | ||
85 | .Fn·el_end·"EditLine·*e" | ||
... Open expanded diff ... |
Offset 1, 326 lines modified | Offset 1, 142 lines modified | ||
1 | .TH·EDITRC·5·"May·22,·2016"·"" | ||
1 | .\"» $NetBSD:·editrc.5,v·1.34·2022/12/06·00:59:20·uwe·Exp·$ | ||
2 | .\" | ||
3 | .\"·Copyright·(c)·1997-2000·The·NetBSD·Foundation,·Inc. | ||
4 | .\"·All·rights·reserved. | ||
5 | .\" | ||
6 | .\"·This·file·was·contributed·to·The·NetBSD·Foundation·by·Luke·Mewburn. | ||
7 | .\" | ||
8 | .\"·Redistribution·and·use·in·source·and·binary·forms,·with·or·without | ||
9 | .\"·modification,·are·permitted·provided·that·the·following·conditions | ||
10 | .\"·are·met: | ||
11 | .\"·1.·Redistributions·of·source·code·must·retain·the·above·copyright | ||
12 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer. | ||
13 | .\"·2.·Redistributions·in·binary·form·must·reproduce·the·above·copyright | ||
14 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer·in·the | ||
15 | .\"····documentation·and/or·other·materials·provided·with·the·distribution. | ||
16 | .\" | ||
17 | .\"·THIS·SOFTWARE·IS·PROVIDED·BY·THE·NETBSD·FOUNDATION,·INC.·AND·CONTRIBUTORS | ||
18 | .\"·``AS·IS''·AND·ANY·EXPRESS·OR·IMPLIED·WARRANTIES,·INCLUDING,·BUT·NOT·LIMITED | ||
19 | .\"·TO,·THE·IMPLIED·WARRANTIES·OF·MERCHANTABILITY·AND·FITNESS·FOR·A·PARTICULAR | ||
20 | .\"·PURPOSE·ARE·DISCLAIMED.··IN·NO·EVENT·SHALL·THE·FOUNDATION·OR·CONTRIBUTORS | ||
21 | .\"·BE·LIABLE·FOR·ANY·DIRECT,·INDIRECT,·INCIDENTAL,·SPECIAL,·EXEMPLARY,·OR | ||
22 | .\"·CONSEQUENTIAL·DAMAGES·(INCLUDING,·BUT·NOT·LIMITED·TO,·PROCUREMENT·OF | ||
23 | .\"·SUBSTITUTE·GOODS·OR·SERVICES;·LOSS·OF·USE,·DATA,·OR·PROFITS;·OR·BUSINESS | ||
24 | .\"·INTERRUPTION)·HOWEVER·CAUSED·AND·ON·ANY·THEORY·OF·LIABILITY,·WHETHER·IN | ||
25 | .\"·CONTRACT,·STRICT·LIABILITY,·OR·TORT·(INCLUDING·NEGLIGENCE·OR·OTHERWISE) | ||
26 | .\"·ARISING·IN·ANY·WAY·OUT·OF·THE·USE·OF·THIS·SOFTWARE,·EVEN·IF·ADVISED·OF·THE | ||
27 | .\"·POSSIBILITY·OF·SUCH·DAMAGE. | ||
28 | .\" | ||
29 | .Dd·May·22,·2016 | ||
30 | .Dt·EDITRC·5 | ||
31 | .Os | ||
32 | .S | 2 | .SH·NAME |
33 | 3 | \fBeditrc\fP | |
34 | 4 | \-·configuration·file·for·editline·library | |
35 | .S | 5 | .SH·SYNOPSIS |
36 | . | 6 | .br |
7 | \fBeditrc\fP | ||
37 | .S | 8 | .SH·DESCRIPTION |
38 | The | 9 | The |
39 | 10 | \fBeditrc\fP | |
40 | file·defines·various·settings·to·be·used·by·the | 11 | file·defines·various·settings·to·be·used·by·the |
41 | 12 | \fBeditline\fP(3) | |
42 | library. | 13 | library. |
43 | .Pp | ||
44 | The·format·of·each·line·is: | 14 | The·format·of·each·line·is: |
45 | .Pp | ||
46 | .D1·Oo·Ar·prog·Ns·Ic·\&:·Oc·Ns·Ar·command·Oo·Ar·arg·...·Oc | ||
47 | .Pp | ||
48 | .Ar·command | ||
49 | is·one·of·the | 15 | is·one·of·the |
50 | .Xr·editline·3 | ||
51 | builtin·commands. | 16 | builtin·commands. |
52 | Refer·to | 17 | Refer·to |
53 | .Sx·BUILTIN·COMMANDS | ||
54 | for·more·information. | 18 | for·more·information. |
55 | .Pp | ||
56 | .Ar·prog | ||
57 | is·the·program·name·string·that·a·program·defines·when·it·calls | 19 | is·the·program·name·string·that·a·program·defines·when·it·calls |
58 | .Xr·el_init·3 | ||
59 | to·set·up | 20 | to·set·up |
60 | .Xr·editline·3·, | ||
61 | which·is·usually | 21 | which·is·usually |
62 | .Va·argv·Ns·Li·[0]·. | ||
63 | .Ar·command | ||
64 | will·be·executed·for·any·program·which·matches | 22 | will·be·executed·for·any·program·which·matches |
65 | .Ar·prog·. | ||
66 | .Pp | ||
67 | .Ar·prog | ||
68 | may·also·be·a | 23 | may·also·be·a |
69 | .Xr·regex·3 | ||
70 | style | 24 | style |
71 | regular·expression,·in·which·case | 25 | regular·expression,·in·which·case |
72 | .Ar·command | ||
73 | will·be·executed·for·any·program·that·matches·the·regular·expression. | 26 | will·be·executed·for·any·program·that·matches·the·regular·expression. |
74 | .Pp | ||
75 | If | 27 | If |
76 | .Ar·prog | ||
77 | is·absent, | 28 | is·absent, |
78 | .Ar·command | ||
79 | is·executed·for·all·programs. | 29 | is·executed·for·all·programs. |
80 | .Sh·BUILTIN·COMMANDS | ||
81 | The | 30 | The |
82 | .Nm·editline | ||
83 | library·has·some·builtin·commands,·which·affect·the·way | 31 | library·has·some·builtin·commands,·which·affect·the·way |
84 | that·the·line·editing·and·history·functions·operate. | 32 | that·the·line·editing·and·history·functions·operate. |
85 | These·are·based·on·similar·named·builtins·present·in·the | 33 | These·are·based·on·similar·named·builtins·present·in·the |
86 | .Xr·tcsh·1 | ||
87 | shell. | 34 | shell. |
88 | .Pp | ||
89 | The·following·builtin·commands·are·available: | 35 | The·following·builtin·commands·are·available: |
90 | .Bl·-tag·-width·4n | ||
91 | .It·Ic·bind·Oo·Fl·aeklrsv·Oc·Op·Ar·key·Op·Ar·command | ||
92 | Without·options·and·arguments,·list·all·bound·keys·and·macros,·and | 36 | Without·options·and·arguments,·list·all·bound·keys·and·macros,·and |
93 | the·editor·command·or·input·string·to·which·each·one·is·bound. | 37 | the·editor·command·or·input·string·to·which·each·one·is·bound. |
94 | If·only | 38 | If·only |
95 | .Ar·key | ||
96 | is·supplied,·show·the·binding·for·that·key·or·macro. | 39 | is·supplied,·show·the·binding·for·that·key·or·macro. |
97 | If | 40 | If |
98 | .Ar·key·command | ||
99 | is·supplied,·bind·the·editor | 41 | is·supplied,·bind·the·editor |
100 | .Ar·command | ||
101 | to·that·key·or·macro. | 42 | to·that·key·or·macro. |
102 | .Pp | ||
103 | The·options·are·as·follows: | 43 | The·options·are·as·follows: |
104 | .Bl·-tag·-width·4n | ||
105 | .It·Fl·a | ||
106 | List·or·change·key·bindings·in·the | 44 | List·or·change·key·bindings·in·the |
107 | .Xr·vi·1 | ||
108 | mode·alternate·(command·mode)·key·map. | 45 | mode·alternate·(command·mode)·key·map. |
109 | .It·Fl·e | ||
110 | Bind·all·keys·to·the·standard | 46 | Bind·all·keys·to·the·standard |
111 | .Tn·GNU | ||
112 | Emacs-like·bindings. | 47 | Emacs-like·bindings. |
113 | .It·Fl·k | ||
114 | .Ar·key | ||
115 | is·interpreted·as·a·symbolic·arrow·key·name,·which·may·be·one·of | 48 | is·interpreted·as·a·symbolic·arrow·key·name,·which·may·be·one·of |
116 | .Ic·up·, | ||
117 | .Ic·down·, | ||
118 | .Ic·left | ||
119 | or | 49 | or |
120 | .Ic·right·. | ||
121 | .It·Fl·l | ||
122 | List·all·editor·commands·and·a·short·description·of·each. | 50 | List·all·editor·commands·and·a·short·description·of·each. |
123 | .It·Fl·r | ||
124 | Remove·the·binding·of·the·key·or·macro | 51 | Remove·the·binding·of·the·key·or·macro |
125 | .Ar·key·. | ||
... Open expanded diff ... |
Offset 1, 935 lines modified | Offset 1, 1001 lines modified | ||
1 | .TH·EDITLINE·7·"April·6,·2024"·"" | ||
1 | .\"» $NetBSD:·editline.7,v·1.6·2024/04/06·13:36:11·christos·Exp·$ | ||
2 | .\"» $OpenBSD:·editline.7,v·1.1·2016/04/20·01:11:45·schwarze·Exp·$ | ||
3 | .\" | ||
4 | .\"·Copyright·(c)·2016·Ingo·Schwarze·<schwarze@openbsd.org> | ||
5 | .\" | ||
6 | .\"·Permission·to·use,·copy,·modify,·and·distribute·this·software·for·any | ||
7 | .\"·purpose·with·or·without·fee·is·hereby·granted,·provided·that·the·above | ||
8 | .\"·copyright·notice·and·this·permission·notice·appear·in·all·copies. | ||
9 | .\" | ||
10 | .\"·THE·SOFTWARE·IS·PROVIDED·"AS·IS"·AND·THE·AUTHOR·DISCLAIMS·ALL·WARRANTIES | ||
11 | .\"·WITH·REGARD·TO·THIS·SOFTWARE·INCLUDING·ALL·IMPLIED·WARRANTIES·OF | ||
12 | .\"·MERCHANTABILITY·AND·FITNESS.·IN·NO·EVENT·SHALL·THE·AUTHOR·BE·LIABLE·FOR | ||
13 | .\"·ANY·SPECIAL,·DIRECT,·INDIRECT,·OR·CONSEQUENTIAL·DAMAGES·OR·ANY·DAMAGES | ||
14 | .\"·WHATSOEVER·RESULTING·FROM·LOSS·OF·USE,·DATA·OR·PROFITS,·WHETHER·IN·AN | ||
15 | .\"·ACTION·OF·CONTRACT,·NEGLIGENCE·OR·OTHER·TORTIOUS·ACTION,·ARISING·OUT·OF | ||
16 | .\"·OR·IN·CONNECTION·WITH·THE·USE·OR·PERFORMANCE·OF·THIS·SOFTWARE. | ||
17 | .\" | ||
18 | .Dd·April·6,·2024 | ||
19 | .Dt·EDITLINE·7 | ||
20 | .Os | ||
21 | .S | 2 | .SH·NAME |
22 | 3 | \fBeditline\fP | |
23 | 4 | \-·line·editing·user·interface | |
24 | .S | 5 | .SH·DESCRIPTION |
25 | When·a·program·using·the | 6 | When·a·program·using·the |
26 | 7 | \fBeditline\fP(3) | |
27 | library·prompts·for·an·input·string·using·the·function | 8 | library·prompts·for·an·input·string·using·the·function |
28 | 9 | \fBel_wgets\fP(3), | |
29 | it·reads·characters·from·the·terminal. | 10 | it·reads·characters·from·the·terminal. |
30 | Invalid·input·bytes·that·do·not·form·characters·are·silently | 11 | Invalid·input·bytes·that·do·not·form·characters·are·silently |
31 | discarded. | 12 | discarded. |
32 | For·each·character·read,·one·editor·command·is·executed. | 13 | For·each·character·read,·one·editor·command·is·executed. |
33 | The·mapping·of·input·characters·to·editor·commands·depends·on·the | 14 | The·mapping·of·input·characters·to·editor·commands·depends·on·the |
34 | editing·mode. | 15 | editing·mode. |
35 | There·are·three·editing·modes:·vi·insert·mode,·vi·command·mode, | 16 | There·are·three·editing·modes:·vi·insert·mode,·vi·command·mode, |
36 | and·emacs·mode. | 17 | and·emacs·mode. |
37 | The·default·is·vi·insert·mode. | 18 | The·default·is·vi·insert·mode. |
38 | The·program·can·switch·the·default·to·emacs·mode·by·using·the | 19 | The·program·can·switch·the·default·to·emacs·mode·by·using·the |
39 | 20 | \fBel_set\fP(3) | |
40 | or | 21 | or |
41 | 22 | \fBel_parse\fP(3) | |
42 | functions,·and·the·user·can·switch·to·emacs·mode·either·in·the | 23 | functions,·and·the·user·can·switch·to·emacs·mode·either·in·the |
43 | 24 | \fBeditrc\fP(5) | |
44 | configuration·file·or·interactively·with·the | 25 | configuration·file·or·interactively·with·the |
45 | 26 | \fBed-command\fP | |
46 | editor·command,·in·all·three·cases·executing·the | 27 | editor·command,·in·all·three·cases·executing·the |
47 | 28 | \fBbind·Fl·e\fP | |
48 | builtin·command. | 29 | builtin·command. |
49 | .Pp | ||
50 | If·trying·to·read·from·the·terminal·results·in·end·of·file·or·an | 30 | If·trying·to·read·from·the·terminal·results·in·end·of·file·or·an |
51 | error,·the·library·signals·end·of·file·to·the·program·and·does·not | 31 | error,·the·library·signals·end·of·file·to·the·program·and·does·not |
52 | return·a·string. | 32 | return·a·string. |
53 | .S | 33 | .SS·Input·character·bindings |
54 | All·default·bindings·described·below·can·be·overridden·by·individual | 34 | All·default·bindings·described·below·can·be·overridden·by·individual |
55 | programs·and·can·be·changed·with·the | 35 | programs·and·can·be·changed·with·the |
56 | .Xr·editrc·5 | ||
57 | 36 | \fBeditrc\fP(5) | |
37 | \fBbind\fP | ||
58 | builtin·command. | 38 | builtin·command. |
59 | .Pp | ||
60 | In·the·following·tables, | 39 | In·the·following·tables, |
61 | 40 | `Ctrl-' | |
62 | indicates·a·character·with·the·bit·0x40·flipped,·and | 41 | indicates·a·character·with·the·bit·0x40·flipped,·and |
63 | 42 | `Meta-' | |
64 | indicates·a·character·with·the·bit·0x80·set. | 43 | indicates·a·character·with·the·bit·0x80·set. |
65 | In·vi·insert·mode·and·in·emacs·mode,·all·Meta-characters·considered | 44 | In·vi·insert·mode·and·in·emacs·mode,·all·Meta-characters·considered |
66 | printable·by·the·current | 45 | printable·by·the·current |
67 | 46 | \fBlocale\fP(1) | |
68 | are·bound·to | 47 | are·bound·to |
69 | 48 | \fBed-insert\fP | |
70 | instead·of·to·the·editor·command·listed·below. | 49 | instead·of·to·the·editor·command·listed·below. |
71 | Consequently,·in·UTF-8·mode,·most·of·the·Meta-characters·are·not | 50 | Consequently,·in·UTF-8·mode,·most·of·the·Meta-characters·are·not |
72 | directly·accessible·because·their·code·points·are·occupied·by | 51 | directly·accessible·because·their·code·points·are·occupied·by |
73 | printable·Unicode·characters,·and·Meta-characters·are·usually·input | 52 | printable·Unicode·characters,·and·Meta-characters·are·usually·input |
74 | using·the | 53 | using·the |
75 | 54 | \fBem-meta-next\fP | |
76 | editor·command. | 55 | editor·command. |
77 | For·example,·to·enter | 56 | For·example,·to·enter |
78 | 57 | `Meta-B' | |
79 | in·order·to·call·the | 58 | in·order·to·call·the |
80 | 59 | \fBed-prev-word\fP | |
81 | editor·command·in·emacs·mode,·call | 60 | editor·command·in·emacs·mode,·call |
82 | 61 | \fBem-meta-next\fP | |
83 | by·pressing·and·releasing·the·escape·key·(or·equivalently,·Ctrl-[), | 62 | by·pressing·and·releasing·the·escape·key·(or·equivalently,·Ctrl-[), |
84 | then·press·and·release·the | 63 | then·press·and·release·the |
85 | 64 | `B' | |
86 | key. | 65 | key. |
87 | If·you·have·configured·a·Meta-key·on·your·keyboard,·for·example | 66 | If·you·have·configured·a·Meta-key·on·your·keyboard,·for·example |
88 | with | 67 | with |
89 | 68 | `setxkbmap'·-option·altwin:left_meta_win·, | |
90 | the·Ctrl-Meta-characters·are·directly·accessible. | 69 | the·Ctrl-Meta-characters·are·directly·accessible. |
91 | For·example,·to·enter | 70 | For·example,·to·enter |
92 | 71 | `Ctrl-Meta-H' | |
93 | in·order·to·call·the | 72 | in·order·to·call·the |
94 | 73 | \fBed-delete-prev-word\fP | |
95 | editor·command·in·emacs·mode,·hold·down·the·keys | 74 | editor·command·in·emacs·mode,·hold·down·the·keys |
96 | .Sq·Ctrl·, | ||
97 | 75 | `Ctrl', | |
76 | `Meta', | ||
98 | and | 77 | and |
99 | 78 | `H' | |
100 | at·the·same·time. | 79 | at·the·same·time. |
101 | Alternatively,·press·and·release·the·escape·key,·then·press·and | 80 | Alternatively,·press·and·release·the·escape·key,·then·press·and |
102 | release | 81 | release |
103 | .Sq·Ctrl-H·. | ||
104 | 82 | `Ctrl-H'. | |
105 | In·vi·input·mode,·input·characters·are·bound·to·the·following·editor | 83 | In·vi·input·mode,·input·characters·are·bound·to·the·following·editor |
106 | commands·by·default: | 84 | commands·by·default: |
107 | .Bl·-column·-offset·indent·"Ctrl-Z,·TSTP"·"ed-search-next-history" | ||
108 | 85 | It·Ctrl-D,·EOF·Ta·\fBvi-list-or-eof\fP | |
109 | 86 | It·Ctrl-H,·BS·Ta·\fBvi-delete-prev-char\fP | |
110 | 87 | It·Ctrl-J,·LF·Ta·\fBed-newline\fP | |
111 | 88 | It·Ctrl-M,·CR·Ta·\fBed-newline\fP | |
112 | 89 | It·Ctrl-Q·Ta·\fBed-tty-start-output\fP | |
113 | 90 | It·Ctrl-S·Ta·\fBed-tty-stop-output\fP | |
114 | 91 | It·Ctrl-U·Ta·\fBvi-kill-line-prev\fP | |
115 | 92 | It·Ctrl-V·Ta·\fBed-quoted-insert\fP | |
116 | 93 | It·Ctrl-W·Ta·\fBed-delete-prev-word\fP | |
117 | 94 | It·Ctrl-[,·ESC·Ta·\fBvi-command-mode\fP | |
118 | 95 | It·Ctrl-\e,·QUIT·Ta·\fBed-tty-sigquit\fP | |
119 | 96 | It·Ctrl-?,·DEL·Ta·\fBvi-delete-prev-char\fP | |
120 | .El | ||
121 | .Pp | ||
122 | All·other·input·characters·except·the·NUL·character·(Ctrl-@)·are | 97 | All·other·input·characters·except·the·NUL·character·(Ctrl-@)·are |
... Open expanded diff ... |
Offset 15, 34 lines modified | Offset 15, 34 lines modified | ||
15 | 0000000600000fed000000010000046c0000000600000fee0000000100000474000000040000100400000031000004750000 | 15 | 0000000600000fed000000010000046c0000000600000fee0000000100000474000000040000100400000031000004750000 |
16 | 0004000010c80000003100000476000000080000118c000000030000139300000004000011c000000001000013c600000006 | 16 | 0004000010c80000003100000476000000080000118c000000030000139300000004000011c000000001000013c600000006 |
17 | 000011c400000001000013e400000008000011ca00000001000013e5000000040000120c00000001000013e9000000080000 | 17 | 000011c400000001000013e400000008000011ca00000001000013e5000000040000120c00000001000013e9000000080000 |
18 | 12100000000143006c6962656469742d646f630032303234303830382b332e3100723000425344207265706c6163656d656e | 18 | 12100000000143006c6962656469742d646f630032303234303830382b332e3100723000425344207265706c6163656d656e |
19 | 7420666f72206c6962726561646c696e65202d20446f63756d656e746174696f6e2066696c657300436f6d6d616e64206c69 | 19 | 7420666f72206c6962726561646c696e65202d20446f63756d656e746174696f6e2066696c657300436f6d6d616e64206c69 |
20 | 6e6520656469746f72206c6962726172792070726f766964696e672067656e65726963206c696e652065646974696e672c20 | 20 | 6e6520656469746f72206c6962726172792070726f766964696e672067656e65726963206c696e652065646974696e672c20 |
21 | 686973746f72792c20616e640a746f6b656e697a6174696f6e2066756e6374696f6e73202054686973207061636b61676520 | 21 | 686973746f72792c20616e640a746f6b656e697a6174696f6e2066756e6374696f6e73202054686973207061636b61676520 |
22 | 636f6e7461696e7320646f63756d656e746174696f6e2e00000066b50a2c726570726f64756369626c65000000000000 | 22 | 636f6e7461696e7320646f63756d656e746174696f6e2e00000066b50a2c726570726f64756369626c65000000000000ee21 |
23 | 4253442d332d436c6175736500506f6b79204d61696e7461696e657273203c706f6b79406c697374732e796f63746f70726f | 23 | 4253442d332d436c6175736500506f6b79204d61696e7461696e657273203c706f6b79406c697374732e796f63746f70726f |
24 | 6a6563742e6f72673e00646f6300687474703a2f2f7777772e74687279736f65652e646b2f656469746c696e652f006c696e | 24 | 6a6563742e6f72673e00646f6300687474703a2f2f7777772e74687279736f65652e646b2f656469746c696e652f006c696e |
25 | 757800636f7265325f3634000000000000000000000000000000000000005 | 25 | 757800636f7265325f3634000000000000000000000000000000000000005d130000000a0000000a0000000a0000000a0000 |
26 | 000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a | 26 | 000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a |
27 | 0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000 | 27 | 0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000 |
28 | 000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a000000000000 | 28 | 000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000000000e0e |
29 | 0000000000008 | 29 | 000000000000817041ed41ed41ed41ed81a4a1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ff |
30 | a1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ff41ed | 30 | a1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ff41ed |
31 | 81a441ed81a40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | 31 | 81a441ed81a40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 |
32 | 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | 32 | 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 |
33 | 0000000066b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b5 | 33 | 0000000066b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b5 |
34 | 0a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c | 34 | 0a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c |
35 | 66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b5 | 35 | 66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b5 |
36 | 0a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c | 36 | 0a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c |
37 | 0000000035613531386366633164636231373333353966623461323561363431393536323066613663353761393861646330 | ||
38 | 3064383335653663313232376235616135620000000000000000000000000000000000000000000000000000000000000000 | ||
39 | 0000000000000000000037386539633639323735656238666566636331613664653064393338333731393938363864656536 | ||
40 | 3864353566633636383365306134323632623235343432340000663137343331366435393837353634313665333535383166 | ||
41 | 37 | 0000000030336330373430373534393762326161336132306332323965373661366261386630306463373062333866316233 | |
38 | 3233653761623263666263386661343564310000000000000000000000000000000000000000000000000000000000000000 | ||
39 | 0000000000000000000036636366366135343565303938363366626536353965653734326263616661626332313233353932 | ||
40 | 3935623966336636616263343565613565656132646138360000306263623837313835303266663365656130316634353861 | ||
41 | 3062383139646534636133626231656630313564343137663438643339363165313563643036663100000000000065646974 | ||
42 | 6c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e33 | 42 | 6c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e33 |
43 | 00656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c | 43 | 00656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c |
44 | 696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300 | 44 | 696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300 |
45 | 656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c69 | 45 | 656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c69 |
46 | 6e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e330065 | 46 | 6e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e330065 |
47 | 6469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e | 47 | 6469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e |
48 | 652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e33006564 | 48 | 652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e33006564 |
Offset 102, 45 lines modified | Offset 102, 45 lines modified | ||
102 | 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | 102 | 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 |
103 | 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | 103 | 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 |
104 | 0000000000000000000000000000000000000000000100000002000000020000000200000002000000020000000200000002 | 104 | 0000000000000000000000000000000000000000000100000002000000020000000200000002000000020000000200000002 |
105 | 0000000200000002000000020000000200000002000000020000000200000002000000020000000200000002000000020000 | 105 | 0000000200000002000000020000000200000002000000020000000200000002000000020000000200000002000000020000 |
106 | 0002000000020000000200000002000000020000000200000002000000020000000200000002000000020000000200000002 | 106 | 0002000000020000000200000002000000020000000200000002000000020000000200000002000000020000000200000002 |
107 | 0000000200000002000000020000000200000002000000020000000200000002000000000000000100000000000000016469 | 107 | 0000000200000002000000020000000200000002000000020000000200000002000000000000000100000000000000016469 |
108 | 726563746f72790074726f6666206f722070726570726f636573736f7220696e7075742c2041534349492074657874000000 | 108 | 726563746f72790074726f6666206f722070726570726f636573736f7220696e7075742c2041534349492074657874000000 |
109 | 000000087574662d380037333838313238316664333439313136313637356366383066303364643338663765393933333339 | ||
110 | 3939346237323037396439636662623232653061363661620000000000083263386531653863356635323737643666353264 | ||
111 | 109 | 000000087574662d380061303635636264623766623631663161613734373935636236393866666539313537323332633337 | |
110 | 6534353964313565623761656430653663636537313632310000000000083131306233383262663538346631656538643533 | ||
111 | 6265393834623936626166363161333637386339333764366661646638336139333730323738336634313365000000003f00 | ||
112 | 000007fffffcb000000010 | 112 | 000007fffffcb000000010 |
113 | HEADERI18NTABLE:· | 113 | HEADERI18NTABLE:· |
114 | ·-·C | 114 | ·-·C |
115 | SIGSIZE:·2 | 115 | SIGSIZE:·20061 |
116 | SIGMD5:·751d5a9de98871516b460e5861fc1394 | ||
117 | SHA1HEADER:·cf1aa96cbcc4d1722c9e9094f7538e276757219d | ||
118 | S | 116 | SIGMD5:·346fbb1f7fa32588b8a6c22d70862a3e |
117 | SHA1HEADER:·e962705fa86f761cedd2f991b95ebfead5c9f3a4 | ||
118 | SHA256HEADER:·f8b6ecf6de3428df7d4eb114db39feecc6b7159765eb9d57b479c3a640fc4579 | ||
119 | NAME:·libedit-doc | 119 | NAME:·libedit-doc |
120 | VERSION:·20240808+3.1 | 120 | VERSION:·20240808+3.1 |
121 | RELEASE:·r0 | 121 | RELEASE:·r0 |
122 | SUMMARY:·BSD·replacement·for·libreadline·-·Documentation·files | 122 | SUMMARY:·BSD·replacement·for·libreadline·-·Documentation·files |
123 | DESCRIPTION:·Command·line·editor·library·providing·generic·line·editing,·history,·and·tokenization·functions | 123 | DESCRIPTION:·Command·line·editor·library·providing·generic·line·editing,·history,·and·tokenization·functions |
124 | This·package·contains·documentation. | 124 | This·package·contains·documentation. |
125 | BUILDTIME:·1723140652 | 125 | BUILDTIME:·1723140652 |
126 | BUILDHOST:·reproducible | 126 | BUILDHOST:·reproducible |
127 | SIZE:·6 | 127 | SIZE:·60961 |
128 | LICENSE:·BSD-3-Clause | 128 | LICENSE:·BSD-3-Clause |
129 | PACKAGER:·Poky·Maintainers·<poky@lists.yoctoproject.org> | 129 | PACKAGER:·Poky·Maintainers·<poky@lists.yoctoproject.org> |
130 | GROUP:·doc | 130 | GROUP:·doc |
131 | URL:·http://www.thrysoee.dk/editline/ | 131 | URL:·http://www.thrysoee.dk/editline/ |
132 | OS:·linux | 132 | OS:·linux |
133 | ARCH:·core2_64 | 133 | ARCH:·core2_64 |
134 | FILESIZES:· | 134 | FILESIZES:· |
135 | ·-·0 | 135 | ·-·0 |
136 | ·-·0 | 136 | ·-·0 |
137 | ·-·0 | 137 | ·-·0 |
138 | ·-·0 | 138 | ·-·0 |
139 | ·-·2 | 139 | ·-·23827 |
140 | ·-·10 | 140 | ·-·10 |
141 | ·-·10 | 141 | ·-·10 |
142 | ·-·10 | 142 | ·-·10 |
143 | ·-·10 | 143 | ·-·10 |
144 | ·-·10 | 144 | ·-·10 |
145 | ·-·10 | 145 | ·-·10 |
146 | ·-·10 | 146 | ·-·10 |
Offset 174, 17 lines modified | Offset 174, 17 lines modified | ||
174 | ·-·10 | 174 | ·-·10 |
175 | ·-·10 | 175 | ·-·10 |
176 | ·-·10 | 176 | ·-·10 |
177 | ·-·10 | 177 | ·-·10 |
178 | ·-·10 | 178 | ·-·10 |
179 | ·-·10 | 179 | ·-·10 |
180 | ·-·0 | 180 | ·-·0 |
181 | ·-· | 181 | ·-·3598 |
182 | ·-·0 | 182 | ·-·0 |
183 | ·-·33 | 183 | ·-·33136 |
184 | FILEMODES:· | 184 | FILEMODES:· |
185 | ·-·16877 | 185 | ·-·16877 |
186 | ·-·16877 | 186 | ·-·16877 |
187 | ·-·16877 | 187 | ·-·16877 |
188 | ·-·16877 | 188 | ·-·16877 |
189 | ·-·33188 | 189 | ·-·33188 |
190 | ·-·41471 | 190 | ·-·41471 |
Offset 332, 15 lines modified | Offset 332, 15 lines modified | ||
332 | ·-·1723140652 | 332 | ·-·1723140652 |
333 | ·-·1723140652 | 333 | ·-·1723140652 |
334 | FILEMD5S:· | 334 | FILEMD5S:· |
335 | ·-· | 335 | ·-· |
336 | ·-· | 336 | ·-· |
337 | ·-· | 337 | ·-· |
338 | ·-· | 338 | ·-· |
339 | ·-· | 339 | ·-·03c074075497b2aa3a20c229e76a6ba8f00dc70b38f1b323e7ab2cfbc8fa45d1 |
340 | ·-· | 340 | ·-· |
341 | ·-· | 341 | ·-· |
342 | ·-· | 342 | ·-· |
343 | ·-· | 343 | ·-· |
344 | ·-· | 344 | ·-· |
345 | ·-· | 345 | ·-· |
346 | ·-· | 346 | ·-· |
Offset 374, 17 lines modified | Offset 374, 17 lines modified | ||
374 | ·-· | 374 | ·-· |
375 | ·-· | 375 | ·-· |
376 | ·-· | 376 | ·-· |
377 | ·-· | 377 | ·-· |
... Open expanded diff ... |
Offset 1, 12 lines modified | Offset 1, 12 lines modified | ||
1 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr | 1 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr |
2 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr/share | 2 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr/share |
3 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr/share/man | 3 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr/share/man |
4 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr/share/man/man3 | 4 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr/share/man/man3 |
5 | -rw-r--r--···1········0········0····2 | 5 | -rw-r--r--···1········0········0····23827·2024-08-08·18:10:52.000000·./usr/share/man/man3/editline.3 |
6 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_deletestr.3·->·editline.3 | 6 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_deletestr.3·->·editline.3 |
7 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_end.3·->·editline.3 | 7 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_end.3·->·editline.3 |
8 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_get.3·->·editline.3 | 8 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_get.3·->·editline.3 |
9 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_getc.3·->·editline.3 | 9 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_getc.3·->·editline.3 |
10 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_gets.3·->·editline.3 | 10 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_gets.3·->·editline.3 |
11 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history.3·->·editline.3 | 11 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history.3·->·editline.3 |
12 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history_end.3·->·editline.3 | 12 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history_end.3·->·editline.3 |
Offset 40, 10 lines modified | Offset 40, 10 lines modified | ||
40 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wgets.3·->·editline.3 | 40 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wgets.3·->·editline.3 |
41 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_winsertstr.3·->·editline.3 | 41 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_winsertstr.3·->·editline.3 |
42 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wline.3·->·editline.3 | 42 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wline.3·->·editline.3 |
43 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wparse.3·->·editline.3 | 43 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wparse.3·->·editline.3 |
44 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wpush.3·->·editline.3 | 44 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wpush.3·->·editline.3 |
45 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wset.3·->·editline.3 | 45 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wset.3·->·editline.3 |
46 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr/share/man/man5 | 46 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr/share/man/man5 |
47 | -rw-r--r--···1········0········0····· | 47 | -rw-r--r--···1········0········0·····3598·2024-08-08·18:10:52.000000·./usr/share/man/man5/editrc.5 |
48 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr/share/man/man7 | 48 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr/share/man/man7 |
49 | -rw-r--r--···1········0········0····33 | 49 | -rw-r--r--···1········0········0····33136·2024-08-08·18:10:52.000000·./usr/share/man/man7/editline.7 |
Offset 1, 1020 lines modified | Offset 1, 1172 lines modified | ||
1 | .TH·EDITLINE·3·"August·15,·2021"·"" | ||
1 | .\"» $NetBSD:·editline.3,v·1.102·2024/02/04·18:47:27·andvar·Exp·$ | ||
2 | .\" | ||
3 | .\"·Copyright·(c)·1997-2014·The·NetBSD·Foundation,·Inc. | ||
4 | .\"·All·rights·reserved. | ||
5 | .\" | ||
6 | .\"·This·file·was·contributed·to·The·NetBSD·Foundation·by·Luke·Mewburn. | ||
7 | .\" | ||
8 | .\"·Redistribution·and·use·in·source·and·binary·forms,·with·or·without | ||
9 | .\"·modification,·are·permitted·provided·that·the·following·conditions | ||
10 | .\"·are·met: | ||
11 | .\"·1.·Redistributions·of·source·code·must·retain·the·above·copyright | ||
12 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer. | ||
13 | .\"·2.·Redistributions·in·binary·form·must·reproduce·the·above·copyright | ||
14 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer·in·the | ||
15 | .\"····documentation·and/or·other·materials·provided·with·the·distribution. | ||
16 | .\" | ||
17 | .\"·THIS·SOFTWARE·IS·PROVIDED·BY·THE·NETBSD·FOUNDATION,·INC.·AND·CONTRIBUTORS | ||
18 | .\"·``AS·IS''·AND·ANY·EXPRESS·OR·IMPLIED·WARRANTIES,·INCLUDING,·BUT·NOT·LIMITED | ||
19 | .\"·TO,·THE·IMPLIED·WARRANTIES·OF·MERCHANTABILITY·AND·FITNESS·FOR·A·PARTICULAR | ||
20 | .\"·PURPOSE·ARE·DISCLAIMED.··IN·NO·EVENT·SHALL·THE·FOUNDATION·OR·CONTRIBUTORS | ||
21 | .\"·BE·LIABLE·FOR·ANY·DIRECT,·INDIRECT,·INCIDENTAL,·SPECIAL,·EXEMPLARY,·OR | ||
22 | .\"·CONSEQUENTIAL·DAMAGES·(INCLUDING,·BUT·NOT·LIMITED·TO,·PROCUREMENT·OF | ||
23 | .\"·SUBSTITUTE·GOODS·OR·SERVICES;·LOSS·OF·USE,·DATA,·OR·PROFITS;·OR·BUSINESS | ||
24 | .\"·INTERRUPTION)·HOWEVER·CAUSED·AND·ON·ANY·THEORY·OF·LIABILITY,·WHETHER·IN | ||
25 | .\"·CONTRACT,·STRICT·LIABILITY,·OR·TORT·(INCLUDING·NEGLIGENCE·OR·OTHERWISE) | ||
26 | .\"·ARISING·IN·ANY·WAY·OUT·OF·THE·USE·OF·THIS·SOFTWARE,·EVEN·IF·ADVISED·OF·THE | ||
27 | .\"·POSSIBILITY·OF·SUCH·DAMAGE. | ||
28 | .\" | ||
29 | .Dd·August·15,·2021 | ||
30 | .Dt·EDITLINE·3 | ||
31 | .Os | ||
32 | .S | 2 | .SH·NAME |
33 | .Nm·editline·, | ||
34 | .Nm·el_init·, | ||
35 | .Nm·el_init_fd·, | ||
36 | .Nm·el_end·, | ||
37 | .Nm·el_reset·, | ||
38 | .Nm·el_gets·, | ||
39 | .Nm·el_wgets·, | ||
40 | .Nm·el_getc·, | ||
41 | .Nm·el_wgetc·, | ||
42 | .Nm·el_push·, | ||
43 | .Nm·el_wpush·, | ||
44 | .Nm·el_parse·, | ||
45 | .Nm·el_wparse·, | ||
46 | .Nm·el_set·, | ||
47 | .Nm·el_wset·, | ||
48 | .Nm·el_get·, | ||
49 | .Nm·el_wget·, | ||
50 | .Nm·el_source·, | ||
51 | .Nm·el_resize·, | ||
52 | .Nm·el_cursor·, | ||
53 | .Nm·el_line·, | ||
54 | .Nm·el_wline·, | ||
55 | .Nm·el_insertstr·, | ||
56 | .Nm·el_winsertstr·, | ||
57 | .Nm·el_deletestr·, | ||
58 | .Nm·el_wdeletestr·, | ||
59 | .Nm·history_init·, | ||
60 | .Nm·history_winit·, | ||
61 | .Nm·history_end·, | ||
62 | .Nm·history_wend·, | ||
63 | .Nm·history·, | ||
64 | .Nm·history_w·, | ||
65 | .Nm·tok_init·, | ||
66 | .Nm·tok_winit·, | ||
67 | .Nm·tok_end·, | ||
68 | .Nm·tok_wend·, | ||
69 | .Nm·tok_reset·, | ||
70 | .Nm·tok_wreset·, | ||
71 | .Nm·tok_line·, | ||
72 | .Nm·tok_wline·, | ||
73 | .Nm·tok_str·, | ||
74 | 3 | \fBeditline\fP, | |
4 | \fBel_init\fP, | ||
5 | \fBel_init_fd\fP, | ||
6 | \fBel_end\fP, | ||
7 | \fBel_reset\fP, | ||
8 | \fBel_gets\fP, | ||
9 | \fBel_wgets\fP, | ||
10 | \fBel_getc\fP, | ||
11 | \fBel_wgetc\fP, | ||
12 | \fBel_push\fP, | ||
13 | \fBel_wpush\fP, | ||
14 | \fBel_parse\fP, | ||
15 | \fBel_wparse\fP, | ||
16 | \fBel_set\fP, | ||
17 | \fBel_wset\fP, | ||
18 | \fBel_get\fP, | ||
19 | \fBel_wget\fP, | ||
20 | \fBel_source\fP, | ||
21 | \fBel_resize\fP, | ||
22 | \fBel_cursor\fP, | ||
23 | \fBel_line\fP, | ||
24 | \fBel_wline\fP, | ||
25 | \fBel_insertstr\fP, | ||
26 | \fBel_winsertstr\fP, | ||
27 | \fBel_deletestr\fP, | ||
28 | \fBel_wdeletestr\fP, | ||
29 | \fBhistory_init\fP, | ||
30 | \fBhistory_winit\fP, | ||
31 | \fBhistory_end\fP, | ||
32 | \fBhistory_wend\fP, | ||
33 | \fBhistory\fP, | ||
34 | \fBhistory_w\fP, | ||
35 | \fBtok_init\fP, | ||
36 | \fBtok_winit\fP, | ||
37 | \fBtok_end\fP, | ||
38 | \fBtok_wend\fP, | ||
39 | \fBtok_reset\fP, | ||
40 | \fBtok_wreset\fP, | ||
41 | \fBtok_line\fP, | ||
42 | \fBtok_wline\fP, | ||
43 | \fBtok_str\fP, | ||
44 | \fBtok_wstr\fP | ||
75 | 45 | \-·line·editor,·history·and·tokenization·functions | |
76 | .S | 46 | .SH·LIBRARY |
77 | 47 | Command·Line·Editor·Library·(libedit,·-ledit) | |
78 | .S | 48 | .SH·SYNOPSIS |
79 | .In·histedit.h | ||
80 | .Ft·EditLine·* | ||
81 | .Fn·el_init·"const·char·*prog"·"FILE·*fin"·"FILE·*fout"·"FILE·*ferr" | ||
82 | .Ft·EditLine·* | ||
83 | .Fn·el_init_fd·"const·char·*prog"·"FILE·*fin"·"FILE·*fout"·"FILE·*ferr"·"int·fdin"·"int·fdout"·"int·fderr" | ||
84 | .Ft·void | ||
85 | .Fn·el_end·"EditLine·*e" | ||
... Open expanded diff ... |
Offset 1, 326 lines modified | Offset 1, 142 lines modified | ||
1 | .TH·EDITRC·5·"May·22,·2016"·"" | ||
1 | .\"» $NetBSD:·editrc.5,v·1.34·2022/12/06·00:59:20·uwe·Exp·$ | ||
2 | .\" | ||
3 | .\"·Copyright·(c)·1997-2000·The·NetBSD·Foundation,·Inc. | ||
4 | .\"·All·rights·reserved. | ||
5 | .\" | ||
6 | .\"·This·file·was·contributed·to·The·NetBSD·Foundation·by·Luke·Mewburn. | ||
7 | .\" | ||
8 | .\"·Redistribution·and·use·in·source·and·binary·forms,·with·or·without | ||
9 | .\"·modification,·are·permitted·provided·that·the·following·conditions | ||
10 | .\"·are·met: | ||
11 | .\"·1.·Redistributions·of·source·code·must·retain·the·above·copyright | ||
12 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer. | ||
13 | .\"·2.·Redistributions·in·binary·form·must·reproduce·the·above·copyright | ||
14 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer·in·the | ||
15 | .\"····documentation·and/or·other·materials·provided·with·the·distribution. | ||
16 | .\" | ||
17 | .\"·THIS·SOFTWARE·IS·PROVIDED·BY·THE·NETBSD·FOUNDATION,·INC.·AND·CONTRIBUTORS | ||
18 | .\"·``AS·IS''·AND·ANY·EXPRESS·OR·IMPLIED·WARRANTIES,·INCLUDING,·BUT·NOT·LIMITED | ||
19 | .\"·TO,·THE·IMPLIED·WARRANTIES·OF·MERCHANTABILITY·AND·FITNESS·FOR·A·PARTICULAR | ||
20 | .\"·PURPOSE·ARE·DISCLAIMED.··IN·NO·EVENT·SHALL·THE·FOUNDATION·OR·CONTRIBUTORS | ||
21 | .\"·BE·LIABLE·FOR·ANY·DIRECT,·INDIRECT,·INCIDENTAL,·SPECIAL,·EXEMPLARY,·OR | ||
22 | .\"·CONSEQUENTIAL·DAMAGES·(INCLUDING,·BUT·NOT·LIMITED·TO,·PROCUREMENT·OF | ||
23 | .\"·SUBSTITUTE·GOODS·OR·SERVICES;·LOSS·OF·USE,·DATA,·OR·PROFITS;·OR·BUSINESS | ||
24 | .\"·INTERRUPTION)·HOWEVER·CAUSED·AND·ON·ANY·THEORY·OF·LIABILITY,·WHETHER·IN | ||
25 | .\"·CONTRACT,·STRICT·LIABILITY,·OR·TORT·(INCLUDING·NEGLIGENCE·OR·OTHERWISE) | ||
26 | .\"·ARISING·IN·ANY·WAY·OUT·OF·THE·USE·OF·THIS·SOFTWARE,·EVEN·IF·ADVISED·OF·THE | ||
27 | .\"·POSSIBILITY·OF·SUCH·DAMAGE. | ||
28 | .\" | ||
29 | .Dd·May·22,·2016 | ||
30 | .Dt·EDITRC·5 | ||
31 | .Os | ||
32 | .S | 2 | .SH·NAME |
33 | 3 | \fBeditrc\fP | |
34 | 4 | \-·configuration·file·for·editline·library | |
35 | .S | 5 | .SH·SYNOPSIS |
36 | . | 6 | .br |
7 | \fBeditrc\fP | ||
37 | .S | 8 | .SH·DESCRIPTION |
38 | The | 9 | The |
39 | 10 | \fBeditrc\fP | |
40 | file·defines·various·settings·to·be·used·by·the | 11 | file·defines·various·settings·to·be·used·by·the |
41 | 12 | \fBeditline\fP(3) | |
42 | library. | 13 | library. |
43 | .Pp | ||
44 | The·format·of·each·line·is: | 14 | The·format·of·each·line·is: |
45 | .Pp | ||
46 | .D1·Oo·Ar·prog·Ns·Ic·\&:·Oc·Ns·Ar·command·Oo·Ar·arg·...·Oc | ||
47 | .Pp | ||
48 | .Ar·command | ||
49 | is·one·of·the | 15 | is·one·of·the |
50 | .Xr·editline·3 | ||
51 | builtin·commands. | 16 | builtin·commands. |
52 | Refer·to | 17 | Refer·to |
53 | .Sx·BUILTIN·COMMANDS | ||
54 | for·more·information. | 18 | for·more·information. |
55 | .Pp | ||
56 | .Ar·prog | ||
57 | is·the·program·name·string·that·a·program·defines·when·it·calls | 19 | is·the·program·name·string·that·a·program·defines·when·it·calls |
58 | .Xr·el_init·3 | ||
59 | to·set·up | 20 | to·set·up |
60 | .Xr·editline·3·, | ||
61 | which·is·usually | 21 | which·is·usually |
62 | .Va·argv·Ns·Li·[0]·. | ||
63 | .Ar·command | ||
64 | will·be·executed·for·any·program·which·matches | 22 | will·be·executed·for·any·program·which·matches |
65 | .Ar·prog·. | ||
66 | .Pp | ||
67 | .Ar·prog | ||
68 | may·also·be·a | 23 | may·also·be·a |
69 | .Xr·regex·3 | ||
70 | style | 24 | style |
71 | regular·expression,·in·which·case | 25 | regular·expression,·in·which·case |
72 | .Ar·command | ||
73 | will·be·executed·for·any·program·that·matches·the·regular·expression. | 26 | will·be·executed·for·any·program·that·matches·the·regular·expression. |
74 | .Pp | ||
75 | If | 27 | If |
76 | .Ar·prog | ||
77 | is·absent, | 28 | is·absent, |
78 | .Ar·command | ||
79 | is·executed·for·all·programs. | 29 | is·executed·for·all·programs. |
80 | .Sh·BUILTIN·COMMANDS | ||
81 | The | 30 | The |
82 | .Nm·editline | ||
83 | library·has·some·builtin·commands,·which·affect·the·way | 31 | library·has·some·builtin·commands,·which·affect·the·way |
84 | that·the·line·editing·and·history·functions·operate. | 32 | that·the·line·editing·and·history·functions·operate. |
85 | These·are·based·on·similar·named·builtins·present·in·the | 33 | These·are·based·on·similar·named·builtins·present·in·the |
86 | .Xr·tcsh·1 | ||
87 | shell. | 34 | shell. |
88 | .Pp | ||
89 | The·following·builtin·commands·are·available: | 35 | The·following·builtin·commands·are·available: |
90 | .Bl·-tag·-width·4n | ||
91 | .It·Ic·bind·Oo·Fl·aeklrsv·Oc·Op·Ar·key·Op·Ar·command | ||
92 | Without·options·and·arguments,·list·all·bound·keys·and·macros,·and | 36 | Without·options·and·arguments,·list·all·bound·keys·and·macros,·and |
93 | the·editor·command·or·input·string·to·which·each·one·is·bound. | 37 | the·editor·command·or·input·string·to·which·each·one·is·bound. |
94 | If·only | 38 | If·only |
95 | .Ar·key | ||
96 | is·supplied,·show·the·binding·for·that·key·or·macro. | 39 | is·supplied,·show·the·binding·for·that·key·or·macro. |
97 | If | 40 | If |
98 | .Ar·key·command | ||
99 | is·supplied,·bind·the·editor | 41 | is·supplied,·bind·the·editor |
100 | .Ar·command | ||
101 | to·that·key·or·macro. | 42 | to·that·key·or·macro. |
102 | .Pp | ||
103 | The·options·are·as·follows: | 43 | The·options·are·as·follows: |
104 | .Bl·-tag·-width·4n | ||
105 | .It·Fl·a | ||
106 | List·or·change·key·bindings·in·the | 44 | List·or·change·key·bindings·in·the |
107 | .Xr·vi·1 | ||
108 | mode·alternate·(command·mode)·key·map. | 45 | mode·alternate·(command·mode)·key·map. |
109 | .It·Fl·e | ||
110 | Bind·all·keys·to·the·standard | 46 | Bind·all·keys·to·the·standard |
111 | .Tn·GNU | ||
112 | Emacs-like·bindings. | 47 | Emacs-like·bindings. |
113 | .It·Fl·k | ||
114 | .Ar·key | ||
115 | is·interpreted·as·a·symbolic·arrow·key·name,·which·may·be·one·of | 48 | is·interpreted·as·a·symbolic·arrow·key·name,·which·may·be·one·of |
116 | .Ic·up·, | ||
117 | .Ic·down·, | ||
118 | .Ic·left | ||
119 | or | 49 | or |
120 | .Ic·right·. | ||
121 | .It·Fl·l | ||
122 | List·all·editor·commands·and·a·short·description·of·each. | 50 | List·all·editor·commands·and·a·short·description·of·each. |
123 | .It·Fl·r | ||
124 | Remove·the·binding·of·the·key·or·macro | 51 | Remove·the·binding·of·the·key·or·macro |
125 | .Ar·key·. | ||
... Open expanded diff ... |
Offset 1, 935 lines modified | Offset 1, 1001 lines modified | ||
1 | .TH·EDITLINE·7·"April·6,·2024"·"" | ||
1 | .\"» $NetBSD:·editline.7,v·1.6·2024/04/06·13:36:11·christos·Exp·$ | ||
2 | .\"» $OpenBSD:·editline.7,v·1.1·2016/04/20·01:11:45·schwarze·Exp·$ | ||
3 | .\" | ||
4 | .\"·Copyright·(c)·2016·Ingo·Schwarze·<schwarze@openbsd.org> | ||
5 | .\" | ||
6 | .\"·Permission·to·use,·copy,·modify,·and·distribute·this·software·for·any | ||
7 | .\"·purpose·with·or·without·fee·is·hereby·granted,·provided·that·the·above | ||
8 | .\"·copyright·notice·and·this·permission·notice·appear·in·all·copies. | ||
9 | .\" | ||
10 | .\"·THE·SOFTWARE·IS·PROVIDED·"AS·IS"·AND·THE·AUTHOR·DISCLAIMS·ALL·WARRANTIES | ||
11 | .\"·WITH·REGARD·TO·THIS·SOFTWARE·INCLUDING·ALL·IMPLIED·WARRANTIES·OF | ||
12 | .\"·MERCHANTABILITY·AND·FITNESS.·IN·NO·EVENT·SHALL·THE·AUTHOR·BE·LIABLE·FOR | ||
13 | .\"·ANY·SPECIAL,·DIRECT,·INDIRECT,·OR·CONSEQUENTIAL·DAMAGES·OR·ANY·DAMAGES | ||
14 | .\"·WHATSOEVER·RESULTING·FROM·LOSS·OF·USE,·DATA·OR·PROFITS,·WHETHER·IN·AN | ||
15 | .\"·ACTION·OF·CONTRACT,·NEGLIGENCE·OR·OTHER·TORTIOUS·ACTION,·ARISING·OUT·OF | ||
16 | .\"·OR·IN·CONNECTION·WITH·THE·USE·OR·PERFORMANCE·OF·THIS·SOFTWARE. | ||
17 | .\" | ||
18 | .Dd·April·6,·2024 | ||
19 | .Dt·EDITLINE·7 | ||
20 | .Os | ||
21 | .S | 2 | .SH·NAME |
22 | 3 | \fBeditline\fP | |
23 | 4 | \-·line·editing·user·interface | |
24 | .S | 5 | .SH·DESCRIPTION |
25 | When·a·program·using·the | 6 | When·a·program·using·the |
26 | 7 | \fBeditline\fP(3) | |
27 | library·prompts·for·an·input·string·using·the·function | 8 | library·prompts·for·an·input·string·using·the·function |
28 | 9 | \fBel_wgets\fP(3), | |
29 | it·reads·characters·from·the·terminal. | 10 | it·reads·characters·from·the·terminal. |
30 | Invalid·input·bytes·that·do·not·form·characters·are·silently | 11 | Invalid·input·bytes·that·do·not·form·characters·are·silently |
31 | discarded. | 12 | discarded. |
32 | For·each·character·read,·one·editor·command·is·executed. | 13 | For·each·character·read,·one·editor·command·is·executed. |
33 | The·mapping·of·input·characters·to·editor·commands·depends·on·the | 14 | The·mapping·of·input·characters·to·editor·commands·depends·on·the |
34 | editing·mode. | 15 | editing·mode. |
35 | There·are·three·editing·modes:·vi·insert·mode,·vi·command·mode, | 16 | There·are·three·editing·modes:·vi·insert·mode,·vi·command·mode, |
36 | and·emacs·mode. | 17 | and·emacs·mode. |
37 | The·default·is·vi·insert·mode. | 18 | The·default·is·vi·insert·mode. |
38 | The·program·can·switch·the·default·to·emacs·mode·by·using·the | 19 | The·program·can·switch·the·default·to·emacs·mode·by·using·the |
39 | 20 | \fBel_set\fP(3) | |
40 | or | 21 | or |
41 | 22 | \fBel_parse\fP(3) | |
42 | functions,·and·the·user·can·switch·to·emacs·mode·either·in·the | 23 | functions,·and·the·user·can·switch·to·emacs·mode·either·in·the |
43 | 24 | \fBeditrc\fP(5) | |
44 | configuration·file·or·interactively·with·the | 25 | configuration·file·or·interactively·with·the |
45 | 26 | \fBed-command\fP | |
46 | editor·command,·in·all·three·cases·executing·the | 27 | editor·command,·in·all·three·cases·executing·the |
47 | 28 | \fBbind·Fl·e\fP | |
48 | builtin·command. | 29 | builtin·command. |
49 | .Pp | ||
50 | If·trying·to·read·from·the·terminal·results·in·end·of·file·or·an | 30 | If·trying·to·read·from·the·terminal·results·in·end·of·file·or·an |
51 | error,·the·library·signals·end·of·file·to·the·program·and·does·not | 31 | error,·the·library·signals·end·of·file·to·the·program·and·does·not |
52 | return·a·string. | 32 | return·a·string. |
53 | .S | 33 | .SS·Input·character·bindings |
54 | All·default·bindings·described·below·can·be·overridden·by·individual | 34 | All·default·bindings·described·below·can·be·overridden·by·individual |
55 | programs·and·can·be·changed·with·the | 35 | programs·and·can·be·changed·with·the |
56 | .Xr·editrc·5 | ||
57 | 36 | \fBeditrc\fP(5) | |
37 | \fBbind\fP | ||
58 | builtin·command. | 38 | builtin·command. |
59 | .Pp | ||
60 | In·the·following·tables, | 39 | In·the·following·tables, |
61 | 40 | `Ctrl-' | |
62 | indicates·a·character·with·the·bit·0x40·flipped,·and | 41 | indicates·a·character·with·the·bit·0x40·flipped,·and |
63 | 42 | `Meta-' | |
64 | indicates·a·character·with·the·bit·0x80·set. | 43 | indicates·a·character·with·the·bit·0x80·set. |
65 | In·vi·insert·mode·and·in·emacs·mode,·all·Meta-characters·considered | 44 | In·vi·insert·mode·and·in·emacs·mode,·all·Meta-characters·considered |
66 | printable·by·the·current | 45 | printable·by·the·current |
67 | 46 | \fBlocale\fP(1) | |
68 | are·bound·to | 47 | are·bound·to |
69 | 48 | \fBed-insert\fP | |
70 | instead·of·to·the·editor·command·listed·below. | 49 | instead·of·to·the·editor·command·listed·below. |
71 | Consequently,·in·UTF-8·mode,·most·of·the·Meta-characters·are·not | 50 | Consequently,·in·UTF-8·mode,·most·of·the·Meta-characters·are·not |
72 | directly·accessible·because·their·code·points·are·occupied·by | 51 | directly·accessible·because·their·code·points·are·occupied·by |
73 | printable·Unicode·characters,·and·Meta-characters·are·usually·input | 52 | printable·Unicode·characters,·and·Meta-characters·are·usually·input |
74 | using·the | 53 | using·the |
75 | 54 | \fBem-meta-next\fP | |
76 | editor·command. | 55 | editor·command. |
77 | For·example,·to·enter | 56 | For·example,·to·enter |
78 | 57 | `Meta-B' | |
79 | in·order·to·call·the | 58 | in·order·to·call·the |
80 | 59 | \fBed-prev-word\fP | |
81 | editor·command·in·emacs·mode,·call | 60 | editor·command·in·emacs·mode,·call |
82 | 61 | \fBem-meta-next\fP | |
83 | by·pressing·and·releasing·the·escape·key·(or·equivalently,·Ctrl-[), | 62 | by·pressing·and·releasing·the·escape·key·(or·equivalently,·Ctrl-[), |
84 | then·press·and·release·the | 63 | then·press·and·release·the |
85 | 64 | `B' | |
86 | key. | 65 | key. |
87 | If·you·have·configured·a·Meta-key·on·your·keyboard,·for·example | 66 | If·you·have·configured·a·Meta-key·on·your·keyboard,·for·example |
88 | with | 67 | with |
89 | 68 | `setxkbmap'·-option·altwin:left_meta_win·, | |
90 | the·Ctrl-Meta-characters·are·directly·accessible. | 69 | the·Ctrl-Meta-characters·are·directly·accessible. |
91 | For·example,·to·enter | 70 | For·example,·to·enter |
92 | 71 | `Ctrl-Meta-H' | |
93 | in·order·to·call·the | 72 | in·order·to·call·the |
94 | 73 | \fBed-delete-prev-word\fP | |
95 | editor·command·in·emacs·mode,·hold·down·the·keys | 74 | editor·command·in·emacs·mode,·hold·down·the·keys |
96 | .Sq·Ctrl·, | ||
97 | 75 | `Ctrl', | |
76 | `Meta', | ||
98 | and | 77 | and |
99 | 78 | `H' | |
100 | at·the·same·time. | 79 | at·the·same·time. |
101 | Alternatively,·press·and·release·the·escape·key,·then·press·and | 80 | Alternatively,·press·and·release·the·escape·key,·then·press·and |
102 | release | 81 | release |
103 | .Sq·Ctrl-H·. | ||
104 | 82 | `Ctrl-H'. | |
105 | In·vi·input·mode,·input·characters·are·bound·to·the·following·editor | 83 | In·vi·input·mode,·input·characters·are·bound·to·the·following·editor |
106 | commands·by·default: | 84 | commands·by·default: |
107 | .Bl·-column·-offset·indent·"Ctrl-Z,·TSTP"·"ed-search-next-history" | ||
108 | 85 | It·Ctrl-D,·EOF·Ta·\fBvi-list-or-eof\fP | |
109 | 86 | It·Ctrl-H,·BS·Ta·\fBvi-delete-prev-char\fP | |
110 | 87 | It·Ctrl-J,·LF·Ta·\fBed-newline\fP | |
111 | 88 | It·Ctrl-M,·CR·Ta·\fBed-newline\fP | |
112 | 89 | It·Ctrl-Q·Ta·\fBed-tty-start-output\fP | |
113 | 90 | It·Ctrl-S·Ta·\fBed-tty-stop-output\fP | |
114 | 91 | It·Ctrl-U·Ta·\fBvi-kill-line-prev\fP | |
115 | 92 | It·Ctrl-V·Ta·\fBed-quoted-insert\fP | |
116 | 93 | It·Ctrl-W·Ta·\fBed-delete-prev-word\fP | |
117 | 94 | It·Ctrl-[,·ESC·Ta·\fBvi-command-mode\fP | |
118 | 95 | It·Ctrl-\e,·QUIT·Ta·\fBed-tty-sigquit\fP | |
119 | 96 | It·Ctrl-?,·DEL·Ta·\fBvi-delete-prev-char\fP | |
120 | .El | ||
121 | .Pp | ||
122 | All·other·input·characters·except·the·NUL·character·(Ctrl-@)·are | 97 | All·other·input·characters·except·the·NUL·character·(Ctrl-@)·are |
... Open expanded diff ... |