console

package
v0.2.51 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear()

Clear screen

func DoRyeDualRepl

func DoRyeDualRepl(leftPs *env.ProgramState, rightPs *env.ProgramState, dialect string, showResults bool)

DoRyeDualRepl is a placeholder for the dual-pane REPL (full implementation in repl_dual.go.TODO). Falls back to a single REPL on the left ProgramState.

func DoRyeRepl

func DoRyeRepl(es *env.ProgramState, dialect string, showResults bool, localHist bool, histFile string)

func HandleEnterConsoleOption

func HandleEnterConsoleOption(es *env.ProgramState, genv *env.Idxs)

HandleEnterConsoleOption enters the REPL console for debugging

func HandleListContextOption

func HandleListContextOption(es *env.ProgramState, genv *env.Idxs)

HandleListContextOption lists the current context

func HandleNvimOption

func HandleNvimOption(fileName string, lineNumber int)

HandleNvimOption opens Neovim at the specified file and line

func HandleVSCodeOption

func HandleVSCodeOption(fileName string, lineNumber int)

HandleVSCodeOption opens VSCode at the specified file and line

func MoveCursor

func MoveCursor(x int, y int)

Move cursor to given position

func MoveCursorBackward

func MoveCursorBackward(bias int)

Move cursor backward relative the current position

func MoveCursorDown

func MoveCursorDown(bias int)

Move cursor down relative the current position

func MoveCursorForward

func MoveCursorForward(bias int)

Move cursor forward relative the current position

func MoveCursorUp

func MoveCursorUp(bias int)

Move cursor up relative the current position

func OfferDebuggingOptions

func OfferDebuggingOptions(es *env.ProgramState, genv *env.Idxs, tag string)

OfferDebuggingOptions presents debugging options to the user when an error occurs Loops to offer options repeatedly until user chooses to continue or times out

Types

type Repl

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

type ShellEd

type ShellEd struct {
	CurrObj env.Function
	Pause   bool
	Askfor  []string
	Mode    string
	Return  env.Object
}

Jump to

Keyboard shortcuts

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