Liking cljdoc? Tell your friends :D

advenjure.ui.input


consoleclj

source

expand-suggestioncljs

(expand-suggestion token items dirs)
source

figwheel-cleanupcljs

(figwheel-cleanup)

Need to recreate input chan so previous game loop doesnt receive input anymore.

Need to recreate input chan so previous game loop doesnt receive input anymore.
sourceraw docstring

get-completioncljs

(get-completion game-state verb-map)
source

get-full-inputcljs

(get-full-input)
source

get-inputclj/s≠

clj
(get-input game-state)
cljs
(get-input state)

Wait for input to be written in the input channel

Wait for input to be written in the input channel
source (clj)source (cljs)raw docstring

get-suggested-tokencljs

(get-suggested-token verb-tokens input-tokens)

Compare the verb tokens with the complete input tokens and if they match, return the next verb token to be suggested. If no match returns nil.

Compare the verb tokens with the complete input tokens and if they match,
return the next verb token to be suggested. If no match returns nil.
sourceraw docstring

input-chancljs

source

process-commandcljs

(process-command command term)

Write command to the input channel

Write command to the input channel
sourceraw docstring

promptclj

(prompt gs)
source

prompt-valueclj/s

(prompt-value prompt)

Ask the user to enter a value

Ask the user to enter a value
source (clj)source (cljs)raw docstring

read-fileclj/s

(read-file file)
source (clj)source (cljs)

read-keyclj/s≠

clj
(read-key)
cljs
source (clj)source (cljs)

read-valueclj/s≠

(read-value)
clj

read a single key and eval its value. Return nil if no value entered.

read a single key and eval its value. Return nil if no value entered.
source (clj)source (cljs)raw docstring

set-interpretercljs

(set-interpreter gs)
source

termcljs

source

tokenize-inputcljs

(tokenize-input input items dirs)

Get the finished tokens (partial tokens are ingnored, since that part of the completion is handled by jquery terminal). Encodes/decodes item and dir names to avoid breaking them in separate tokens.

Get the finished tokens (partial tokens are ingnored, since that part of the
completion is handled by jquery terminal).
Encodes/decodes item and dir names to avoid breaking them in separate tokens.
sourceraw docstring

tokenize-verbcljs

(tokenize-verb verb)
source

update-completerclj

(update-completer verbs items room-names)
source

verb-to-completerclj

(verb-to-completer verb items-completer dirs-completer)

Take a verb regexp and an available items completer, and return an ArgumentCompleter that respects the regexp.

Take a verb regexp and an available items completer, and return an
ArgumentCompleter that respects the regexp.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close