From 8a32d2b0c846ae81f90f3c8107b3c7d66f060c01 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 25 Aug 2020 16:20:58 -0700 Subject: [PATCH] Version 2.0 work in progress. --- README.adoc | 50 +++++++++--------- _demos/beep.go | 4 +- _demos/boxes.go | 4 +- _demos/colors.go | 4 +- _demos/hello_world.go | 6 +-- _demos/mouse.go | 6 +-- _demos/unicode.go | 6 ++- encoding/all.go | 2 +- errors.go | 2 +- go.mod | 2 +- termbox/compat.go | 2 +- terminfo/a/adm3a/term.go | 2 +- terminfo/a/aixterm/term.go | 2 +- terminfo/a/alacritty/term.go | 2 +- terminfo/a/ansi/term.go | 2 +- terminfo/a/aterm/term.go | 2 +- terminfo/b/beterm/term.go | 2 +- terminfo/b/bsdos_pc/term.go | 2 +- terminfo/base/base.go | 12 ++--- terminfo/c/cygwin/term.go | 2 +- terminfo/d/d200/term.go | 2 +- terminfo/d/d210/term.go | 2 +- terminfo/d/dtterm/term.go | 2 +- terminfo/dynamic/dynamic.go | 2 +- terminfo/e/emacs/term.go | 2 +- terminfo/e/eterm/term.go | 2 +- terminfo/extended/extended.go | 92 +++++++++++++++++----------------- terminfo/g/gnome/term.go | 2 +- terminfo/h/hpterm/term.go | 2 +- terminfo/h/hz1500/term.go | 2 +- terminfo/k/konsole/term.go | 2 +- terminfo/k/kterm/term.go | 2 +- terminfo/l/linux/term.go | 2 +- terminfo/mkinfo.go | 6 +-- terminfo/p/pcansi/term.go | 2 +- terminfo/r/rxvt/term.go | 2 +- terminfo/s/screen/term.go | 2 +- terminfo/s/simpleterm/term.go | 2 +- terminfo/s/sun/term.go | 2 +- terminfo/t/termite/term.go | 2 +- terminfo/t/tvi910/term.go | 2 +- terminfo/t/tvi912/term.go | 2 +- terminfo/t/tvi921/term.go | 2 +- terminfo/t/tvi925/term.go | 2 +- terminfo/t/tvi950/term.go | 2 +- terminfo/t/tvi970/term.go | 2 +- terminfo/v/vt100/term.go | 2 +- terminfo/v/vt102/term.go | 2 +- terminfo/v/vt220/term.go | 2 +- terminfo/v/vt320/term.go | 2 +- terminfo/v/vt400/term.go | 2 +- terminfo/v/vt420/term.go | 2 +- terminfo/v/vt52/term.go | 2 +- terminfo/w/wy50/term.go | 2 +- terminfo/w/wy60/term.go | 2 +- terminfo/w/wy99_ansi/term.go | 2 +- terminfo/x/xfce/term.go | 2 +- terminfo/x/xnuppc/term.go | 2 +- terminfo/x/xterm/term.go | 2 +- terminfo/x/xterm_kitty/term.go | 2 +- terms_default.go | 2 +- terms_dynamic.go | 4 +- terms_static.go | 4 +- tscreen.go | 4 +- views/_demos/cellview.go | 6 ++- views/_demos/hbox.go | 6 ++- views/_demos/vbox.go | 6 ++- views/app.go | 2 +- views/boxlayout.go | 2 +- views/cellarea.go | 2 +- views/spacer.go | 2 +- views/sstext.go | 3 +- views/sstextbar.go | 2 +- views/text.go | 2 +- views/textarea.go | 2 +- views/textbar.go | 2 +- views/view.go | 2 +- views/widget.go | 2 +- 78 files changed, 182 insertions(+), 163 deletions(-) diff --git a/README.adoc b/README.adoc index 696b0cf..bd71ea5 100644 --- a/README.adoc +++ b/README.adoc @@ -17,7 +17,11 @@ a|[.right] image::logos/tcell.png[float="right"] |=== -## Examples +NOTE: Work has begun on version 2.0 of mangos. There are breaking changes (and more coming.) +Version 1.x is available using the import `github.com/gdamore/tcell`. +The new work in progress is available using master and `github.com/gdamore/tcell/v2`. + +== Examples * https://github.com/gdamore/proxima5[proxima5] - space shooter (https://youtu.be/jNxKTCmY_bQ[video]) * https://github.com/gdamore/govisor[govisor] - service management UI (http://2.bp.blogspot.com/--OsvnfzSNow/Vf7aqMw3zXI/AAAAAAAAARo/uOMtOvw4Sbg/s1600/Screen%2BShot%2B2015-09-20%2Bat%2B9.08.41%2BAM.png[screenshot]) @@ -39,7 +43,7 @@ image::logos/tcell.png[float="right"] * https://gitlab.com/tslocum/cbind[cbind] - Provides key event encoding, decoding and handling * https://github.com/spinzed/tpong[tpong] - The old-school Pong remade in terminal -## Pure Go Terminfo Database +== Pure Go Terminfo Database _Tcell_ includes a full parser and expander for terminfo capability strings, so that it can avoid hard coding escape strings for formatting. It also favors @@ -48,7 +52,7 @@ portability, and includes support for all POSIX systems. The database is also flexible & extensible, and can modified by either running a program to build the entire database, or an entry for just a single terminal. -## More Portable +== More Portable _Tcell_ is portable to a wide variety of systems. _Tcell_ is believed @@ -57,7 +61,7 @@ the exception of nacl (which lacks any kind of a terminal interface). (Plan9 is not supported by _Tcell_, but it is experimental status only in golang.) _Tcell_ is pure Go, without any need for CGO. -## No Async IO +== No Async IO _Tcell_ is able to operate without requiring `SIGIO` signals (unlike _termbox_), or asynchronous I/O, and can instead use standard Go file @@ -68,7 +72,7 @@ tty streams. This model is also much closer to idiomatic Go, leading to fewer surprises. -## Rich Unicode & non-Unicode support +== Rich Unicode & non-Unicode support _Tcell_ includes enhanced support for Unicode, including wide characters and combining characters, provided your terminal can support them. @@ -81,11 +85,11 @@ _Tcell_ tries hard to convert to native characters on both input and output, and on output _Tcell_ even makes use of the alternate character set to facilitate drawing certain characters. -## More Function Keys +== More Function Keys _Tcell_ also has richer support for a larger number of special keys that some terminals can send. -## Better Color Handling +== Better Color Handling _Tcell_ will respect your terminal's color space as specified within your terminfo entries, so that for example attempts to emit color sequences on VT100 terminals @@ -99,7 +103,7 @@ Modern Windows 10 can benefit from much richer colors however. _Tcell_ maps 16 colors down to 8, for terminals that need it. (The upper 8 colors are just brighter versions of the lower 8.) -## Better Mouse Support +== Better Mouse Support _Tcell_ supports enhanced mouse tracking mode, so your application can receive regular mouse motion events, and wheel events, if your terminal supports it. @@ -108,13 +112,13 @@ regular mouse motion events, and wheel events, if your terminal supports it. and does not support mouse interaction. The stock Windows 10 console host fired up with cmd.exe or PowerShell works fine however.) -## _Termbox_ Compatibility +== _Termbox_ Compatibility A compatibility layer for _termbox_ is provided in the `compat` directory. To use it, try importing `github.com/gdamore/tcell/termbox` instead. Most _termbox-go_ programs will probably work without further modification. -## Working With Unicode +== Working With Unicode Internally Tcell uses UTF-8, just like Go. However, Tcell understands how to @@ -124,7 +128,7 @@ Your application must supply them, as the full set of the most common ones bloats the program by about 2MB. If you're lazy, and want them all anyway, see the `encoding` sub-directory. -## Wide & Combining Characters +== Wide & Combining Characters The `SetContent()` API takes a primary rune, and an optional list of combining runes. If any of the runes is a wide (East Asian) rune occupying two cells, @@ -137,7 +141,7 @@ Experience has shown that the vanilla Windows 8 console application does not support any of these characters properly, but at least some options like _ConEmu_ do support Wide characters. -## Colors +== Colors _Tcell_ assumes the ANSI/XTerm color model, including the 256 color map that XTerm uses when it supports 256 colors. The terminfo guidance will be @@ -146,7 +150,7 @@ terminals which expose ANSI style `setaf` and `setab` will support color; if you have a color terminal that only has `setf` and `setb`, please let me know; it wouldn't be hard to add that if there is need. -## 24-bit Color +== 24-bit Color _Tcell_ _supports true color_! (That is, if your terminal can support it, _Tcell_ can accurately display 24-bit color.) @@ -170,14 +174,14 @@ If you find this undesirable, you can either use a `TERM` variable that lacks the `TRUECOLOR` setting, or set `TCELL_TRUECOLOR=disable` in your environment. -## Performance +== Performance Reasonable attempts have been made to minimize sending data to terminals, avoiding repeated sequences or drawing the same cell on refresh updates. -## Terminfo +== Terminfo -(Not relevent for Windows users.) +(Not relevant for Windows users.) The Terminfo implementation operates with two forms of database. The first is the built-in go database, which contains a number of real database entries @@ -202,7 +206,7 @@ Terminals without absolute cursor addressability are not supported. This is unlikely to be a problem; such terminals have not been mass produced since the early 1970s. -## Mouse Support +== Mouse Support Mouse support is detected via the `kmous` terminfo variable, however, enablement/disablement and decoding mouse events is done using hard coded @@ -216,16 +220,16 @@ Mouse wheel buttons on various terminals are known to work, but the support in terminal emulators, as well as support for various buttons and live mouse tracking, varies widely. Modern _xterm_, macOS _Terminal_, and _iTerm_ all work well. -## Testablity +== Testablity There is a `SimulationScreen`, that can be used to simulate a real screen for automated testing. The supplied tests do this. The simulation contains event delivery, screen resizing support, and capabilities to inject events and examine "`physical`" screen contents. -## Platforms +== Platforms -### POSIX (Linux, FreeBSD, macOS, Solaris, etc.) +=== POSIX (Linux, FreeBSD, macOS, Solaris, etc.) For mainstream systems with a suitably well defined system call interface to tty settings, everything works using pure Go. @@ -233,7 +237,7 @@ to tty settings, everything works using pure Go. For the remainder (right now means only Solaris/illumos) we use POSIX function calls to manage termios, which implies that CGO is required on those platforms. -### Windows +=== Windows Windows console mode applications are supported. Unfortunately _mintty_ and other _cygwin_ style applications are not supported. @@ -247,7 +251,7 @@ has either. If anyone has suggestions, let me know! Really, if you're using a Windows application, you should use the native Windows console or a fully compatible console implementation. -### Plan9 and Native Client (Nacl) +=== Plan9 and Native Client (Nacl) The nacl and plan9 platforms won't work, but compilation stubs are supplied for folks that want to include parts of this in software targetting those @@ -257,7 +261,7 @@ allocate a real screen object on those platforms, `NewScreen()` will fail. If anyone has wisdom about how to improve support for either of these, please let me know. PRs are especially welcome. -### Commercial Support +=== Commercial Support _Tcell_ is absolutely free, but if you want to obtain commercial, professional support, there are options. diff --git a/_demos/beep.go b/_demos/beep.go index b9e09d2..cf0457b 100644 --- a/_demos/beep.go +++ b/_demos/beep.go @@ -1,3 +1,5 @@ +// +build ignore + // Copyright 2019 The TCell Authors // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -20,7 +22,7 @@ import ( "os" "time" - "github.com/gdamore/tcell" + "github.com/gdamore/tcell/v2" ) func main() { diff --git a/_demos/boxes.go b/_demos/boxes.go index 047f92f..a990a99 100644 --- a/_demos/boxes.go +++ b/_demos/boxes.go @@ -1,3 +1,5 @@ +// +build ignore + // Copyright 2015 The TCell Authors // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -22,7 +24,7 @@ import ( "os" "time" - "github.com/gdamore/tcell" + "github.com/gdamore/tcell/v2" ) func makebox(s tcell.Screen) { diff --git a/_demos/colors.go b/_demos/colors.go index e850317..5ebe369 100644 --- a/_demos/colors.go +++ b/_demos/colors.go @@ -1,3 +1,5 @@ +// +build ignore + // Copyright 2019 The TCell Authors // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -26,7 +28,7 @@ import ( "os" "time" - "github.com/gdamore/tcell" + "github.com/gdamore/tcell/v2" ) var red = int32(rand.Int() % 256) diff --git a/_demos/hello_world.go b/_demos/hello_world.go index a458a1e..231d412 100644 --- a/_demos/hello_world.go +++ b/_demos/hello_world.go @@ -1,4 +1,4 @@ -//+build ignore +// +build ignore // Copyright 2020 The TCell Authors // @@ -20,8 +20,8 @@ import ( "fmt" "os" - "github.com/gdamore/tcell" - "github.com/gdamore/tcell/encoding" + "github.com/gdamore/tcell/v2" + "github.com/gdamore/tcell/v2/encoding" "github.com/mattn/go-runewidth" ) diff --git a/_demos/mouse.go b/_demos/mouse.go index 1ac2e77..75a1413 100644 --- a/_demos/mouse.go +++ b/_demos/mouse.go @@ -1,4 +1,4 @@ -//+build ignore +// +build ignore // Copyright 2015 The TCell Authors // @@ -23,8 +23,8 @@ import ( "fmt" "os" - "github.com/gdamore/tcell" - "github.com/gdamore/tcell/encoding" + "github.com/gdamore/tcell/v2" + "github.com/gdamore/tcell/v2/encoding" "github.com/mattn/go-runewidth" ) diff --git a/_demos/unicode.go b/_demos/unicode.go index 15cc8aa..39144c4 100644 --- a/_demos/unicode.go +++ b/_demos/unicode.go @@ -1,3 +1,5 @@ +// +build ignore + // Copyright 2019 The TCell Authors // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -20,8 +22,8 @@ import ( "fmt" "os" - "github.com/gdamore/tcell" - "github.com/gdamore/tcell/encoding" + "github.com/gdamore/tcell/v2" + "github.com/gdamore/tcell/v2/encoding" runewidth "github.com/mattn/go-runewidth" ) diff --git a/encoding/all.go b/encoding/all.go index 9bc1915..ca3ddeb 100644 --- a/encoding/all.go +++ b/encoding/all.go @@ -16,7 +16,7 @@ package encoding import ( "github.com/gdamore/encoding" - "github.com/gdamore/tcell" + "github.com/gdamore/tcell/v2" "golang.org/x/text/encoding/charmap" "golang.org/x/text/encoding/japanese" diff --git a/errors.go b/errors.go index 920b64b..201dff9 100644 --- a/errors.go +++ b/errors.go @@ -18,7 +18,7 @@ import ( "errors" "time" - "github.com/gdamore/tcell/terminfo" + "github.com/gdamore/tcell/v2/terminfo" ) var ( diff --git a/go.mod b/go.mod index a76e65d..f1829ae 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/gdamore/tcell +module github.com/gdamore/tcell/v2 go 1.12 diff --git a/termbox/compat.go b/termbox/compat.go index c79d02c..e1bc4c6 100644 --- a/termbox/compat.go +++ b/termbox/compat.go @@ -19,7 +19,7 @@ package termbox import ( "errors" - "github.com/gdamore/tcell" + "github.com/gdamore/tcell/v2" ) var screen tcell.Screen diff --git a/terminfo/a/adm3a/term.go b/terminfo/a/adm3a/term.go index dd8cf0f..cd9f258 100644 --- a/terminfo/a/adm3a/term.go +++ b/terminfo/a/adm3a/term.go @@ -2,7 +2,7 @@ package adm3a -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/a/aixterm/term.go b/terminfo/a/aixterm/term.go index 9dc082c..3c425d9 100644 --- a/terminfo/a/aixterm/term.go +++ b/terminfo/a/aixterm/term.go @@ -2,7 +2,7 @@ package aixterm -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/a/alacritty/term.go b/terminfo/a/alacritty/term.go index 09d56e1..d7c79b9 100644 --- a/terminfo/a/alacritty/term.go +++ b/terminfo/a/alacritty/term.go @@ -2,7 +2,7 @@ package alacritty -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/a/ansi/term.go b/terminfo/a/ansi/term.go index 4500c17..b73ec5d 100644 --- a/terminfo/a/ansi/term.go +++ b/terminfo/a/ansi/term.go @@ -2,7 +2,7 @@ package ansi -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/a/aterm/term.go b/terminfo/a/aterm/term.go index 4a6d6e6..f720581 100644 --- a/terminfo/a/aterm/term.go +++ b/terminfo/a/aterm/term.go @@ -2,7 +2,7 @@ package aterm -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/b/beterm/term.go b/terminfo/b/beterm/term.go index 184d046..a8e3b7d 100644 --- a/terminfo/b/beterm/term.go +++ b/terminfo/b/beterm/term.go @@ -2,7 +2,7 @@ package beterm -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/b/bsdos_pc/term.go b/terminfo/b/bsdos_pc/term.go index 3174cc7..00401ce 100644 --- a/terminfo/b/bsdos_pc/term.go +++ b/terminfo/b/bsdos_pc/term.go @@ -2,7 +2,7 @@ package bsdos_pc -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/base/base.go b/terminfo/base/base.go index 49e6c01..fbecdfa 100644 --- a/terminfo/base/base.go +++ b/terminfo/base/base.go @@ -1,4 +1,4 @@ -// Copyright 2019 The TCell Authors +// Copyright 2020 The TCell Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use file except in compliance with the License. @@ -24,9 +24,9 @@ package base import ( // The following imports just register themselves -- // thse are the terminal types we aggregate in this package. - _ "github.com/gdamore/tcell/terminfo/a/ansi" - _ "github.com/gdamore/tcell/terminfo/v/vt100" - _ "github.com/gdamore/tcell/terminfo/v/vt102" - _ "github.com/gdamore/tcell/terminfo/v/vt220" - _ "github.com/gdamore/tcell/terminfo/x/xterm" + _ "github.com/gdamore/tcell/v2/terminfo/a/ansi" + _ "github.com/gdamore/tcell/v2/terminfo/v/vt100" + _ "github.com/gdamore/tcell/v2/terminfo/v/vt102" + _ "github.com/gdamore/tcell/v2/terminfo/v/vt220" + _ "github.com/gdamore/tcell/v2/terminfo/x/xterm" ) diff --git a/terminfo/c/cygwin/term.go b/terminfo/c/cygwin/term.go index d4d1041..f2b4e2a 100644 --- a/terminfo/c/cygwin/term.go +++ b/terminfo/c/cygwin/term.go @@ -2,7 +2,7 @@ package cygwin -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/d/d200/term.go b/terminfo/d/d200/term.go index 5950d5c..9cd7748 100644 --- a/terminfo/d/d200/term.go +++ b/terminfo/d/d200/term.go @@ -2,7 +2,7 @@ package d200 -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/d/d210/term.go b/terminfo/d/d210/term.go index 13a56cc..b95b6bc 100644 --- a/terminfo/d/d210/term.go +++ b/terminfo/d/d210/term.go @@ -2,7 +2,7 @@ package d210 -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/d/dtterm/term.go b/terminfo/d/dtterm/term.go index a6366f2..ee4eb67 100644 --- a/terminfo/d/dtterm/term.go +++ b/terminfo/d/dtterm/term.go @@ -2,7 +2,7 @@ package dtterm -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/dynamic/dynamic.go b/terminfo/dynamic/dynamic.go index 2cb7480..225e8e4 100644 --- a/terminfo/dynamic/dynamic.go +++ b/terminfo/dynamic/dynamic.go @@ -29,7 +29,7 @@ import ( "strconv" "strings" - "github.com/gdamore/tcell/terminfo" + "github.com/gdamore/tcell/v2/terminfo" ) type termcap struct { diff --git a/terminfo/e/emacs/term.go b/terminfo/e/emacs/term.go index 4d08753..00af1b0 100644 --- a/terminfo/e/emacs/term.go +++ b/terminfo/e/emacs/term.go @@ -2,7 +2,7 @@ package emacs -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/e/eterm/term.go b/terminfo/e/eterm/term.go index 65f0ec3..5dab8b5 100644 --- a/terminfo/e/eterm/term.go +++ b/terminfo/e/eterm/term.go @@ -2,7 +2,7 @@ package eterm -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/extended/extended.go b/terminfo/extended/extended.go index cc0af12..e86f739 100644 --- a/terminfo/extended/extended.go +++ b/terminfo/extended/extended.go @@ -1,4 +1,4 @@ -// Copyright 2019 The TCell Authors +// Copyright 2020 The TCell Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use file except in compliance with the License. @@ -21,49 +21,49 @@ package extended import ( // The following imports just register themselves -- // these are the terminal types we aggregate in this package. - _ "github.com/gdamore/tcell/terminfo/a/adm3a" - _ "github.com/gdamore/tcell/terminfo/a/aixterm" - _ "github.com/gdamore/tcell/terminfo/a/alacritty" - _ "github.com/gdamore/tcell/terminfo/a/ansi" - _ "github.com/gdamore/tcell/terminfo/a/aterm" - _ "github.com/gdamore/tcell/terminfo/b/beterm" - _ "github.com/gdamore/tcell/terminfo/b/bsdos_pc" - _ "github.com/gdamore/tcell/terminfo/c/cygwin" - _ "github.com/gdamore/tcell/terminfo/d/d200" - _ "github.com/gdamore/tcell/terminfo/d/d210" - _ "github.com/gdamore/tcell/terminfo/d/dtterm" - _ "github.com/gdamore/tcell/terminfo/e/emacs" - _ "github.com/gdamore/tcell/terminfo/e/eterm" - _ "github.com/gdamore/tcell/terminfo/g/gnome" - _ "github.com/gdamore/tcell/terminfo/h/hpterm" - _ "github.com/gdamore/tcell/terminfo/h/hz1500" - _ "github.com/gdamore/tcell/terminfo/k/konsole" - _ "github.com/gdamore/tcell/terminfo/k/kterm" - _ "github.com/gdamore/tcell/terminfo/l/linux" - _ "github.com/gdamore/tcell/terminfo/p/pcansi" - _ "github.com/gdamore/tcell/terminfo/r/rxvt" - _ "github.com/gdamore/tcell/terminfo/s/screen" - _ "github.com/gdamore/tcell/terminfo/s/simpleterm" - _ "github.com/gdamore/tcell/terminfo/s/sun" - _ "github.com/gdamore/tcell/terminfo/t/termite" - _ "github.com/gdamore/tcell/terminfo/t/tvi910" - _ "github.com/gdamore/tcell/terminfo/t/tvi912" - _ "github.com/gdamore/tcell/terminfo/t/tvi921" - _ "github.com/gdamore/tcell/terminfo/t/tvi925" - _ "github.com/gdamore/tcell/terminfo/t/tvi950" - _ "github.com/gdamore/tcell/terminfo/t/tvi970" - _ "github.com/gdamore/tcell/terminfo/v/vt100" - _ "github.com/gdamore/tcell/terminfo/v/vt102" - _ "github.com/gdamore/tcell/terminfo/v/vt220" - _ "github.com/gdamore/tcell/terminfo/v/vt320" - _ "github.com/gdamore/tcell/terminfo/v/vt400" - _ "github.com/gdamore/tcell/terminfo/v/vt420" - _ "github.com/gdamore/tcell/terminfo/v/vt52" - _ "github.com/gdamore/tcell/terminfo/w/wy50" - _ "github.com/gdamore/tcell/terminfo/w/wy60" - _ "github.com/gdamore/tcell/terminfo/w/wy99_ansi" - _ "github.com/gdamore/tcell/terminfo/x/xfce" - _ "github.com/gdamore/tcell/terminfo/x/xnuppc" - _ "github.com/gdamore/tcell/terminfo/x/xterm" - _ "github.com/gdamore/tcell/terminfo/x/xterm_kitty" + _ "github.com/gdamore/tcell/v2/terminfo/a/adm3a" + _ "github.com/gdamore/tcell/v2/terminfo/a/aixterm" + _ "github.com/gdamore/tcell/v2/terminfo/a/alacritty" + _ "github.com/gdamore/tcell/v2/terminfo/a/ansi" + _ "github.com/gdamore/tcell/v2/terminfo/a/aterm" + _ "github.com/gdamore/tcell/v2/terminfo/b/beterm" + _ "github.com/gdamore/tcell/v2/terminfo/b/bsdos_pc" + _ "github.com/gdamore/tcell/v2/terminfo/c/cygwin" + _ "github.com/gdamore/tcell/v2/terminfo/d/d200" + _ "github.com/gdamore/tcell/v2/terminfo/d/d210" + _ "github.com/gdamore/tcell/v2/terminfo/d/dtterm" + _ "github.com/gdamore/tcell/v2/terminfo/e/emacs" + _ "github.com/gdamore/tcell/v2/terminfo/e/eterm" + _ "github.com/gdamore/tcell/v2/terminfo/g/gnome" + _ "github.com/gdamore/tcell/v2/terminfo/h/hpterm" + _ "github.com/gdamore/tcell/v2/terminfo/h/hz1500" + _ "github.com/gdamore/tcell/v2/terminfo/k/konsole" + _ "github.com/gdamore/tcell/v2/terminfo/k/kterm" + _ "github.com/gdamore/tcell/v2/terminfo/l/linux" + _ "github.com/gdamore/tcell/v2/terminfo/p/pcansi" + _ "github.com/gdamore/tcell/v2/terminfo/r/rxvt" + _ "github.com/gdamore/tcell/v2/terminfo/s/screen" + _ "github.com/gdamore/tcell/v2/terminfo/s/simpleterm" + _ "github.com/gdamore/tcell/v2/terminfo/s/sun" + _ "github.com/gdamore/tcell/v2/terminfo/t/termite" + _ "github.com/gdamore/tcell/v2/terminfo/t/tvi910" + _ "github.com/gdamore/tcell/v2/terminfo/t/tvi912" + _ "github.com/gdamore/tcell/v2/terminfo/t/tvi921" + _ "github.com/gdamore/tcell/v2/terminfo/t/tvi925" + _ "github.com/gdamore/tcell/v2/terminfo/t/tvi950" + _ "github.com/gdamore/tcell/v2/terminfo/t/tvi970" + _ "github.com/gdamore/tcell/v2/terminfo/v/vt100" + _ "github.com/gdamore/tcell/v2/terminfo/v/vt102" + _ "github.com/gdamore/tcell/v2/terminfo/v/vt220" + _ "github.com/gdamore/tcell/v2/terminfo/v/vt320" + _ "github.com/gdamore/tcell/v2/terminfo/v/vt400" + _ "github.com/gdamore/tcell/v2/terminfo/v/vt420" + _ "github.com/gdamore/tcell/v2/terminfo/v/vt52" + _ "github.com/gdamore/tcell/v2/terminfo/w/wy50" + _ "github.com/gdamore/tcell/v2/terminfo/w/wy60" + _ "github.com/gdamore/tcell/v2/terminfo/w/wy99_ansi" + _ "github.com/gdamore/tcell/v2/terminfo/x/xfce" + _ "github.com/gdamore/tcell/v2/terminfo/x/xnuppc" + _ "github.com/gdamore/tcell/v2/terminfo/x/xterm" + _ "github.com/gdamore/tcell/v2/terminfo/x/xterm_kitty" ) diff --git a/terminfo/g/gnome/term.go b/terminfo/g/gnome/term.go index 8ad3562..2b0e406 100644 --- a/terminfo/g/gnome/term.go +++ b/terminfo/g/gnome/term.go @@ -2,7 +2,7 @@ package gnome -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/h/hpterm/term.go b/terminfo/h/hpterm/term.go index 5e73e04..01135c9 100644 --- a/terminfo/h/hpterm/term.go +++ b/terminfo/h/hpterm/term.go @@ -2,7 +2,7 @@ package hpterm -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/h/hz1500/term.go b/terminfo/h/hz1500/term.go index 3ad1810..8960e8e 100644 --- a/terminfo/h/hz1500/term.go +++ b/terminfo/h/hz1500/term.go @@ -2,7 +2,7 @@ package hz1500 -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/k/konsole/term.go b/terminfo/k/konsole/term.go index d88881d..c676b8c 100644 --- a/terminfo/k/konsole/term.go +++ b/terminfo/k/konsole/term.go @@ -2,7 +2,7 @@ package konsole -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/k/kterm/term.go b/terminfo/k/kterm/term.go index 12daad6..c9d2e09 100644 --- a/terminfo/k/kterm/term.go +++ b/terminfo/k/kterm/term.go @@ -2,7 +2,7 @@ package kterm -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/l/linux/term.go b/terminfo/l/linux/term.go index 684688f..db10261 100644 --- a/terminfo/l/linux/term.go +++ b/terminfo/l/linux/term.go @@ -2,7 +2,7 @@ package linux -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/mkinfo.go b/terminfo/mkinfo.go index e59fe84..0131163 100644 --- a/terminfo/mkinfo.go +++ b/terminfo/mkinfo.go @@ -25,7 +25,7 @@ // -go specifies Go output into the named file. Use - for stdout. // -nofatal indicates that errors loading definitions should not be fatal // -P pkg use the supplied package name -// -I import use the named import instead of github.com/gdamore/tcell/terminfo +// -I import use the named import instead of github.com/gdamore/tcell/v2/terminfo // package main @@ -42,7 +42,7 @@ import ( "strconv" "strings" - "github.com/gdamore/tcell/terminfo" + "github.com/gdamore/tcell/v2/terminfo" ) type termcap struct { @@ -661,7 +661,7 @@ func dotGoInfo(w io.Writer, terms []*TData) { } var packname = "" -var tipackname = "github.com/gdamore/tcell/terminfo" +var tipackname = "github.com/gdamore/tcell/v2/terminfo" func dotGoFile(fname string, terms []*TData) error { w := os.Stdout diff --git a/terminfo/p/pcansi/term.go b/terminfo/p/pcansi/term.go index 84bc400..e05b743 100644 --- a/terminfo/p/pcansi/term.go +++ b/terminfo/p/pcansi/term.go @@ -2,7 +2,7 @@ package pcansi -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/r/rxvt/term.go b/terminfo/r/rxvt/term.go index b8f2829..69eb4b4 100644 --- a/terminfo/r/rxvt/term.go +++ b/terminfo/r/rxvt/term.go @@ -2,7 +2,7 @@ package rxvt -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/s/screen/term.go b/terminfo/s/screen/term.go index 2afe1f4..a43cbca 100644 --- a/terminfo/s/screen/term.go +++ b/terminfo/s/screen/term.go @@ -2,7 +2,7 @@ package screen -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/s/simpleterm/term.go b/terminfo/s/simpleterm/term.go index 3a1125f..1ec6061 100644 --- a/terminfo/s/simpleterm/term.go +++ b/terminfo/s/simpleterm/term.go @@ -2,7 +2,7 @@ package simpleterm -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/s/sun/term.go b/terminfo/s/sun/term.go index ff6353c..7e5254f 100644 --- a/terminfo/s/sun/term.go +++ b/terminfo/s/sun/term.go @@ -2,7 +2,7 @@ package sun -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/t/termite/term.go b/terminfo/t/termite/term.go index 7a10f63..2caa5b0 100644 --- a/terminfo/t/termite/term.go +++ b/terminfo/t/termite/term.go @@ -2,7 +2,7 @@ package termite -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/t/tvi910/term.go b/terminfo/t/tvi910/term.go index 1c5f7a3..80cf27a 100644 --- a/terminfo/t/tvi910/term.go +++ b/terminfo/t/tvi910/term.go @@ -2,7 +2,7 @@ package tvi910 -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/t/tvi912/term.go b/terminfo/t/tvi912/term.go index 5e52f5c..8b4db9e 100644 --- a/terminfo/t/tvi912/term.go +++ b/terminfo/t/tvi912/term.go @@ -2,7 +2,7 @@ package tvi912 -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/t/tvi921/term.go b/terminfo/t/tvi921/term.go index 1ec0287..e63e3ce 100644 --- a/terminfo/t/tvi921/term.go +++ b/terminfo/t/tvi921/term.go @@ -2,7 +2,7 @@ package tvi921 -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/t/tvi925/term.go b/terminfo/t/tvi925/term.go index 2020ccb..293d115 100644 --- a/terminfo/t/tvi925/term.go +++ b/terminfo/t/tvi925/term.go @@ -2,7 +2,7 @@ package tvi925 -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/t/tvi950/term.go b/terminfo/t/tvi950/term.go index fc6f257..0a01f93 100644 --- a/terminfo/t/tvi950/term.go +++ b/terminfo/t/tvi950/term.go @@ -2,7 +2,7 @@ package tvi950 -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/t/tvi970/term.go b/terminfo/t/tvi970/term.go index e6a1dfb..31befd0 100644 --- a/terminfo/t/tvi970/term.go +++ b/terminfo/t/tvi970/term.go @@ -2,7 +2,7 @@ package tvi970 -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/v/vt100/term.go b/terminfo/v/vt100/term.go index 666e8b1..d43a8a2 100644 --- a/terminfo/v/vt100/term.go +++ b/terminfo/v/vt100/term.go @@ -2,7 +2,7 @@ package vt100 -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/v/vt102/term.go b/terminfo/v/vt102/term.go index 0dfbe61..93b8e4c 100644 --- a/terminfo/v/vt102/term.go +++ b/terminfo/v/vt102/term.go @@ -2,7 +2,7 @@ package vt102 -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/v/vt220/term.go b/terminfo/v/vt220/term.go index 9104b17..11efadc 100644 --- a/terminfo/v/vt220/term.go +++ b/terminfo/v/vt220/term.go @@ -2,7 +2,7 @@ package vt220 -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/v/vt320/term.go b/terminfo/v/vt320/term.go index 49d6703..428e450 100644 --- a/terminfo/v/vt320/term.go +++ b/terminfo/v/vt320/term.go @@ -2,7 +2,7 @@ package vt320 -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/v/vt400/term.go b/terminfo/v/vt400/term.go index 4c7b8bc..aea0efb 100644 --- a/terminfo/v/vt400/term.go +++ b/terminfo/v/vt400/term.go @@ -2,7 +2,7 @@ package vt400 -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/v/vt420/term.go b/terminfo/v/vt420/term.go index 5ec1cef..dbfb9f9 100644 --- a/terminfo/v/vt420/term.go +++ b/terminfo/v/vt420/term.go @@ -2,7 +2,7 @@ package vt420 -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/v/vt52/term.go b/terminfo/v/vt52/term.go index c9560ae..ba49f7f 100644 --- a/terminfo/v/vt52/term.go +++ b/terminfo/v/vt52/term.go @@ -2,7 +2,7 @@ package vt52 -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/w/wy50/term.go b/terminfo/w/wy50/term.go index 4521932..720b937 100644 --- a/terminfo/w/wy50/term.go +++ b/terminfo/w/wy50/term.go @@ -2,7 +2,7 @@ package wy50 -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/w/wy60/term.go b/terminfo/w/wy60/term.go index ff51940..fdf7f53 100644 --- a/terminfo/w/wy60/term.go +++ b/terminfo/w/wy60/term.go @@ -2,7 +2,7 @@ package wy60 -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/w/wy99_ansi/term.go b/terminfo/w/wy99_ansi/term.go index fbe8569..dc7aecb 100644 --- a/terminfo/w/wy99_ansi/term.go +++ b/terminfo/w/wy99_ansi/term.go @@ -2,7 +2,7 @@ package wy99_ansi -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/x/xfce/term.go b/terminfo/x/xfce/term.go index b105cde..26251c7 100644 --- a/terminfo/x/xfce/term.go +++ b/terminfo/x/xfce/term.go @@ -2,7 +2,7 @@ package xfce -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/x/xnuppc/term.go b/terminfo/x/xnuppc/term.go index eb023bd..9a4a206 100644 --- a/terminfo/x/xnuppc/term.go +++ b/terminfo/x/xnuppc/term.go @@ -2,7 +2,7 @@ package xnuppc -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/x/xterm/term.go b/terminfo/x/xterm/term.go index bc7735c..4c90d74 100644 --- a/terminfo/x/xterm/term.go +++ b/terminfo/x/xterm/term.go @@ -2,7 +2,7 @@ package xterm -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terminfo/x/xterm_kitty/term.go b/terminfo/x/xterm_kitty/term.go index 801a4de..880e9ca 100644 --- a/terminfo/x/xterm_kitty/term.go +++ b/terminfo/x/xterm_kitty/term.go @@ -2,7 +2,7 @@ package xterm_kitty -import "github.com/gdamore/tcell/terminfo" +import "github.com/gdamore/tcell/v2/terminfo" func init() { diff --git a/terms_default.go b/terms_default.go index cf2dbaa..4ce7637 100644 --- a/terms_default.go +++ b/terms_default.go @@ -19,5 +19,5 @@ package tcell import ( // This imports the default terminal entries. To disable, use the // tcell_minimal build tag. - _ "github.com/gdamore/tcell/terminfo/extended" + _ "github.com/gdamore/tcell/v2/terminfo/extended" ) diff --git a/terms_dynamic.go b/terms_dynamic.go index a06c087..8f0994a 100644 --- a/terms_dynamic.go +++ b/terms_dynamic.go @@ -24,8 +24,8 @@ import ( // also don't support Android here, because you really don't want // to run external programs there. Generally the android terminals // will be automatically included anyway. - "github.com/gdamore/tcell/terminfo" - "github.com/gdamore/tcell/terminfo/dynamic" + "github.com/gdamore/tcell/v2/terminfo" + "github.com/gdamore/tcell/v2/terminfo/dynamic" ) func loadDynamicTerminfo(term string) (*terminfo.Terminfo, error) { diff --git a/terms_static.go b/terms_static.go index 379dbe1..8b3fe12 100644 --- a/terms_static.go +++ b/terms_static.go @@ -19,9 +19,9 @@ package tcell import ( "errors" - "github.com/gdamore/tcell/terminfo" + "github.com/gdamore/tcell/v2/terminfo" ) -func loadDynamicTerminfo(term string) (*terminfo.Terminfo, error) { +func loadDynamicTerminfo(_ string) (*terminfo.Terminfo, error) { return nil, errors.New("terminal type unsupported") } diff --git a/tscreen.go b/tscreen.go index 52ef255..ac460ea 100644 --- a/tscreen.go +++ b/tscreen.go @@ -25,10 +25,10 @@ import ( "golang.org/x/text/transform" - "github.com/gdamore/tcell/terminfo" + "github.com/gdamore/tcell/v2/terminfo" // import the stock terminals - _ "github.com/gdamore/tcell/terminfo/base" + _ "github.com/gdamore/tcell/v2/terminfo/base" ) // NewTerminfoScreen returns a Screen that uses the stock TTY interface diff --git a/views/_demos/cellview.go b/views/_demos/cellview.go index ea83954..8e30686 100644 --- a/views/_demos/cellview.go +++ b/views/_demos/cellview.go @@ -1,3 +1,5 @@ +// +build ignore + // Copyright 2016 The Tcell Authors // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,8 +20,8 @@ import ( "fmt" "os" - "github.com/gdamore/tcell" - "github.com/gdamore/tcell/views" + "github.com/gdamore/tcell/v2" + "github.com/gdamore/tcell/v2/views" ) var app = &views.Application{} diff --git a/views/_demos/hbox.go b/views/_demos/hbox.go index edb1d31..2d38f53 100644 --- a/views/_demos/hbox.go +++ b/views/_demos/hbox.go @@ -1,3 +1,5 @@ +// +build ignore + // Copyright 2015 The Tops'l Authors // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,8 +20,8 @@ import ( "fmt" "os" - "github.com/gdamore/tcell" - "github.com/gdamore/tcell/views" + "github.com/gdamore/tcell/v2" + "github.com/gdamore/tcell/v2/views" ) type boxL struct { diff --git a/views/_demos/vbox.go b/views/_demos/vbox.go index c07e99f..587ca0d 100644 --- a/views/_demos/vbox.go +++ b/views/_demos/vbox.go @@ -1,3 +1,5 @@ +// +build ignore + // Copyright 2015 The Tops'l Authors // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,8 +20,8 @@ import ( "fmt" "os" - "github.com/gdamore/tcell" - "github.com/gdamore/tcell/views" + "github.com/gdamore/tcell/v2" + "github.com/gdamore/tcell/v2/views" ) type boxL struct { diff --git a/views/app.go b/views/app.go index 9d1add7..239fe05 100644 --- a/views/app.go +++ b/views/app.go @@ -17,7 +17,7 @@ package views import ( "sync" - "github.com/gdamore/tcell" + "github.com/gdamore/tcell/v2" ) // Application represents an event-driven application running on a screen. diff --git a/views/boxlayout.go b/views/boxlayout.go index d40f0da..47093b5 100644 --- a/views/boxlayout.go +++ b/views/boxlayout.go @@ -15,7 +15,7 @@ package views import ( - "github.com/gdamore/tcell" + "github.com/gdamore/tcell/v2" ) // BoxLayout is a container Widget that lays out its child widgets in diff --git a/views/cellarea.go b/views/cellarea.go index e037e3a..68ff9d6 100644 --- a/views/cellarea.go +++ b/views/cellarea.go @@ -17,7 +17,7 @@ package views import ( "sync" - "github.com/gdamore/tcell" + "github.com/gdamore/tcell/v2" ) // CellModel models the content of a CellView. The dimensions used within diff --git a/views/spacer.go b/views/spacer.go index 4d84836..7bba7b7 100644 --- a/views/spacer.go +++ b/views/spacer.go @@ -15,7 +15,7 @@ package views import ( - "github.com/gdamore/tcell" + "github.com/gdamore/tcell/v2" ) // Spacer is a Widget that occupies no visible real-estate. It is useful to diff --git a/views/sstext.go b/views/sstext.go index 3d316fe..9e233e6 100644 --- a/views/sstext.go +++ b/views/sstext.go @@ -15,8 +15,9 @@ package views import ( - "github.com/gdamore/tcell" "unicode" + + "github.com/gdamore/tcell/v2" ) // SimpleStyledText is a form of Text that offers highlighting of the text diff --git a/views/sstextbar.go b/views/sstextbar.go index 6bb13e0..7ef2c28 100644 --- a/views/sstextbar.go +++ b/views/sstextbar.go @@ -17,7 +17,7 @@ package views import ( "sync" - "github.com/gdamore/tcell" + "github.com/gdamore/tcell/v2" ) // SimpleStyledTextBar is a Widget that provides a single line of text, but diff --git a/views/text.go b/views/text.go index fde357f..16d5afd 100644 --- a/views/text.go +++ b/views/text.go @@ -17,7 +17,7 @@ package views import ( "github.com/mattn/go-runewidth" - "github.com/gdamore/tcell" + "github.com/gdamore/tcell/v2" ) // Text is a Widget with containing a block of text, which can optionally diff --git a/views/textarea.go b/views/textarea.go index 146b383..2f19c66 100644 --- a/views/textarea.go +++ b/views/textarea.go @@ -18,7 +18,7 @@ import ( "strings" "sync" - "github.com/gdamore/tcell" + "github.com/gdamore/tcell/v2" ) // TextArea is a pannable 2 dimensional text widget. It wraps both diff --git a/views/textbar.go b/views/textbar.go index 6d1573e..5157b8e 100644 --- a/views/textbar.go +++ b/views/textbar.go @@ -17,7 +17,7 @@ package views import ( "sync" - "github.com/gdamore/tcell" + "github.com/gdamore/tcell/v2" ) // TextBar is a Widget that provides a single line of text, but with diff --git a/views/view.go b/views/view.go index 61fb49d..aac7db5 100644 --- a/views/view.go +++ b/views/view.go @@ -15,7 +15,7 @@ package views import ( - "github.com/gdamore/tcell" + "github.com/gdamore/tcell/v2" ) // View represents a logical view on an area. It will have some underlying diff --git a/views/widget.go b/views/widget.go index b5ebbaf..626c43a 100644 --- a/views/widget.go +++ b/views/widget.go @@ -15,7 +15,7 @@ package views import ( - "github.com/gdamore/tcell" + "github.com/gdamore/tcell/v2" ) // Widget is the base object that all onscreen elements implement.