Projects STRLCPY termdash Commits 9954a054
🤬
  • ■ ■ ■ ■ ■ ■
    .travis.yml
    skipped 3 lines
    4 4   - 1.17.x
    5 5   - stable
    6 6  before_install:
    7  - - go get golang.org/x/tools/cmd/cover
    8  - - go get github.com/mattn/goveralls
     7 + - go install golang.org/x/tools/cmd/cover@latest
     8 + - go install github.com/mattn/goveralls@latest
     9 + - go install golang.org/x/lint/golint@latest
    9 10  script:
    10 11   - go get -t ./...
    11  - - go get -u golang.org/x/lint/golint
    12 12   # Temporarily set -mod=mod to allow modification of go.mod and go.sum.
    13 13   # This seems to be caused by a sum missing in the tcell dependency and
    14 14   # should be removed when no longer needed.
    skipped 1 lines
    16 16   - CGO_ENABLED=1 go test -mod=mod -race ./...
    17 17   - go vet ./...
    18 18   - diff -u <(echo -n) <(gofmt -d -s .)
    19  - - diff -u <(echo -n) <(./internal/scripts/autogen_licences.sh .)
     19 + - diff -u <(echo -n) <(./private/scripts/autogen_licences.sh .)
    20 20   - diff -u <(echo -n) <(golint ./...)
    21 21   - $GOPATH/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
    22 22  env:
    skipped 4 lines
  • ■ ■ ■ ■ ■ ■
    CHANGELOG.md
    skipped 6 lines
    7 7   
    8 8  ## [Unreleased]
    9 9   
     10 +## [0.17.0] - 07-Jul-2022
     11 + 
     12 +### Added
     13 + 
     14 +- Added support for `tcell`'s `Dim` text style.
     15 + 
     16 +### Changed
     17 + 
     18 +- Bump github.com/gdamore/tcell from 2.4.0 to 2.5.1.
     19 +- Bump github.com/nsf/termbox-go to v1.1.1.
     20 +- Change the Go version in `go.mod` to 1.17.
     21 +- Executed `go mod tidy`.
     22 + 
     23 +### Fixed
     24 + 
     25 +- Fixed invalid path to the `autogen_licences.sh` script in `.travis.ci`.
     26 + 
    10 27  ## [0.16.1] - 13-Jan-2022
    11 28   
    12 29  ### Changed
    skipped 459 lines
    472 489  - The Gauge widget.
    473 490  - The Text widget.
    474 491   
    475  -[unreleased]: https://github.com/mum4k/termdash/compare/v0.16.1...devel
     492 +[unreleased]: https://github.com/mum4k/termdash/compare/v0.17.0...devel
     493 +[0.17.0]: https://github.com/mum4k/termdash/compare/v0.16.1...v0.17.0
    476 494  [0.16.1]: https://github.com/mum4k/termdash/compare/v0.16.0...v0.16.1
    477 495  [0.16.0]: https://github.com/mum4k/termdash/compare/v0.15.0...v0.16.0
    478 496  [0.15.0]: https://github.com/mum4k/termdash/compare/v0.14.0...v0.15.0
    skipped 20 lines
  • ■ ■ ■ ■ ■ ■
    cell/cell.go
    skipped 30 lines
    31 31   Strikethrough bool
    32 32   Inverse bool
    33 33   Blink bool
     34 + Dim bool
    34 35  }
    35 36   
    36 37  // Set allows existing options to be passed as an option.
    skipped 74 lines
    111 112   })
    112 113  }
    113 114   
     115 +// Dim makes the cell foreground color dim. Only works when using the tcell backend.
     116 +func Dim() Option {
     117 + return option(func(co *Options) {
     118 + co.Dim = true
     119 + })
     120 +}
     121 + 
  • ■ ■ ■ ■ ■ ■
    cell/cell_test.go
    skipped 81 lines
    82 82   Strikethrough(),
    83 83   Inverse(),
    84 84   Blink(),
     85 + Dim(),
    85 86   },
    86 87   want: &Options{
    87 88   Bold: true,
    skipped 2 lines
    90 91   Strikethrough: true,
    91 92   Inverse: true,
    92 93   Blink: true,
     94 + Dim: true,
    93 95   },
    94 96   },
    95 97   }
    skipped 11 lines
  • ■ ■ ■ ■ ■
    go.mod
    1 1  module github.com/mum4k/termdash
    2 2   
    3  -go 1.14
     3 +go 1.17
    4 4   
    5 5  require (
    6  - github.com/gdamore/tcell/v2 v2.4.0
     6 + github.com/gdamore/tcell/v2 v2.5.1
    7 7   github.com/kylelemons/godebug v1.1.0
    8 8   github.com/mattn/go-runewidth v0.0.13
    9  - github.com/nsf/termbox-go v0.0.0-20201107200903-9b52a5faed9e
    10  - golang.org/x/text v0.3.4 // indirect
     9 + github.com/nsf/termbox-go v1.1.1
     10 +)
     11 + 
     12 +require (
     13 + github.com/gdamore/encoding v1.0.0 // indirect
     14 + github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
     15 + github.com/rivo/uniseg v0.2.0 // indirect
     16 + golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e // indirect
     17 + golang.org/x/term v0.0.0-20220526004731-065cf7ba2467 // indirect
     18 + golang.org/x/text v0.3.7 // indirect
    11 19  )
    12 20   
  • ■ ■ ■ ■ ■ ■
    go.sum
    1 1  github.com/gdamore/encoding v1.0.0 h1:+7OoQ1Bc6eTm5niUzBa0Ctsh6JbMW6Ra+YNuAtDBdko=
    2 2  github.com/gdamore/encoding v1.0.0/go.mod h1:alR0ol34c49FCSBLjhosxzcPHQbf2trDkoo5dl+VrEg=
    3  -github.com/gdamore/tcell/v2 v2.4.0 h1:W6dxJEmaxYvhICFoTY3WrLLEXsQ11SaFnKGVEXW57KM=
    4  -github.com/gdamore/tcell/v2 v2.4.0/go.mod h1:cTTuF84Dlj/RqmaCIV5p4w8uG1zWdk0SF6oBpwHp4fU=
     3 +github.com/gdamore/tcell/v2 v2.5.1 h1:zc3LPdpK184lBW7syF2a5C6MV827KmErk9jGVnmsl/I=
     4 +github.com/gdamore/tcell/v2 v2.5.1/go.mod h1:wSkrPaXoiIWZqW/g7Px4xc79di6FTcpB8tvaKJ6uGBo=
    5 5  github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
    6 6  github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
    7  -github.com/lucasb-eyer/go-colorful v1.0.3 h1:QIbQXiugsb+q10B+MI+7DI1oQLdmnep86tWFlaaUAac=
    8  -github.com/lucasb-eyer/go-colorful v1.0.3/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
    9  -github.com/mattn/go-runewidth v0.0.10/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
    10  -github.com/mattn/go-runewidth v0.0.10/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
     7 +github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
     8 +github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
     9 +github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
    11 10  github.com/mattn/go-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4OSgU=
    12 11  github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
    13  -github.com/nsf/termbox-go v0.0.0-20201107200903-9b52a5faed9e h1:T8/SzSWIDoWV9trslLNfUdJ5yHrIXXuODEy5M0vou4U=
    14  -github.com/nsf/termbox-go v0.0.0-20201107200903-9b52a5faed9e/go.mod h1:IuKpRQcYE1Tfu+oAQqaLisqDeXgjyyltCfsaoYN18NQ=
    15  -github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
     12 +github.com/nsf/termbox-go v1.1.1 h1:nksUPLCb73Q++DwbYUBEglYBRPZyoXJdrj5L+TkjyZY=
     13 +github.com/nsf/termbox-go v1.1.1/go.mod h1:T0cTdVuOwf7pHQNtfhnEbzHbcNyCEcVU4YPpouCbVxo=
    16 14  github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
    17 15  github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
    18  -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 h1:nxC68pudNYkKU6jWhgrqdreuFiOQWj1Fs7T3VrH4Pjw=
    19 16  golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
    20  -golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf h1:MZ2shdL+ZM/XzY3ZGOnh4Nlpnxz5GSOhOmtHo3iPU6M=
     17 +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
     18 +golang.org/x/sys v0.0.0-20220318055525-2edf467146b5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
     19 +golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e h1:CsOuNlbOuf0mzxJIefr6Q4uAUetRUwZE4qt7VfzP+xo=
     20 +golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
    21 21  golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
     22 +golang.org/x/term v0.0.0-20220526004731-065cf7ba2467 h1:CBpWXWQpIRjzmkkA+M7q9Fqnwd2mZr3AFqexg8YTfoM=
     23 +golang.org/x/term v0.0.0-20220526004731-065cf7ba2467/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
    22 24  golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
    23  -golang.org/x/text v0.3.4 h1:0YWbFKbhXG/wIiuHDSKpS0Iy7FSA+u45VtBMfQcFTTc=
    24  -golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
     25 +golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
     26 +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
    25 27  golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
    26 28   
  • ■ ■ ■ ■ ■ ■
    private/faketerm/diff_test.go
     1 +// Copyright 2022 Google LLC
     2 +//
     3 +// Licensed under the Apache License, Version 2.0 (the "License");
     4 +// you may not use this file except in compliance with the License.
     5 +// You may obtain a copy of the License at
     6 +//
     7 +// http://www.apache.org/licenses/LICENSE-2.0
     8 +//
     9 +// Unless required by applicable law or agreed to in writing, software
     10 +// distributed under the License is distributed on an "AS IS" BASIS,
     11 +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12 +// See the License for the specific language governing permissions and
     13 +// limitations under the License.
     14 + 
    1 15  package faketerm
    2 16   
    3 17  import (
    skipped 67 lines
  • ■ ■ ■ ■ ■
    terminal/tcell/cell_options.go
    skipped 69 lines
    70 70   Underline(opts.Underline).
    71 71   StrikeThrough(opts.Strikethrough).
    72 72   Reverse(opts.Inverse).
    73  - Blink(opts.Blink)
     73 + Blink(opts.Blink).
     74 + Dim(opts.Dim)
    74 75   return st
    75 76  }
    76 77   
  • ■ ■ ■ ■ ■
    terminal/tcell/cell_options_test.go
    skipped 324 lines
    325 325   opts: cell.Options{Blink: true},
    326 326   want: tcell.StyleDefault.Blink(true),
    327 327   },
     328 + {
     329 + colorMode: terminalapi.ColorModeNormal,
     330 + opts: cell.Options{Dim: true},
     331 + want: tcell.StyleDefault.Dim(true),
     332 + },
    328 333   }
    329 334   
    330 335   for _, tc := range tests {
    skipped 11 lines
  • ■ ■ ■ ■ ■
    terminal/termbox/cell_options.go
    skipped 66 lines
    67 67   if opts.Blink {
    68 68   return 0, errors.New("Termbox: Unsupported attribute: Blink")
    69 69   }
     70 + 
     71 + if opts.Dim {
     72 + return 0, errors.New("Termbox: Unsupported attribute: Dim")
     73 + }
     74 + 
    70 75   return a, nil
    71 76  }
    72 77   
    skipped 5 lines
  • ■ ■ ■ ■ ■
    terminal/termbox/cell_options_test.go
    skipped 61 lines
    62 62   {cell.Options{Strikethrough: true}, 0, true},
    63 63   {cell.Options{Inverse: true}, tbx.AttrReverse, false},
    64 64   {cell.Options{Blink: true}, 0, true},
     65 + {cell.Options{Dim: true}, 0, true},
    65 66   }
    66 67   
    67 68   for _, tc := range tests {
    skipped 15 lines
Please wait...
Page is in error, reload to recover