File: readline.js

package info (click to toggle)
seed 3.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,900 kB
  • sloc: ansic: 24,336; sh: 11,196; makefile: 773; xml: 187; python: 173
file content (27 lines) | stat: -rw-r--r-- 1,434 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
funcs = [{id: "readline-readline",
	  title: "readline.readline (prompt)",
	  description: "Prompts for one line of input on standard input using <parameter>prompt</parameter> as the prompt.",
	  params: [
	      {name: "prompt", description: "A string to use as the readline prompt"}
	  ],
	  returns: "A string entered on standard input."},
	 {id: "readline-bind",
	  title: "readline.bind (key, function)",
	  description: "Binds <parameter>key</parameter> to <parameter>function</parameter> causing the function to be invokved whenever <parameter>key</parameter> is pressed",
	  params: [
	      {name: "key", description: "A string specifying the key to bind"},
	      {name: "function", description: "The function to invoke when <parameter>key</parameter> is pressed"}
	  ]},
	 {id: "readline-done",
	  title: "readline.done ()",
	  description: "Indicates that readline should finish the current line, and return from <parameter>readline.readline</parameter>. Can be used in callbacks to implement features like multiline editing"},
	 {id: "readline-buffer",
	  title: "readline.buffer()",
	  description: "Retrieve the current readline buffer",
	  returns: "The current readline buffer"},
	 {id: "readline-insert",
	  title: "readline.insert (string)",
	  description: "Inserts <parameter>string</parameter> in to the current readline buffer",
	  params: [
	      {name: "string", description: "The string to insert"}
	  ]}];