core

package
v0.0.0-...-99cd3d9 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BACKSPACE = 127
	ARROW_UP  = 1000 + iota
	ARROW_DOWN
	ARROW_LEFT
	ARROW_RIGHT
	DEL_KEY
	HOME_KEY
	END_KEY
	PAGE_UP
	PAGE_DOWN
)
View Source
const TAB_LENGHT = 4

Variables

This section is empty.

Functions

func ExitWithMessage

func ExitWithMessage(message string)

Types

type CursorPosition

type CursorPosition struct {
	X, Y int
}

type Editor

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

func (*Editor) EnterReaderLoop

func (editor *Editor) EnterReaderLoop()

func (*Editor) OpenFile

func (editor *Editor) OpenFile(filePath string)

func (*Editor) SetStatusMessage

func (editor *Editor) SetStatusMessage(message string)

func (*Editor) SetWindowSize

func (editor *Editor) SetWindowSize()

type Offset

type Offset struct {
	X, Y int
}

type StatusMessage

type StatusMessage struct {
	Message   string
	Timestamp time.Time
}

type TerminalSize

type TerminalSize struct {
	Rows, Columns int
}

Jump to

Keyboard shortcuts

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