Almost done terminal emulator

This commit is contained in:
Zachary Yedidia
2019-01-11 14:49:22 -05:00
parent 7544809f77
commit 1ca8d61a75
10 changed files with 231 additions and 132 deletions

View File

@@ -18,9 +18,11 @@ type TermWindow struct {
func NewTermWindow(x, y, w, h int, term *shell.Terminal) *TermWindow {
tw := new(TermWindow)
tw.View = new(View)
tw.Terminal = term
tw.X, tw.Y = x, y
tw.Width, tw.Height = w, h
tw.Resize(w, h)
return tw
}