Documentation ¶
Index ¶
- Constants
- func NewInputView() *tview.TextView
- func NewRegistersView() *tview.TextView
- type AsmView
- type CodeView
- type ErrorMessage
- type HelpView
- type MemoryView
- type OutputView
- type StatusBar
- type UI
- func (ui *UI) HandleKeyboard(event *tcell.EventKey) *tcell.EventKey
- func (ui *UI) MainLoop() error
- func (ui *UI) Refresh()
- func (ui *UI) RestartVM()
- func (ui *UI) RunVM()
- func (ui *UI) ShowAsm()
- func (ui *UI) ShowError()
- func (ui *UI) ShowHelp()
- func (ui *UI) StepVM()
- func (ui *UI) ToggleASCIIMode()
- func (ui *UI) ToggleBreakpoint()
- func (ui *UI) UpdateInput()
- func (ui *UI) UpdateOutput()
- func (ui *UI) UpdateRegisters()
Constants ¶
View Source
const (
MemSize = vm.MemSize
)
Variables ¶
This section is empty.
Functions ¶
func NewInputView ¶
func NewRegistersView ¶
Types ¶
type AsmView ¶
func (*AsmView) MouseHandler ¶
type ErrorMessage ¶
func (*ErrorMessage) Close ¶
func (em *ErrorMessage) Close()
func (*ErrorMessage) MouseHandler ¶
func (em *ErrorMessage) MouseHandler() func(action tview.MouseAction, event *tcell.EventMouse, setFocus func(p tview.Primitive)) (consumed bool, capture tview.Primitive)
type HelpView ¶
func (*HelpView) MouseHandler ¶
type MemoryView ¶
func NewMemoryView ¶
func NewMemoryView(ui *UI) *MemoryView
func (*MemoryView) Draw ¶
func (mv *MemoryView) Draw(screen tcell.Screen)
func (*MemoryView) InputHandler ¶
func (mv *MemoryView) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
func (*MemoryView) MouseHandler ¶
func (mv *MemoryView) MouseHandler() func(action tview.MouseAction, event *tcell.EventMouse, setFocus func(p tview.Primitive)) (consumed bool, capture tview.Primitive)
func (*MemoryView) Scroll ¶
func (mv *MemoryView) Scroll(lines int)
type OutputView ¶
func NewOutputView ¶
func NewOutputView() *OutputView
func (*OutputView) UpdateTitle ¶
func (ov *OutputView) UpdateTitle()
type StatusBar ¶
func NewStatusBar ¶
func (*StatusBar) ClearErrorText ¶
func (sb *StatusBar) ClearErrorText()
func (*StatusBar) SetErrorText ¶
type UI ¶
type UI struct {
// contains filtered or unexported fields
}
func (*UI) HandleKeyboard ¶
func (ui *UI) HandleKeyboard(event *tcell.EventKey) *tcell.EventKey
func (*UI) ToggleASCIIMode ¶
func (ui *UI) ToggleASCIIMode()
func (*UI) ToggleBreakpoint ¶
func (ui *UI) ToggleBreakpoint()
func (*UI) UpdateInput ¶
func (ui *UI) UpdateInput()
func (*UI) UpdateOutput ¶
func (ui *UI) UpdateOutput()
func (*UI) UpdateRegisters ¶
func (ui *UI) UpdateRegisters()
Click to show internal directories.
Click to hide internal directories.