func Lines(l int) Option {
	return func(s *Scroller) error {
		if l < 0 {
			return errors.New(ErrNegativeLines, errorMessages, l)
		}
		s.lines = l
		return nil
	}
}
Lines sets the number of lines ro scroll initially.
package scroller
import (
	"bufio"
	"bytes"
	"io"
	"os"
	"time"
	"github.com/tideland/golib/errors"
	"github.com/tideland/golib/loop"
)
const (
	defaultBufferSize = 4096
	defaultPollTime   = time.Second
	delimiter         = '\n'
)
var (
	delimiters = []byte{delimiter}
)
type FilterFunc func(line []byte) bool
type Option func(s *Scroller) error