aboutsummaryrefslogtreecommitdiffstats
path: root/ui/context.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-02-26 22:41:54 -0500
committerDrew DeVault <sir@cmpwn.com>2018-02-26 22:42:01 -0500
commit661e3ec2a4dd97d4a8a8eab4f281b088770a6af2 (patch)
tree1f94f9a168642617690934deba2e5b712abb1834 /ui/context.go
parent07f7cac2f3c5b7b74d16296d5afb57ff7e908130 (diff)
downloadaerc-661e3ec2a4dd97d4a8a8eab4f281b088770a6af2.tar.gz
Implement basic ex line input
TODO: - scrolling - commit/cancel - command history (via an external command history provider) - tab completion (via an external tab completion provider)
Diffstat (limited to 'ui/context.go')
-rw-r--r--ui/context.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/context.go b/ui/context.go
index ae9e5610..ca3f4522 100644
--- a/ui/context.go
+++ b/ui/context.go
@@ -15,6 +15,14 @@ type Context struct {
height int
}
+func (ctx *Context) X() int {
+ return ctx.x
+}
+
+func (ctx *Context) Y() int {
+ return ctx.y
+}
+
func (ctx *Context) Width() int {
return ctx.width
}