Commit Graph

12 Commits

Author SHA1 Message Date
erroneousboat
1ae769c7ca Update event handlers
* Terminal is now returned to normal when quitting
* Fix resize handler
* Update structure event handling
2017-07-30 15:23:47 +02:00
erroneousboat
8a7b831555 Update version 2017-07-17 09:42:14 +02:00
erroneousboat
e3ca3b4621 Add custom eventstream for termui
In order to fix issue #47 I've added a custom eventstream
to termui that will deregister its own eventstream.

This will ensure me that the events will not be sent to
termui's (unbuffered) event channel and will be picked
up by the buffered termbox channel of slack-term.

Fixes #47
2017-07-15 15:57:59 +02:00
erroneousboat
adeaee3b0f Add EventQueue to AppContext
This should alleviate some problems with using the application and
getting the error:

panic: runtime error: slice bounds out of range

However, I'm still able to trigger this event when scrolling
the mouse wheel.

Fixes #47
2017-03-17 14:43:08 +01:00
erroneousboat
165a776a3d Update external packages 2017-03-17 14:43:08 +01:00
erroneousboat
5d11b6b785 Add help page
Fixes #11
2016-10-30 14:26:12 +01:00
erroneousboat
ad948508f4 Make keys mappable 2016-10-29 17:57:58 +02:00
erroneousboat
7651156c27 Add additional check for sidebar width
I've added the MainWidth to the context which may be used in the future
for on the fly changing of the size of the sidebar.
2016-10-21 16:21:13 +02:00
erroneousboat
5d483f313f Merge branch 'set-sidebar-width' of github.com:codegoalie/slack-term into column-width 2016-10-21 14:52:34 +02:00
erroneousboat
7a4dbd45b5 Move authTest before creation of RTM
By moving authTest we'll be able to test the connection to
slack, and return a sensible error message when this fails.

Fixes #36
2016-10-21 14:05:36 +02:00
Chris Marshall
5b7fabcabd Set column widths from sidebarWidth config value
Reads from config file or defaults to 1 column
2016-10-19 12:23:05 -04:00
erroneousboat
10e4469bae Update project structure 2016-10-19 09:11:35 +02:00