mattn
74f8ed1281
Merge pull request #72 from alexandear/fix-test-typo
...
Fix typo in TestNonColorableNil
2025-01-10 17:33:50 +09:00
Yasuhiro Matsumoto
1f71342c1e
update deps
2025-01-10 17:29:27 +09:00
mattn
4503567aca
Merge pull request #73 from whereswaldon/patch-1
...
[Windows] harden system DLL loading
2025-01-10 17:27:16 +09:00
Chris Waldon
40e70a5010
[Windows] harden system DLL loading
...
Technically loading system DLLs from relative paths with NewLazyDLL is vulnerable to DLL preloading attacks. See the warning on NewLazyDLL here [0].
[0] https://pkg.go.dev/golang.org/x/sys/windows?GOOS=windows#NewLazyDLL
2025-01-09 17:03:48 -05:00
Oleksandr Redko
50c5b53597
Fix typo in TestNonColorableNil
2024-12-09 22:01:47 +02:00
mattn
603fb50de6
Merge pull request #71 from hymkor/fork-20241118
...
Fix: ESC[E and ESC[F with no arguments did not move the cursor on the legacy terminal of Microsoft Windows
2024-11-18 21:21:34 +09:00
HAYAMA_Kaoru
664d917a3c
Fix: ESC[E and ESC[F with no arguments did not move the cursor on the legacy terminal of Microsoft Windows
2024-11-18 19:08:45 +09:00
mattn
2b733b5d5c
Merge pull request #69 from dolmen-go/merge-appengine-into-others
...
Merge colorable_appengine.go into colorable_others.go
2023-03-22 23:30:39 +09:00
mattn
9473000136
Merge pull request #68 from dolmen-go/do-not-expose-Windows-Writer
...
Windows: do not export Writer
2023-03-22 23:30:03 +09:00
mattn
3cc8472a2a
Merge pull request #67 from dolmen-go/ci-go1.20
...
CI: add Go 1.18 to 1.20
2023-03-22 23:10:05 +09:00
Olivier Mengué
d9a68d5943
Merge colorable_appengine.go into colorable_others.go
...
The only difference between colorable_appengine.go and
colorable_others.go was the build tags. So let's merge code, preserving
build tags.
2023-03-21 22:15:09 +01:00
Olivier Mengué
8e4a944b81
Windows: do not export Writer
...
Do not expose symbol 'Writer'. That symbol is purely internal and was only
exported on GOOS=windows.
2023-03-21 21:57:32 +01:00
Olivier Mengué
9cb611b036
CI: add Go 1.18 to 1.20
2023-03-21 21:46:07 +01:00
Yasuhiro Matsumoto
11a925cff3
update dependencies
2022-08-15 14:53:26 +09:00
mattn
e1bb79c8d5
Merge pull request #63 from naoyukis/delete_buf
...
delete buf
2021-11-23 23:52:42 +09:00
naoyukis
699629e78c
delete buf
...
buf(bytes.Buffer) is actually unused.
2021-11-23 19:56:19 +09:00
mattn
a1c5ae5871
Merge pull request #62 from tklauser/fix-go-version-gh-action
...
Use correct field to specify Go version in GitHub action
2021-09-30 01:03:36 +09:00
Yasuhiro Matsumoto
77502a542e
Update dependencies
2021-09-30 01:02:39 +09:00
Tobias Klauser
f2a4b6642a
Use correct field to specify Go version in GitHub action
...
There is a typo in the actions/setup-go step which leads to the Go
version not being picked up correctly. Fix it.
2021-09-29 17:47:12 +02:00
mattn
797e0c2c1a
Merge pull request #61 from tklauser/gh-actions
...
Migrate to GitHub actions for CI testing
2021-09-30 00:40:20 +09:00
Tobias Klauser
b004592af3
Migrate to GitHub actions for CI testing
...
Travis CI no longer seems to be working:
https://app.travis-ci.com/github/mattn/go-colorable
Add a GitHub action instead, based on the one from
github.com/mattn/go-isatty
2021-09-29 11:55:36 +02:00
mattn
6a118b20ed
Merge pull request #56 from secDre4mer/master
...
Write plain text in chunks
2021-09-25 15:55:58 +09:00
mattn
a53eda51a2
Merge pull request #59 from tklauser/go-build-lines
...
Add //go:build lines
2021-09-25 15:55:29 +09:00
Tobias Klauser
4433af2fce
Add //go:build lines
...
Starting with Go 1.17, //go:build lines are preferred over // +build
lines, see https://golang.org/doc/go1.17#build-lines and
https://golang.org/design/draft-gobuild for details.
This change was generated by running Go 1.17 `go fmt ./...` which
automatically adds //go:build lines based on the existing // +build
lines.
2021-09-22 15:37:43 +02:00
Max Altgelt
39a0e9a376
Write plain text in chunks
...
Instead of writing each byte alone to the console, always write the
full plain text up to the next escape sequence or until the write
is finished.
Doing so means more copying around of bytes, but improves write
performance significantly.
2021-09-21 09:22:41 +02:00
Yasuhiro Matsumoto
a2827f0f3d
Check result of Write
2021-09-21 01:49:15 +09:00
Yasuhiro Matsumoto
2e1b0c1546
Avoid index out of range
2020-10-03 21:20:15 +09:00
mattn
f6c0098282
Merge pull request #49 from segrey/sync-access-to-console
...
synchronize access to Console (fixes #48 )
2020-06-26 21:49:29 +09:00
Sergey Simonchik
b6d341e0a4
synchronize access to Console ( fixes #48 )
2020-06-25 12:12:50 +03:00
mattn
f1b5a0ed46
Merge pull request #51 from zetamatta/fork2
...
Fix: on Windows 8.1, ESC[7m (REVERSE) does not work.
2020-05-04 22:27:58 +09:00
HAYAMA_Kaoru
ce7c9ec345
Fix: on Windows 8.1, ESC[7m (REVERSE) did not work.
2020-05-04 20:40:10 +09:00
mattn
c10454b8be
Merge pull request #50 from zetamatta/fork
...
Support disable-bold,real-underline and native reverse-color.
2020-05-04 19:23:56 +09:00
HAYAMA_Kaoru
4b79b6ea80
Support disable-bold,real-underline and native reverse.
2020-05-04 17:16:25 +09:00
mattn
4e32bdb9fe
Merge pull request #46 from mattn/enablecolor
...
Add EnableColorsStdout
2020-02-28 12:30:15 +09:00
Yasuhiro Matsumoto
68e95eba38
Add EnableColorsStdout
2020-02-28 12:24:31 +09:00
Yasuhiro Matsumoto
d58279a0cb
Merge branch 'master' of https://github.com/mattn/go-colorable
2020-02-28 11:38:08 +09:00
Yasuhiro Matsumoto
65e63775d1
Return the file if ENABLE_VIRTUAL_TERMINAL_PROCESSING is enabled
2020-02-28 11:36:56 +09:00
mattn
617ccecac5
Merge pull request #44 from uji/master
...
refactoring colorable_test.go
2020-02-21 23:47:36 +09:00
uji
7a9f6e7c5c
refactoring
2020-02-20 22:36:25 +09:00
Yasuhiro Matsumoto
c742d6fb21
Enable codecov
2020-01-10 10:04:45 +09:00
Yasuhiro Matsumoto
ed7cf6d093
Update dependencies
2020-01-10 10:04:40 +09:00
Yasuhiro Matsumoto
1792948862
gofmt
2020-01-10 10:04:12 +09:00
Yasuhiro Matsumoto
98ec13f34a
Fix build
2019-10-01 02:34:38 +09:00
mattn
b568324456
Merge pull request #42 from ncw/fix-40
...
Make move to start of line with 0 parameter work - Fixes #40
2019-10-01 02:29:48 +09:00
mattn
7c3dac049b
Merge pull request #41 from ncw/fix-39
...
Make the cursor movements default to 1 step if not provided - Fixes #39
2019-10-01 02:29:12 +09:00
Nick Craig-Wood
e7796444f8
Make move to start of line with 0 parameter work - Fixes #40
2019-09-30 18:24:13 +01:00
Nick Craig-Wood
e29ea3fb3e
Make the cursor movements default to 1 step if not provided - Fixes #39
2019-09-30 18:22:05 +01:00
mattn
72ec6f98a4
Merge pull request #38 from alecrabbit/master
...
Sequence `ESC [ <n> X`
2019-09-26 14:27:40 +09:00
Alec The Rabbit
5d6dfab7a7
cleanup
2019-09-24 17:24:09 +03:00
Alec The Rabbit
98b7b4bed9
import
2019-09-24 17:22:26 +03:00