From 4e7bbd89900a733593f0848778103c1cf1a7145d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 1 Jan 2024 15:43:50 -0600 Subject: reorg to final resting place at go.wit.com/gui/gui Signed-off-by: Jeff Carr --- examples/console-ui-helloworld/newJ.go | 46 ---------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 examples/console-ui-helloworld/newJ.go (limited to 'examples/console-ui-helloworld/newJ.go') diff --git a/examples/console-ui-helloworld/newJ.go b/examples/console-ui-helloworld/newJ.go deleted file mode 100644 index 47c7439..0000000 --- a/examples/console-ui-helloworld/newJ.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2014 The gocui Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package main - -import ( - "errors" - "fmt" - "log" - "strings" - - "github.com/awesome-gocui/gocui" -) - -var topX int = 2 -var bottomX int = 20 -var topY int = 2 -var bottomY int = 7 - -func newJ(g *gocui.Gui) error { - // maxX, maxY := g.Size() - name := fmt.Sprintf("jcarr %v test ", idxView) - v, err := g.SetView(name, topX, topY, bottomX, bottomY, 0) - if err == nil { - return err - } - if !errors.Is(err, gocui.ErrUnknownView) { - return err - } - - v.Wrap = true - fmt.Fprintln(v, name) - fmt.Fprintln(v, strings.Repeat("foo\n", 2)) - // fmt.Fprintln(v, strings.Repeat(name+" ", 30)) - log.Println("newJ added a new view", v.Name()) - - if _, err := g.SetCurrentView(name); err != nil { - return err - } - - views = append(views, name) - curView = len(views) - 1 - idxView += 1 - return nil -} -- cgit v1.2.3