summary refs log tree commit diff stats
path: root/lib/ui/interactive.go
diff options
context:
space:
mode:
authorMarkus Ongyerth <aerc@ongy.net>2018-06-01 09:58:00 +0200
committerDrew DeVault <sir@cmpwn.com>2018-06-01 16:04:43 -0700
commit80e891a8024ac10a60daa790131e04f0326b0c73 (patch)
tree7a07cc26b2885e43e57e1672d2895c7fae2b173e /lib/ui/interactive.go
parent3836d240c9aa26615e7d768a57436d171edc3831 (diff)
downloadaerc-80e891a8024ac10a60daa790131e04f0326b0c73.tar.gz
switch to tcell from termbox
This is a simple mostly straight forward switch to tcell in favor of
termbox.
It uses the tcell native api (not the compat layer) but does not make
use of most features.

Further changes should include moving to tcell's views.TextArea and the
general built in widget behaviour instead of the current ad hoc
implementation.

Regression: Cursor isn't shown in ex-line
Diffstat (limited to 'lib/ui/interactive.go')
-rw-r--r--lib/ui/interactive.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ui/interactive.go b/lib/ui/interactive.go
index efab828..2d4f099 100644
--- a/lib/ui/interactive.go
+++ b/lib/ui/interactive.go
@@ -1,17 +1,17 @@
 package ui
 
 import (
-	tb "github.com/nsf/termbox-go"
+	"github.com/gdamore/tcell"
 )
 
 type Interactive interface {
 	// Returns true if the event was handled by this component
-	Event(event tb.Event) bool
+	Event(event tcell.Event) bool
 }
 
 type Simulator interface {
 	// Queues up the given input events for simulation
-	Simulate(events []tb.Event)
+	Simulate(events []tcell.Event)
 }
 
 type DrawableInteractive interface {
Drew DeVault <sir@cmpwn.com> 2018-01-09 18:31:40 -0500 Initial commit' href='/akspecs/aerc/commit/cmd/aerc/main.go?h=0.6.0&id=aeb700577b5b2955c75093129e01de49b92f124f'>aeb7005
8126d82 ^



8126d82 ^
753adb9 ^
10dd23f ^

577248f ^

f37508a ^
577248f ^

5d0402a ^


753adb9 ^
5d0402a ^

fa04a1e ^
10dd23f ^


8126d82 ^





dc4c36a ^
2a09617 ^




















c6b776a ^


2a09617 ^



f42724c ^
f42724c ^
74af57b ^
f42724c ^

d43684c ^
66a9052 ^
d43684c ^

aeb7005
74af57b ^

d43684c ^

66a9052 ^
74af57b ^







66a9052 ^

d43684c ^
66a9052 ^



74af57b ^

648ca98 ^



a21afda ^



ec0e0f9 ^
a21afda ^
1767e4f ^
a21afda ^

d85f671 ^
a0be5e8 ^
b812257 ^
b275a39 ^
39c93d2 ^
60b351b ^
f406bf5 ^



2a09617 ^
dc4c36a ^



8635c70 ^
b60999c ^
0847464 ^
77a0f68 ^


1418e1b ^
60b351b ^
0847464 ^



7a489cb ^








de122b1 ^
a15ea01 ^


1418e1b ^
661e3ec ^

305446a ^
6394e38 ^
072b5f4 ^
aeb7005
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175