Class

BirbReadline

since: 0.9

Description [src]

final class Birb.Readline : GObject.Object
{
  /* No available fields */
}

A GNU Readline like implementation.

A BirbReadline can be created with birb_readline_new(). Calling birb_readline_read_stdin_async() or birb_readline_read_stream_async() will read input from the stream until a new-line \n is found. When the new-line is found, the callback will be called and birb_readline_read_stream_finish() should be called to get the result.

Available since: 0.9

Ancestors

Constructors

birb_readline_new

Creates a new readline with the given prompt.

since: 0.9

Instance methods

birb_readline_get_line

Gets the line that the user has entered so far.

since: 0.9

birb_readline_get_prompt

Gets the prompt from readline.

since: 0.9

birb_readline_read_stdin_async

Calls birb_readline_read_stream_async() with STDIN as the stream.

since: 0.9

birb_readline_read_stream_async

Reads a line of text from the given stream.

since: 0.9

birb_readline_read_stream_finish

Gets the line that was read.

since: 0.9

birb_readline_set_prompt

Sets the prompt of readline to prompt.

since: 0.9

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Birb.Readline:line

The line that the user has input so far.

since: 0.9

Birb.Readline:prompt

The prompt to display.

since: 0.9

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct BirbReadlineClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.