Documentation ¶
Index ¶
- Constants
- Variables
- func FindConfig() string
- func FindDataDir() string
- type Client
- func (c *Client) Attach(node tree.Node) error
- func (c *Client) Binds() (binds []api.Binding)
- func (c *Client) Detach()
- func (c *Client) Frame() *frames.Framer
- func (c *Client) Get(key string) (value interface{}, ok bool)
- func (c *Client) HistoryBackward() error
- func (c *Client) HistoryForward() error
- func (c *Client) Kill()
- func (c *Client) Margins() *screen.Margins
- func (c *Client) Node() tree.Node
- func (c *Client) OuterLayers() *screen.Layers
- func (c *Client) Params() *params.Parameters
- func (c *Client) Read(p []byte) (n int, err error)
- func (c *Client) Resize(size geom.Vec2) error
- func (c *Client) Toast(toast toasts.Toast)
- func (c *Client) Write(data []byte) (n int, err error)
- type ClientID
- type ClientOptions
- type Cy
- type CyModule
- type Environment
- type Options
- type ToastLogger
Constants ¶
View Source
const (
REPLAY_PROMPT = "\033Pcy\033\\\033[0;31m▸▸cy▹\033[0m \033[0;31m\033[0m\033[00m"
)
Variables ¶
View Source
var CY_BOOT_FILE []byte
View Source
var DOCS_CY string
Functions ¶
func FindConfig ¶ added in v0.1.13
func FindConfig() string
func FindDataDir ¶ added in v0.1.13
func FindDataDir() string
Types ¶
type Client ¶
func (*Client) HistoryBackward ¶ added in v0.2.0
func (*Client) HistoryForward ¶ added in v0.2.0
func (*Client) OuterLayers ¶ added in v0.1.6
func (*Client) Params ¶ added in v0.1.6
func (c *Client) Params() *params.Parameters
type ClientOptions ¶ added in v0.1.10
type ClientOptions = P.HandshakeMessage
type Cy ¶
type Cy struct { util.Lifetime deadlock.RWMutex *janet.VM // contains filtered or unexported fields }
func NewTestServer ¶ added in v0.2.0
func (*Cy) ExecuteJanet ¶ added in v0.1.13
type CyModule ¶ added in v0.1.6
type CyModule struct {
// contains filtered or unexported fields
}
func (*CyModule) Documentation ¶ added in v0.1.6
func (*CyModule) KillServer ¶ added in v0.1.6
func (c *CyModule) KillServer()
func (*CyModule) ReloadConfig ¶ added in v0.1.13
type Environment ¶ added in v0.1.6
func (Environment) Default ¶ added in v0.1.6
func (e Environment) Default(key string, defaultValue string) string
func (Environment) IsSet ¶ added in v0.1.6
func (e Environment) IsSet(key string) bool
type Options ¶
type Options struct { // The initial Janet script, typically ~/.cyrc.janet. Config string // The default directory in which to store data (e.g. recorded // sessions). DataDir string // The default shell Shell string // Whether to show the splash screen on client join HideSplash bool // Whether to skip blocking (input/*) API calls. Just for testing. SkipInput bool }
type ToastLogger ¶ added in v0.1.5
type ToastLogger struct {
// contains filtered or unexported fields
}
func NewToastLogger ¶ added in v0.1.5
func NewToastLogger(send func(toasts.Toast)) *ToastLogger
func (*ToastLogger) Error ¶ added in v0.1.5
func (t *ToastLogger) Error(msg string)
func (*ToastLogger) Info ¶ added in v0.1.5
func (t *ToastLogger) Info(msg string)
func (*ToastLogger) Send ¶ added in v0.1.5
func (t *ToastLogger) Send(toast toasts.Toast)
func (*ToastLogger) Warn ¶ added in v0.1.5
func (t *ToastLogger) Warn(msg string)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.