mirror of
https://github.com/IllusionMan1212/gorc.git
synced 2026-10-24 02:12:33 +00:00
feat: handle more commands and properly implement older ones
* fix parser tests * write logs to file * gracefully terminate program * make viewport follow output * properly handle channel nicks and display them in the sidepanel * general refactors and fixes
This commit is contained in:
@@ -24,10 +24,26 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
if err := tea.NewProgram(app.InitialState(),
|
||||
_app := app.InitialState()
|
||||
|
||||
p := tea.NewProgram(
|
||||
_app,
|
||||
tea.WithAltScreen(),
|
||||
tea.WithMouseCellMotion(),
|
||||
).Start(); err != nil {
|
||||
)
|
||||
|
||||
_app.Client.Tea = p
|
||||
|
||||
f, err := tea.LogToFile("gorc.log", "gorc")
|
||||
defer f.Close()
|
||||
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
err = p.Start()
|
||||
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user