… | |
… | |
142 | $self = $class->SUPER::new ($arg{name} || $0, $in, $out); |
142 | $self = $class->SUPER::new ($arg{name} || $0, $in, $out); |
143 | |
143 | |
144 | $self->CallbackHandlerInstall ($prompt, \&on_line); |
144 | $self->CallbackHandlerInstall ($prompt, \&on_line); |
145 | # set the unadorned prompt |
145 | # set the unadorned prompt |
146 | $self->rl_set_prompt ($prompt); |
146 | $self->rl_set_prompt ($prompt); |
|
|
147 | $self->redisplay; |
147 | |
148 | |
148 | $hidden = 1; |
149 | $hidden = 1; |
149 | $self->show; |
150 | $self->show; |
150 | |
151 | |
151 | $self |
152 | $self |
… | |
… | |
258 | =item unexpected disk I/O |
259 | =item unexpected disk I/O |
259 | |
260 | |
260 | By default, readline does filename completion on TAB, and reads its |
261 | By default, readline does filename completion on TAB, and reads its |
261 | config files. |
262 | config files. |
262 | |
263 | |
|
|
264 | Tab completion can be disabled by calling C<< $rl->unbind_key (9) >>. |
|
|
265 | |
263 | =item tty settings |
266 | =item tty settings |
264 | |
267 | |
265 | After readline has been initialised, it will mangle the termios tty |
268 | After readline has been initialised, it will mangle the termios tty |
266 | settings. This does not normally affect output very much, but should be |
269 | settings. This does not normally affect output very much, but should be |
267 | taken into consideration. |
270 | taken into consideration. |
… | |
… | |
279 | =head1 AUTHOR, CONTACT, SUPPORT |
282 | =head1 AUTHOR, CONTACT, SUPPORT |
280 | |
283 | |
281 | Marc Lehmann <schmorp@schmorp.de> |
284 | Marc Lehmann <schmorp@schmorp.de> |
282 | http://software.schmorp.de/pkg/AnyEvent-Readline-Gnu.html |
285 | http://software.schmorp.de/pkg/AnyEvent-Readline-Gnu.html |
283 | |
286 | |
284 | =cut |
287 | =head1 SEE ALSO |
285 | |
288 | |
|
|
289 | L<rltelnet> - a simple tcp_connect-with-readline program using this module. |
|
|
290 | |
|
|
291 | =cut |
|
|
292 | |