# readline

## API Reference

The readline module allows for basic usage of the GNU readline library, in Seed. More advanced features may be added a a later time. In order to use the readline module it must be first imported.

    	readline = imports.readline;

## Examples

Below are several examples of using the Seed readline module. For additional resources, consult the examples/ folder of the Seed source

This demonstrates a simple REPL using the readline module

    readline = imports.readline;
    while (1){
      try{
        eval(readline.readline("> "));
      }
      catch(e) {
        print(e.name + " " + e.message);
      }
    }