From 21de41ac028de6b399f1243c4aaa7605c422cd47 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Wed, 8 Jun 2022 14:55:54 +0200 Subject: [PATCH] docs: fix deprecation notes --- tea.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tea.go b/tea.go index 73be9bd..fcbf822 100644 --- a/tea.go +++ b/tea.go @@ -597,7 +597,7 @@ func (p *Program) shutdown(kill bool) { // EnterAltScreen enters the alternate screen buffer, which consumes the entire // terminal window. ExitAltScreen will return the terminal to its former state. // -// Deprecated. Use the WithAltScreen ProgramOption instead. +// Deprecated: Use the WithAltScreen ProgramOption instead. func (p *Program) EnterAltScreen() { p.mtx.Lock() defer p.mtx.Unlock() @@ -616,7 +616,7 @@ func (p *Program) EnterAltScreen() { // ExitAltScreen exits the alternate screen buffer. // -// Deprecated. The altscreen will exited automatically when the program exits. +// Deprecated: The altscreen will exited automatically when the program exits. func (p *Program) ExitAltScreen() { p.mtx.Lock() defer p.mtx.Unlock() @@ -636,7 +636,7 @@ func (p *Program) ExitAltScreen() { // EnableMouseCellMotion enables mouse click, release, wheel and motion events // if a mouse button is pressed (i.e., drag events). // -// Deprecated. Use the WithMouseCellMotion ProgramOption instead. +// Deprecated: Use the WithMouseCellMotion ProgramOption instead. func (p *Program) EnableMouseCellMotion() { p.mtx.Lock() defer p.mtx.Unlock() @@ -646,7 +646,7 @@ func (p *Program) EnableMouseCellMotion() { // DisableMouseCellMotion disables Mouse Cell Motion tracking. This will be // called automatically when exiting a Bubble Tea program. // -// Deprecated. The mouse will automatically be disabled when the program exits. +// Deprecated: The mouse will automatically be disabled when the program exits. func (p *Program) DisableMouseCellMotion() { p.mtx.Lock() defer p.mtx.Unlock() @@ -657,7 +657,7 @@ func (p *Program) DisableMouseCellMotion() { // regardless of whether a mouse button is pressed. Many modern terminals // support this, but not all. // -// Deprecated. Use the WithMouseAllMotion ProgramOption instead. +// Deprecated: Use the WithMouseAllMotion ProgramOption instead. func (p *Program) EnableMouseAllMotion() { p.mtx.Lock() defer p.mtx.Unlock() @@ -667,7 +667,7 @@ func (p *Program) EnableMouseAllMotion() { // DisableMouseAllMotion disables All Motion mouse tracking. This will be // called automatically when exiting a Bubble Tea program. // -// Deprecated. The mouse will automatically be disabled when the program exits. +// Deprecated: The mouse will automatically be disabled when the program exits. func (p *Program) DisableMouseAllMotion() { p.mtx.Lock() defer p.mtx.Unlock()