Documentation ¶
Index ¶
- func HandleCommandInput(screen tcell.Screen) (string, rune)
- func HandleViewerInput(screen tcell.Screen, threads model.Threads, t, p int) (string, int, int)
- func NavBottom(threads model.Threads) (int, int)
- func NavDownPost(threads model.Threads, t, p int) (int, int)
- func NavDownThread(threads model.Threads, t int) (int, int)
- func NavTop() (int, int)
- func NavUpPost(threads model.Threads, t, p int) (int, int)
- func NavUpThread(t int) (int, int)
- func PauseUntilInput(screen tcell.Screen)
- type App
- func (a *App) CommandMode()
- func (a *App) ContinueStub()
- func (a *App) Error(format string, v ...any)
- func (a *App) ExecCommand(cmd string)
- func (a *App) Fatal(format string, v ...any)
- func (a *App) Info(format string, v ...any)
- func (a *App) InitScreen() error
- func (a *App) Refresh()
- func (a *App) RunApp() error
- func (a *App) SearchNext()
- func (a *App) SearchPrev()
- func (a *App) SearchStart(term string)
- func (a *App) SetCommandMode(cmd string)
- func (a *App) SetViewerMode()
- func (a *App) Terminate(format string, v ...any)
- func (a *App) ViewerMode()
- type InfoLevel
- type Mode
- type Search
- type Style
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCommandInput ¶
func HandleViewerInput ¶
func NavUpThread ¶
func PauseUntilInput ¶
func PauseUntilInput(screen tcell.Screen)
Types ¶
type App ¶
type App struct { Site model.Site SiteInput model.SiteInput Style Style // contains filtered or unexported fields }
func (*App) CommandMode ¶
func (a *App) CommandMode()
func (*App) ContinueStub ¶
func (a *App) ContinueStub()
func (*App) ExecCommand ¶
func (*App) InitScreen ¶
func (*App) SearchNext ¶
func (a *App) SearchNext()
func (*App) SearchPrev ¶
func (a *App) SearchPrev()
func (*App) SearchStart ¶
func (*App) SetCommandMode ¶
func (*App) SetViewerMode ¶
func (a *App) SetViewerMode()
func (*App) ViewerMode ¶
func (a *App) ViewerMode()
type Style ¶
type Style struct { MessageLength int FullIndent int SemiIndent int // Post author line AuthorStart tcell.Style AuthorName tcell.Style UpVotesIcon tcell.Style UpVotesNum tcell.Style DownVotesIcon tcell.Style DownVotesNum tcell.Style Time tcell.Style Separator tcell.Style // Characters AuthorStartChar rune UpVotesChar rune DownVotesChar rune SeparatorChar rune // Post message ActiveMessage tcell.Style RegularMessage tcell.Style ActiveStubMessage tcell.Style StubMessage tcell.Style // Characters ActiveMessageChar rune StubStartChar rune // Command/Search Command tcell.Style // Info message LoadingMessage tcell.Style InfoMessage tcell.Style ErrorMessage tcell.Style }
func DefaultStyle ¶
func DefaultStyle() Style
Source Files ¶
Click to show internal directories.
Click to hide internal directories.