linenoise

Types

Completions = object
  len*: csize
  cvec*: cstringArray
  Source Edit
CompletionCallback = proc (a2: cstring; a3: ptr Completions) {...}{.cdecl.}
  Source Edit

Procs

proc setCompletionCallback(a2: ptr CompletionCallback) {...}{.
    importc: "linenoiseSetCompletionCallback".}
  Source Edit
proc addCompletion(a2: ptr Completions; a3: cstring) {...}{.
    importc: "linenoiseAddCompletion".}
  Source Edit
proc readLine(prompt: cstring): cstring {...}{.importc: "linenoise".}
  Source Edit
proc historyAdd(line: cstring): cint {...}{.importc: "linenoiseHistoryAdd", discardable.}
  Source Edit
proc historySetMaxLen(len: cint): cint {...}{.importc: "linenoiseHistorySetMaxLen".}
  Source Edit
proc historySave(filename: cstring): cint {...}{.importc: "linenoiseHistorySave".}
  Source Edit
proc historyLoad(filename: cstring): cint {...}{.importc: "linenoiseHistoryLoad".}
  Source Edit
proc clearScreen() {...}{.importc: "linenoiseClearScreen".}
  Source Edit
proc setMultiLine(ml: cint) {...}{.importc: "linenoiseSetMultiLine".}
  Source Edit
proc printKeyCodes() {...}{.importc: "linenoisePrintKeyCodes".}
  Source Edit
proc free(s: cstring) {...}{.importc: "free", header: "<stdlib.h>".}
  Source Edit