Replace termbox-go with tcell (#439)
Fix colour construction issue This also has a test to mitigate it in the future Remove `colormode` option The original issue it was trying to solve is no longer present with tcell (it being a holdover from `color256` on termbox) so it is not needed. retire gitter channel in favor of irc/matrix Export options as environment variables (#448) * Export options as environment variables Any options from gOpts are available via lf_OPTION environment variables. For now it works only on booleans, integers and strings (no array support) * Do not export some of the options * Add support for arrays and fix numbers * Fix comments * Replace 1 and 0 with true and false * Export hidden,reverse,dirfirst and sortby options * Fix comments * Little fix * Simplify boolean conversion log readlink errors instead of fail Related #447 and #374
This commit is contained in:
1 parent
d25faf7186
commit
24f01f4988
16 files changed
+477
-419
No files matched your search
@@ -14,6 +14,8 @@ import (
|
||||
"strings"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/gdamore/tcell"
|
||||
)
|
||||
|
||||
type cmdItem struct {
|
||||
@@ -34,8 +36,8 @@ type app struct {
|
||||
cmdHistoryInd int
|
||||
}
|
||||
|
||||
func newApp() *app {
|
||||
ui := newUI()
|
||||
func newApp(screen tcell.Screen) *app {
|
||||
ui := newUI(screen)
|
||||
nav := newNav(ui.wins[0].h)
|
||||
|
||||
quitChan := make(chan bool, 1)
|
||||
|
||||
Reference in new issue
Block a user