- spinner: fix line didn't clear properly
v0.12.42 - 2022-06-21
- input: added text input printer
v0.12.41 - 2022-04-12
v0.12.40 - 2022-03-28
- added a custom writer for all printers
v0.12.39 - 2022-03-18
- use fallback color in
BigTextPrinter
whenRGB
is not supported
- fix
BigTextPrinter
test - removed
testdata
- removed snapshot testing
v0.12.38 - 2022-03-09
- added
NewLettersFromStringWithRGB
- added
NewLettersFromStringWithRGB
- bigtext: fix formatting error in bigtext test
v0.12.37 - 2022-02-17
- progressbar: Add option to set the
MaxWidth
of the progressbar
- progressbar: added 100% test coverage for new features
- putils: Improved styling
v0.12.36 - 2022-02-01
- proposal horizontal table header row and row separators fixes
- proposal horizontal table header row and row separators changes
- proposal horizontal table header row and row separators changes
- proposal horizontal table header row and row separators changes
- proposal horizontal table header row and row separators changes
- proposal horizontal table header row and row separators changes
- proposal horizontal table header row and row separators
- proposal horizontal table header row and row separators changes
- proposal horizontal table header row and row separators changes
- proposal horizontal table header row and row separators
- proposal horizontal table header row and row separators
- proposal horizontal table header row and row separators
- proposal horizontal table header row and row separators
- proposal horizontal table header row and row separators
- proposal horizontal table header row and row separators
- proposal horizontal table header row and row separators
- proposal horizontal table header row and row separators
v0.12.35 - 2022-02-01
- fix linting
- regenerate snapshots
v0.12.34 - 2022-01-16
- progressbar: refresh progressbars on every PTerm print (#302)
- removed
AreaPrinter
test output - table: changed mock reader from
os.Stdin
tooutBuf
v0.12.33 - 2021-10-24
- add
PrintOnErrorf
for everyTextPrinter
(#279) - coverage: add unit test
- progressbar: made updating the progressbar title easier. (#267)
- table: increase test coverage
- table: revamp to follow practice
- table: add support for right data alignment
- idea: revert unwanted config changes
- linter: do linter recommendation to delete fallthrough
v0.12.32 - 2021-10-15
- added
AreaPrinter.Clear()
- progressbar method name
- header: fixed length calculation for Chinese strings
- change bitSize size
v0.12.31 - 2021-09-21
- prefix: added
LineNumberOffset
toPrefixPrinter
v0.12.30 - 2021-08-16
- style: resetting to previous color also resets attributes
- adapt new testza function name
v0.12.29 - 2021-07-19
- putils: add
PrintAverageExecutionTime
- fix rgb error test
- fix internal test import cycle
- move tests into own package
- replace
testify
withtestza
v0.12.28 - 2021-07-17
- spinner: add option to show a timer
- bar chart: fix panic when rendering empty horizontal bar chart
- spinner: try to fix RawOutput text
- spinner: add raw output test
- spinner: better raw output logic
- spinner: refactor
v0.12.27 - 2021-07-05
- style: fix multiline style coloring
- style: fix multiline style coloring
- style: fix multiline style coloring
v0.12.26 - 2021-07-01
- spinner: Override previous text in
UpdateText
v0.12.25 - 2021-07-01
- table: add
Boxed
option
- add tests for boxed
TablePrinter
v0.12.24 - 2021-06-13
- boxprinter: replace line breaks in title with space
- boxprinter: add title center position to
BoxPrinter
- boxprinter: add title & title position to
BoxPrinter
- boxprinter: add title & title position to
BoxPrinter
- putils: add
TableDataFromSeparatedValues
- putils: add
TableDataFromTSV
- putils: add
TableDataFromCSV
- putils: add function to convert TSV to
TableData
- putils: add function to convert CSV to
TableData
- add test for putils
TableData
generation - boxprinter: add tests for title center position to
BoxPrinter
- boxprinter: add tests for title & title position
- boxprinter: prefix title positions with
Title
- putils: add
rowSeparator
toTableFromSeparatedValues
v0.12.23 - 2021-06-07
- Add util functions to create tables from slices of structs (#217)
- headerprinter: don't panic if content width > terminal width
- prefix:
pterm.Error
default no line number shown
- prefix:
pterm.Error
default no line number shown
v0.12.22 - 2021-05-30
- make spinner update faster
- improve performance of
SpinnerPrinter
v0.12.21 - 2021-05-30
- print lines above active spinners
- putils: add
DownloadFileWithProgressbar
- clear active spinners after tests complete
- putils: change internal variable name
v0.12.20 - 2021-05-29
- force color output by default
v0.12.19 - 2021-05-29
- add
PrintOnError
for all printers and interface - putils: add
putils
package (#206)
- header: fix multiline header
- add tests for all printers for
PrintOnError
- make
PrintOnError
return*TextPrinter
- area: better height calculation
v0.12.18 - 2021-05-22
- add
AreaPrinter
- area: add
Center
option - area: add
Fullscreen
option - area: add
GetContent
function - area: add
AreaPrinter
- area: fix tests for
AreaPrinter
- area: add
AreaPrinter
tests
- fix linting errors
v0.12.17 - 2021-05-14
- fix
pterm.Fatal.Printfln
not panicking - prefix: fix
pterm.Fatal.Printfln
not panicking and had output in debug mode
- prefix: add tests for
Sprintfln
andPrintfln
function when in debug mode
v0.12.16 - 2021-05-13
- prefix: make
PrintOnError
accept multiple inputs
v0.12.15 - 2021-05-13
- add raw output mode for
BarChart
- add disable styling boolean option
- bigtext: add raw output mode
- centerprinter: add raw output mode
- headerprinter: add raw output mode
- panelprinter: add raw output mode
- paragraph: add raw output mode
- prefix: add
PrintIfError
- prefix: add raw output mode
- progressbar: add raw output mode
- spinner: add raw output mode
- prefix: fix
PrintOnError
- add tests with
RawOutput
enabled - add interface tests for
Color
andRGB
- added tests for
DisableStyling
andEnableStyling
- correct behaviour of Enable-/DisableStyling
- fix variable names
v0.12.14 - 2021-05-09
- basic-text: add
Sprintfln
andPrintfln
function - boxprinter: add
Sprintfln
andPrintfln
function - centerprinter: add
Sprintfln
andPrintfln
function - color: add
Sprintfln
andPrintfln
function - header: add
Sprintfln
andPrintfln
function - paragraph: add
Sprintfln
andPrintfln
function - prefix: add
Sprintfln
andPrintfln
function - print: add
Sprintfln
andPrintfln
function - printer-interface: add
Sprintfln
andPrintfln
to the interface - rgb: add
Sprintfln
andPrintfln
function - section: add
Sprintfln
andPrintfln
function
- header: fix inline color in
Header
- add tests for
Sprintfln
andPrintfln
function
- refactor
Sprintfln
andPrintfln
func. for better performance
- ci: change color scheme for rendered examples
v0.12.13 - 2021-04-10
- bigtext: fix height of some characters #180
- color: make color implement
TextPrinter
- add interface tests
- examples: center the intro of
demo
- examples: add note to box printer
v0.12.12 - 2021-03-01
- prefixprinter: Add option to show line number of caller
- examples: Update
PrefixPrinter
example
v0.12.11 - 2021-02-26
- refactor print logic of
BoxPrinter
- refactor print logic of
CenterPrinter
v0.12.10 - 2021-02-26
- correct
pterm.Println()
behaviour to fit tofmt.Println()
v0.12.9 - 2021-02-23
- correct
pterm.Println()
behaviour to fit tofmt.Println()
- change terminal package import path to updated version
v0.12.8 - 2020-12-11
- boxprinter: add
WithHorizontalString
toBoxPrinter
- boxprinter: add
BoxPrinter
- panel: add optional border for
Panel
- panelprinter: add theme support to
PanelPrinter
- theme: add
BoxStyle
andBoxTextStyle
- theme: add optional theme for border in
Panel
- revert change horizontal string change
- boxprinter: add test
- boxprinter: test multiple lines in one box
- boxprinter: add tests for
BoxPrinter
- panelprinter: add tests for adding box printer
- panelprinter: add tests for optional border for
Panel
- theme: add tests for
BoxStyle
andBoxTextStyle
- remove analytics
- boxprinter: change from
RenderablePrinter
toTextPrinter
- boxprinter: return theme when style is nil
- boxprinter: change
DefaultBox
top and bottom padding to 0 - boxprinter: fix spacing between boxes and in boxes
- boxprinter: refactor code
- panelprinter: optional border for
Panel
- panelprinter: add
BoxPrinter
to surround panels with a fully custom box
v0.12.7 - 2020-11-24
- add values to chart
- add horizontal
BarChartPrinter
- add
BarChartPrinter
- add
BarChartPrinter
- add
BarChartPrinter
- theme: add theme support to
BarChart
- center bars over colored labels in
BarChart
- add tests to
BarChartPrinter
v0.12.6 - 2020-11-17
- disabling output works as expected now (#149)
v0.12.5 - 2020-11-17
- fix
PrefixPrinter
with multiple trailing newline endings.
v0.12.4 - 2020-11-17
- fix
Printf
ofPrefixPrinter
v0.12.3 - 2020-11-12
- reduce tests
- different test logic for rgb printing
- add better test names for
RGB
tests
v0.12.2 - 2020-11-05
- color each line separately when using multi line input
- fix internal
GetStringMaxWidth
max width
- basictext: proxy print functions to DevNull
- progressbar: proxy print functions to DevNull
- use
pterm.Sprint
to print
v0.12.1 - 2020-11-04
- panel: Fix output when input is colored
- header: calculate margin faster
v0.12.0 - 2020-11-04
- panel: add an option to make a padding beneath
panel
- panel: add an option to make columns the same length
- panel: add invalid check for
padding
inpanel
- bulletlist:
BulletListItem
removeRender
andSrender
- bulletlist: change
BulletList
toBulletListPrinter
- panel: add invalid check for
padding
inpanel
- panel: add test for
WithBottomPadding
- panel: add test for
WithSameColumnWidth
& multiplepanel
- panel: add test for
WithSameColumnWidth
- progressbar: change
Progressbar
toProgressbarPrinter
- progressbar: change directory name
progressbar_test
toprogressbar_printer_test
- spinner: change directory name
spinner_test
tospinner_printer_test
- spinner: change
Spinner
toSpinnerPrinter
- table: change
Table
toTablePrinter
- tree: change
Tree
toTreePrinter
- make all printer names end with
Printer
(#134) - bulletlist: remove
DefaultBulletListItem
- bulletlist:
BulletListItem
removeRender
andSrender
- bulletlist:
BulletListItem
is no renderable anymore - bulletlist: change
BulletList
toBulletListPrinter
- progressbar: change
ActiveProgressbars
toActiveProgressbarPrinters
- progressbar: change directory name
progressbar
toprogressbar_printer
- progressbar: change
Progressbar
toProgressbarPrinter
- spinner: change
Spinner
toSpinnerPrinter
- spinner: change directory name
spinner
tospinner_printer
- table: change
Table
toTablePrinter
- tree: change
Tree
toTreePrinter
Removed DefaultBulletListItem
.
Change names of printers which didn't end with Printer
. Every printer name ends with Printer
now to fit into the new naming convention.
change ActiveProgressbars
to ActiveProgressbarPrinters
BulletListItem
is no renderable anymore, removed Render
and Srender
BulletListItem
is no renderable anymore, removed Render
and Srender
BulletListItem
is no renderable anymore
change Tree
to TreePrinter
to unify the naming scheme
change Tree
to TreePrinter
to unify the naming scheme
change Table
to TablePrinter
to unify the naming scheme
change Table
to TablePrinter
to unify the naming scheme
change Spinner
to SpinnerPrinter
to unify the naming scheme
change Spinner
to SpinnerPrinter
to unify the naming scheme
change Progressbar
to ProgressbarPrinter
to unify the naming scheme
change Progressbar
to ProgressbarPrinter
to unify the naming scheme
change BulletList
to BulletListPrinter
to unify the naming scheme
change BulletList
to BulletListPrinter
to unify the naming scheme
v0.11.0 - 2020-11-03
- add
PanelPrinter
- centerprinter: make centerprinter func return pointer
make centerprinter func WithCenterEachLineSeparately
return a pointer of centerprinter
v0.10.1 - 2020-11-02
- add
CenterPrinter
v0.10.0 - 2020-11-01
- make printers return errors
- add
DisableOutput()
andEnableOutput()
(#108)
- ignore errors where no errors can occur
- theme: change
ListTextStyle
toBulletListTextStyle
(#104) - theme: change
ProgressbarBarStyle
toFgCyan
(#106) - theme: change white to default color in
Theme
(#103)
Interface of RenderablePrinter
and LivePrinter
changed.
The global variable DisableOutput
was renamed to Output
.
v0.9.3 - 2020-10-31
- add a levelList converter for TreeListPrinter
- add
TreeListPrinter
as a renderable printer - add
TreeListPrinter
as a renderable printer - theme: add theme support for
Tree
- tree: add
Tree
tests
- clean up
Tree
- theme: change
TreeTextStyle
toFgDefault
- tree: add Indent to control the spacing between levels and changed docs(examples)
- tree: add more spacing between levels
- tree: refactor
Tree
code and write tests forTree
- tree: refactor
Tree
code - tree: refactor
Tree
code - tree: refactor
Tree
code - tree: refactor
Tree
code and write tests forTree
v0.9.2 - 2020-10-29
- add option to disable and enable colors
v0.9.1 - 2020-10-27
- make the prefix of
Info
smaller again
v0.9.0 - 2020-10-27
- add
Debug
PrefixPrinter
- add support for enabling and disabling debug messages
- progressbar disappears when done and something is printed after
- add debugger tests to
PrefixPrinter
- add progressbar tests
- remove
UpdateDelay
fromProgressbar
- change
NewList
toNewBulletList
- change
NewList
toNewBulletList
- deprecate
UpdateDelay
inProgressbar
Removed UpdateDelay
from Progressbar
. It's no longer used. The Progressbar automatically updates on every change to the current value.
Changed NewList
to NewBulletList
.
v0.8.1 - 2020-10-26
- add fade from one RGB over several RGBs to another RGB
- refactor doc
- refactor code
v0.8.0 - 2020-10-24
- test that
%s
won't fail to print
- make
BigTextPrinter
release ready - change
LineCharacter
toBarCharacter
(#70)
Changed LineCharacter
to BarCharacter
.
v0.7.0 - 2020-10-20
- progressbar: add RemoveWhenDone
- make theme accept pointer styles
- make Spinner accept pointer Style
- make WithMessageStyle accept Style pointer
- add nil check to SectionPrinter Style
- section printer Style to pointer
- add tests color and style
- add tests to root print functions
- add tests to progressbar
- add tests to terminal
- add tests to theme
- fix internal percentage test
- add tests to Spinner
- add tests for TablePrinter
- special tests for special statements
- complete PrefixPrinter tests
- add PrefixPrinter tests
- rename HeaderPrinter tests
- complete HeaderPrinter tests
- add ParagraphPrinter tests
- add HeaderPrinter tests
- make unit test system check different types
- add SectionPrinter tests
- implement test utils
- add rgb tests
- use log output
- remove obsolete if
- fit progressbar to new percentage calculation method
- make fatal panic
- rename parameters
- don't show empty line when removing a progressbar
v0.6.1 - 2020-10-20
- fix RGB methods
v0.6.0 - 2020-10-19
- add BasicTextPrinter
- add theme support to section and table printer
- add theme support to spinner
- add theme support to headers
- add template support for progressbars
- add default theme
- benchmark: fix spinner benchmark
- make printers accept pointers to styles
- remove emojis to comply with cross-platform policy
- change LivePrinter interface to pointer output
- change TextPrinter interface to pointer output
All printers only accept pointers as any Style
attribute.
LivePrinter now requires to return a pointer.
TextPrinter now requires to return a pointer.
v0.5.1 - 2020-10-14
- add ability to disable output (#44)
- add
Srender
toRenderPrinter
interface - add csv table support (#42)
- add HEX to RGB converter in
RGB
(#41) - add theme to generated animations
- add color fade example (#38)
- implement
TextPrinter
intoRGB
- implement color fade to
Progressbar
(#37) - add color fade function and
RBG
(#34) - change
Section
style
- declare function name as
WithCSVReader
v0.5.0 - 2020-10-08
- implement
LivePrinter
inSpinner
- add
BottomPadding
toSectionPrinter
- add
RenderPrinter
interface - implement
LivePrinter
inProgressbar
- add
LivePrinter
interface - add
TablePrinter
(#27) - add
ParagraphPrinter
(#24)
- add
Print
equalsSprint
tests forGenericPrinter
- add
Spinner
benchmarks
- rename spinner_printer.go to spinner.go
- rename
GenericPrinter
toTextPrinter
The GenericPrinter
is now called TextPrinter
.
v0.4.1 - 2020-10-07
v0.4.0 - 2020-10-07
- add
Add
toStyle
- add options shorthands to
SectionPrinter
- ignore writer close errors in stdout capture
- use
Style
instead of colors - refactor function parameters to fit expectation
- rename
RemoveColors
toRemoveColorFromString
use Style
instead of colors
Refactor function parameters to fit expectation.
Affects: WithStyle(colors -> style)
, WithScope(string, colors -> scope)
rename RemoveColors
to RemoveColorFromString
v0.3.2 - 2020-10-06
- add
SectionPrinter
- fix
Sprintf
function ofHeaderPrinter
- add tests for
HeaderPrinter
andSectionPrinter
v0.3.1 - 2020-10-06
- add
BarFiller
toProgressbar
- fix import cycle
- change to inbuilt
SetDefaultOutput
option - add more benchmarks
- add benchmarks
- add tests to
GenericPrinter
and default print methods
- set default
BarFiller
to space - move tests directly into
pterm
module
v0.3.0 - 2020-10-05
- fix
WithXYZ(b ...bool)
to detect booleans correctly
- remove
Version
constant - change
WithXXX(b bool)
toWithXXX(b ...bool)
- change
SetXXX
toWithXXX
- change
Header
toDefaultHeader
remove Version
constant
rename SetXXX
to WithXXX
rename Header
to DefaultHeader
v0.2.4 - 2020-10-04
Printf
works again
v0.2.3 - 2020-10-04
- automatically print above
Progressbar
- remove goroutine from
Progressbar
v0.2.2 - 2020-10-04
- add
Fatal
printer
v0.2.1 - 2020-10-04
- make progressbar configurable
- add percentage helper
- add
RemoveColors
- add
Progressbar
(#5) - add
Progressbar
- add fatal to
PrefixPrinter
(#4) - progressbar: fade percentage color according to value
- bump version to "v0.2.1"
v0.2.0 - 2020-09-30
- change style of
Description
printer - add color in color support
- add
RemoveWhenDone
toSpinner
- add multiline support to
PrefixPrinter
- add
UpdateText
to spinner
- spinners spin evenly when multiple spinners are started
- improve spinner performance
- bump version to "v0.2.0"
- change
WithXXX
toSetXXX
- removed
Println
aliases
every WithXXX
is renamed to SetXXX
remove GetFormattedMessage
from PrefixPrinter
removed Println
aliases
v0.1.0 - 2020-09-28
- add spinners
- shorten printer names and add builder methods to printers
- add
Printo
to override printed text - add
FullWidth
toHeaderPrinter
- add terminal size detection
- bump version to "v0.1.0"
- consistent example code for
Printo
- better comments for
Printo
- simplify
HeaderPrinter
printer names changed
removed Header
and put it's content directly into HeaderPrinter
v0.0.1 - 2020-09-21
- add aliases to default printers
- add header example
- integrate ci
- add
HeaderPrinter
- add exported version variable
- add example
override-default-printer
- change prefix text color to
LightWhite
- header should now work in CI
- bump version to "v0.0.1"
- refactor project
- add comments to functions
- add changelog template
- configs
- initial commit