Commit Graph

25 Commits (22cbd9fa58512ffdcc975bab37a55467d5e10968)

Author SHA1 Message Date
Junegunn Choi 22cbd9fa58
Implement height range (--height ~[VALUE][%])
Close #2953
2 years ago
znley 885cd8ff04
[make] Add loongarch64 support (#2857) 2 years ago
Junegunn Choi e4c3ecc57e
0.28.0 3 years ago
Xeonacid 5fc78e4584
Add riscv64 build target (#2626)
Build successfully on Arch Linux RISC-V.
3 years ago
Charlie Vieth 5a874ae241
Speed up ANSI code processing (#2368)
This commit speeds up the parsing/processing of ANSI escape codes by
roughly 7.5x. The speedup is mostly accomplished by replacing the regex
with dedicated parsing logic (nextAnsiEscapeSequence()) and reducing the
number of allocations in extractColor().

#### Benchmarks
```
name             old time/op    new time/op     delta
ExtractColor-16    4.89µs ± 5%     0.64µs ± 2%   -86.87%  (p=0.000 n=9+9)

name             old speed      new speed       delta
ExtractColor-16  25.6MB/s ± 5%  194.6MB/s ± 2%  +661.43%  (p=0.000 n=9+9)

name             old alloc/op   new alloc/op    delta
ExtractColor-16    1.37kB ± 0%     0.31kB ± 0%   -77.31%  (p=0.000 n=10+10)

name             old allocs/op  new allocs/op   delta
ExtractColor-16      48.0 ± 0%        4.0 ± 0%   -91.67%  (p=0.000 n=10+10)
```
3 years ago
Junegunn Choi bb0502ff44
Check gofmt in `make test` 3 years ago
Junegunn Choi 32c493e994
[Makefile] Restore 32-bit targets
Close #2328
3 years ago
Junegunn Choi 012ee9ca85
[Makefile] Make sure to use bash 3 years ago
Loic Nageleisen 797dd7c449
[Makefile] Support building on machines with `uname -m` == "arm64" (#2291) 3 years ago
Junegunn Choi a7d3b72117
Make build flags consistent 4 years ago
Junegunn Choi 3ba7b5cf2d
Make Makefile fail when git information is not available 4 years ago
Junegunn Choi 0d5f862daf
0.24.0 4 years ago
Junegunn Choi 552414978e
0.24.0-rc1 4 years ago
Junegunn Choi dba14d2630
0.23.0 4 years ago
Raffaele 08c2bcb952
Quote LDFLAGS (#1995)
Make sure that `extldflags` is quoted so that LDFLAGS containing spaces won't break the build command.

Close #1994
4 years ago
stiletto f1520bdde6 Support building on machines with `uname -m` == "aarch64" (#1710) 5 years ago
Junegunn Choi 63c42b14f2
Remove trailing spaces in Makefile 6 years ago
Stefan Tatschner 6f1eaa9b39 Use go modules and simplify build (#1444)
* Update .travis.yml and use stages

This updates the .travis.yml configuration to use separate stages for
unittests and CLI tests. The output is now clearer, since for unittests
and CLI tests separate web pages are available.

* Use go modules and simplify build
6 years ago
Younes Manton 1c9e7b7ea6 Update Makefile to build ppc64le binary (#1326)
* Add ppc64le support to Makefile

* Update crypt libs to fix tty ioctls on ppc64le

The hardcoded tty ioctl commands in the terminal package were not
correct for ppc64le and caused the ioctls to return ENOTTY for
commands like TCGETS and so on. The bug is fixed in later versions.
6 years ago
做梦专业户 e67cc75063 Update Makefile to support armv8l (#1321) 6 years ago
Junegunn Choi 76a2dcb5a9
Add Dockerfile for running tests
make docker
make docker-test
6 years ago
Akinori MUSHA d207672bd5 Parse the output of `go version` to get the value of GOOS (#1260) 6 years ago
Junegunn Choi 34f16e5b7d
Fix Makefile and install script for the new project layout 7 years ago
Junegunn Choi 83e9af6601
Add git revision to --version output 7 years ago
Junegunn Choi 8bbf9335e1
Restructuring: main package in project root 7 years ago