Handbook
Glossary
readline-listener ( -- )
Vocabulary
readline-listener
Word description
Invokes a listener that uses libreadline for editing, history and word completion.
Definition
USING:
io
kernel
listener
readline
readline-listener.private
sequences
;
IN:
readline-listener
:
readline-listener
( -- )
[
swap
get-completions
?nth
[
clear-completions
f
]
unless*
]
set-completion
readline-reader
new
[
listener-main
]
with-input-stream*
;