std/linenoise

  Source   Edit

Types

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

Procs

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