session

package
v0.0.0-...-9c029b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2017 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

View Source
const (
	CleanUserInput userInputMode = iota
	RawUserInput   userInputMode = iota
)
View Source
const LinkDouble = "Double"
View Source
const LinkSingle = "Single"

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	// contains filtered or unexported fields
}

func NewSession

func NewSession(conn io.ReadWriter, user types.User, pc types.PC) *Session

func (*Session) Exec

func (self *Session) Exec()

func (*Session) GetInput

func (self *Session) GetInput(prompt string) string

func (*Session) GetPrompt

func (self *Session) GetPrompt() string

func (*Session) GetRoom

func (self *Session) GetRoom() types.Room

func (*Session) GetWindowSize

func (self *Session) GetWindowSize() (int, int)

func (*Session) PrintRoom

func (self *Session) PrintRoom()

func (*Session) Write

func (self *Session) Write(text string)

func (*Session) WriteLine

func (self *Session) WriteLine(line string, a ...interface{})

func (*Session) WriteLineColor

func (self *Session) WriteLineColor(color types.Color, line string, a ...interface{})

func (*Session) WriteLinef

func (self *Session) WriteLinef(line string, a ...interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL