Debian Codegraph @

demos/styles/styles.go

raw symbols SCIP
1 // Copyright 2025 The TCell Authors
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // styles just displays some sample output styles.
16 // Press CTRL-Q to exit the program.
17 package mainscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/
18
19 import (
20 "fmtscip-go gomod github.com/golang/go/src go1.25.0 fmt/"
21 "osscip-go gomod github.com/golang/go/src go1.25.0 os/"
22
23 "github.com/gdamore/tcell/v3scip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/"
24 "github.com/gdamore/tcell/v3/colorscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/"
25 )
26
27 var rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row. = 0
28 var stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = tcellscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/.StyleDefaultscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/StyleDefault.
29
30 func mainscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/main().() {
31
32 s, e := tcellscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/.NewScreenscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/NewScreen().()
33 if e != nil {
34 fmtscip-go gomod github.com/golang/go/src go1.25.0 fmt/.Fprintfscip-go gomod github.com/golang/go/src go1.25.0 fmt/Fprintf().(osscip-go gomod github.com/golang/go/src go1.25.0 os/.Stderrscip-go gomod github.com/golang/go/src go1.25.0 os/Stderr., "%v\n", e)
35 osscip-go gomod github.com/golang/go/src go1.25.0 os/.Exitscip-go gomod github.com/golang/go/src go1.25.0 os/Exit().(1)
36 }
37
38 if e = s.Initscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#Init.(); e != nil {
39 fmtscip-go gomod github.com/golang/go/src go1.25.0 fmt/.Fprintfscip-go gomod github.com/golang/go/src go1.25.0 fmt/Fprintf().(osscip-go gomod github.com/golang/go/src go1.25.0 os/.Stderrscip-go gomod github.com/golang/go/src go1.25.0 os/Stderr., "%v\n", e)
40 osscip-go gomod github.com/golang/go/src go1.25.0 os/.Exitscip-go gomod github.com/golang/go/src go1.25.0 os/Exit().(1)
41 }
42 defer s.Finiscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#Fini.()
43
44 plain := tcellscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/.StyleDefaultscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/StyleDefault.
45 bold := stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style..Boldscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Bold().(true)
46
47 s.SetStylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#SetStyle.(tcellscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/.StyleDefaultscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/StyleDefault..
48 Foregroundscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Foreground().(colorscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/.Blackscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/Black.).
49 Backgroundscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Background().(colorscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/.Whitescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/White.))
50 s.Clearscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#Clear.()
51
52 quit := make(chan struct{})
53
54 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = bold.Foregroundscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Foreground().(colorscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/.Bluescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/Blue.).Backgroundscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Background().(colorscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/.Silverscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/Silver.)
55
56 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row. = 2
57 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "Press ESC to Exit", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
58 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row. = 4
59 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "Note: Style support is dependent on your terminal.", plain)
60 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row. = 6
61
62 plain = tcellscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/.StyleDefaultscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/StyleDefault..Foregroundscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Foreground().(colorscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/.Blackscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/Black.).Backgroundscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Background().(colorscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/.Whitescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/White.)
63
64 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = plain
65 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "Plain", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
66 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row.++
67
68 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = plain.Blinkscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Blink().(true)
69 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "Blink", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
70 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row.++
71
72 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = plain.Reversescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Reverse().(true)
73 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "Reverse", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
74 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row.++
75
76 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = plain.Dimscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Dim().(true)
77 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "Dim", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
78 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row.++
79
80 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = plain.Underlinescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Underline().(true)
81 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "Underline", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
82 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row.++
83
84 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = plain.Italicscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Italic().(true)
85 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "Italic", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
86 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row.++
87
88 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = plain.Boldscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Bold().(true)
89 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "Bold", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
90 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row.++
91
92 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = plain.Boldscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Bold().(true).Italicscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Italic().(true)
93 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "Bold Italic", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
94 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row.++
95
96 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = plain.Boldscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Bold().(true).Italicscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Italic().(true).Underlinescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Underline().(true)
97 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "Bold Italic Underline", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
98 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row.++
99
100 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = plain.StrikeThroughscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#StrikeThrough().(true)
101 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "StrikeThrough", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
102 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row.++
103
104 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = plain.Underlinescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Underline().(tcellscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/.UnderlineStyleDoublescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/UnderlineStyleDouble.)
105 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "Double Underline", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
106 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row.++
107
108 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = plain.Underlinescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Underline().(tcellscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/.UnderlineStyleCurlyscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/UnderlineStyleCurly.)
109 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "Curly Underline", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
110 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row.++
111
112 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = plain.Underlinescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Underline().(tcellscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/.UnderlineStyleDottedscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/UnderlineStyleDotted.)
113 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "Dotted Underline", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
114 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row.++
115
116 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = plain.Underlinescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Underline().(tcellscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/.UnderlineStyleDashedscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/UnderlineStyleDashed.)
117 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "Dashed Underline", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
118 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row.++
119
120 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = plain.Underlinescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Underline().(true, colorscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/.Bluescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/Blue.)
121 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "Blue Underline", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
122 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row.++
123
124 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = plain.Underlinescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Underline().(tcellscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/.UnderlineStyleSolidscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/UnderlineStyleSolid., colorscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/.FireBrickscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/FireBrick.)
125 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "Firebrick Underline", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
126 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row.++
127
128 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = plain.Underlinescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Underline().(tcellscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/.UnderlineStyleCurlyscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/UnderlineStyleCurly., colorscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/.NewRGBColorscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/NewRGBColor().(0xc5, 0x8a, 0xf9))
129 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "Pink Curly Underline", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
130 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row.++
131
132 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = plain.Urlscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Url().("http://github.com/gdamore/tcell")
133 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "HyperLink", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
134 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row.++
135
136 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = plain.Foregroundscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Foreground().(colorscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/.Redscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/Red.)
137 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "Red Foreground", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
138 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row.++
139
140 stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style. = plain.Backgroundscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Style#Background().(colorscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/.Redscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/color`/Red.)
141 s.PutStrStyledscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#PutStrStyled.(2, rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row., "Red Background", stylescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/style.)
142 rowscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3/demos/styles`/row.++
143
144 s.Showscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#Show.()
145 go func() {
146 for {
147 ev := <-s.EventQscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#EventQ.()
148 switch ev := ev.(type) {
149 case *tcellscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/.EventKeyscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/EventKey#:
150 switch ev.Keyscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/EventKey#Key().() {
151 case tcellscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/.KeyEscapescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/KeyEscape., tcellscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/.KeyEnterscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/KeyEnter., tcellscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/.KeyCtrlQscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/KeyCtrlQ.:
152 close(quit)
153 return
154 case tcellscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/.KeyCtrlLscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/KeyCtrlL.:
155 s.Syncscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#Sync.()
156 }
157 case *tcellscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/.EventResizescip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/EventResize#:
158 s.Syncscip-go gomod github.com/gdamore/tcell/v3 . `github.com/gdamore/tcell/v3`/Screen#Sync.()
159 }
160 }
161 }()
162
163 <-quit
164 }