Skip to content

chore: deprecate some StartupOptions in favor of Cmds#1307

Merged
aymanbagabas merged 1 commit intomainfrom
deprecate-some-options
Feb 4, 2025
Merged

chore: deprecate some StartupOptions in favor of Cmds#1307
aymanbagabas merged 1 commit intomainfrom
deprecate-some-options

Conversation

@meowgorithm
Copy link
Copy Markdown
Member

This revision depreciates the following ProgramOptions in favor of Cmds. All of these will be removed in v2.

For equivalent functionality, just return the equivalent Cmd in your Init():

func (m Model) Init() tea.Cmd {
    return tea.Batch(tea.EnterAltScreen, tea.EnableMouseAllMotion)
}

Additionally, WithANSICompressor is deprecated due to performance implications.

@aymanbagabas aymanbagabas merged commit 75d1b4b into main Feb 4, 2025
@aymanbagabas aymanbagabas deleted the deprecate-some-options branch February 4, 2025 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants