vga

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

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

Go to latest
Published: Jun 17, 2021 License: Unlicense Imports: 3 Imported by: 0

Documentation

Overview

Package vga implements video devices which can show output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VGA

type VGA struct {
	// Mem is the memory device to read from.
	Mem *mem.RAM
	// LastBuffer stores the last rendered buffer split into lines.
	LastBuffer []string
}

VGA represents a video device.

func NewVGA

func NewVGA(m *mem.RAM) *VGA

NewVGA returns a pointer to a newly initialized VGA.

func (*VGA) TextDraw

func (v *VGA) TextDraw()

TextDraw reads from memory and prints out the text-buffer.

Jump to

Keyboard shortcuts

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