@@ -28,13 +28,13 @@ import (
28
28
var row = 0
29
29
var style = tcell .StyleDefault
30
30
31
- func Putln (s tcell.Screen , str string ) {
31
+ func putln (s tcell.Screen , str string ) {
32
32
33
- Puts (s , style , 1 , row , str )
33
+ puts (s , style , 1 , row , str )
34
34
row ++
35
35
}
36
36
37
- func Puts (s tcell.Screen , style tcell.Style , x , y int , str string ) {
37
+ func puts (s tcell.Screen , style tcell.Style , x , y int , str string ) {
38
38
i := 0
39
39
var deferred []rune
40
40
dwidth := 0
@@ -94,52 +94,52 @@ func main() {
94
94
quit := make (chan struct {})
95
95
96
96
style = bold
97
- Putln (s , "Press ESC to Exit" )
98
- Putln (s , "Character set: " + s .CharacterSet ())
97
+ putln (s , "Press ESC to Exit" )
98
+ putln (s , "Character set: " + s .CharacterSet ())
99
99
style = plain
100
100
101
- Putln (s , "English: October" )
102
- Putln (s , "Icelandic: október" )
103
- Putln (s , "Arabic: أكتوبر" )
104
- Putln (s , "Russian: октября" )
105
- Putln (s , "Greek: Οκτωβρίου" )
106
- Putln (s , "Chinese: 十月 (note, two double wide characters)" )
107
- Putln (s , "Combining: A\u030a (should look like Angstrom)" )
108
- Putln (s , "Emoticon: \U0001f618 (blowing a kiss)" )
109
- Putln (s , "Airplane: \u2708 (fly away)" )
110
- Putln (s , "Command: \u2318 (mac clover key)" )
111
- Putln (s , "Enclose: !\u20e3 (should be enclosed exclamation)" )
112
- Putln (s , "" )
113
- Putln (s , "Box:" )
114
- Putln (s , string ([]rune {
101
+ putln (s , "English: October" )
102
+ putln (s , "Icelandic: október" )
103
+ putln (s , "Arabic: أكتوبر" )
104
+ putln (s , "Russian: октября" )
105
+ putln (s , "Greek: Οκτωβρίου" )
106
+ putln (s , "Chinese: 十月 (note, two double wide characters)" )
107
+ putln (s , "Combining: A\u030a (should look like Angstrom)" )
108
+ putln (s , "Emoticon: \U0001f618 (blowing a kiss)" )
109
+ putln (s , "Airplane: \u2708 (fly away)" )
110
+ putln (s , "Command: \u2318 (mac clover key)" )
111
+ putln (s , "Enclose: !\u20e3 (should be enclosed exclamation)" )
112
+ putln (s , "" )
113
+ putln (s , "Box:" )
114
+ putln (s , string ([]rune {
115
115
tcell .RuneULCorner ,
116
116
tcell .RuneHLine ,
117
117
tcell .RuneTTee ,
118
118
tcell .RuneHLine ,
119
119
tcell .RuneURCorner ,
120
120
}))
121
- Putln (s , string ([]rune {
121
+ putln (s , string ([]rune {
122
122
tcell .RuneVLine ,
123
123
tcell .RuneBullet ,
124
124
tcell .RuneVLine ,
125
125
tcell .RuneLantern ,
126
126
tcell .RuneVLine ,
127
127
})+ " (bullet, lantern/section)" )
128
- Putln (s , string ([]rune {
128
+ putln (s , string ([]rune {
129
129
tcell .RuneLTee ,
130
130
tcell .RuneHLine ,
131
131
tcell .RunePlus ,
132
132
tcell .RuneHLine ,
133
133
tcell .RuneRTee ,
134
134
}))
135
- Putln (s , string ([]rune {
135
+ putln (s , string ([]rune {
136
136
tcell .RuneVLine ,
137
137
tcell .RuneDiamond ,
138
138
tcell .RuneVLine ,
139
139
tcell .RuneUArrow ,
140
140
tcell .RuneVLine ,
141
141
})+ " (diamond, up arrow)" )
142
- Putln (s , string ([]rune {
142
+ putln (s , string ([]rune {
143
143
tcell .RuneLLCorner ,
144
144
tcell .RuneHLine ,
145
145
tcell .RuneBTee ,
0 commit comments