Skip to content

fortio/tcalc

Repository files navigation

GoDoc Go Report Card GitHub Release CI Checks codecov

tcalc

tcalc is a bitwise calculator that is run from the terminal. It supports basic variable assignments, and most arithmetic and bitwise operations.

Screenshot:

Install

You can get the binary from releases

Or just run

CGO_ENABLED=0 go install fortio.org/tcalc@latest  # to install (in ~/go/bin typically) or just
CGO_ENABLED=0 go run fortio.org/tcalc@latest  # to run without install

or

brew install fortio/tap/tcalc

or

docker run -ti fortio/tcalc

Usage

tcalc help

flags:
  -fps float
        set fps for display refresh (default 60)
  -logger-force-color
        Force color output even if stderr isn't a terminal
  -logger-no-color
        Prevent colorized output even if stderr is a terminal
  -loglevel level
        log level, one of [Debug Verbose Info Warning Error Critical Fatal] (default Info)
  -profile-cpu file
        write cpu profile to file
  -profile-mem file
        write memory profile to file
  -quiet
        Quiet mode, sets loglevel to Error (quietly) to reduces the output
  -truecolor
        Use true color (24-bit RGB) instead of 8-bit ANSI colors (default is true if COLORTERM is set) (default true)

About

tcalc is a bitwise calculator that can be run from the terminal. It supports current session history, basic variable assignments, and most arithmetic/bitwise operations.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Generated from fortio/template