Projects STRLCPY termdash Commits 93ddcf46
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    cell/cell_test.go
    skipped 79 lines
    80 80   Italic(),
    81 81   Underline(),
    82 82   Strikethrough(),
     83 + Inverse(),
     84 + Blink(),
    83 85   },
    84 86   want: &Options{
    85 87   Bold: true,
    86 88   Italic: true,
    87 89   Underline: true,
    88 90   Strikethrough: true,
     91 + Inverse: true,
     92 + Blink: true,
    89 93   },
    90 94   },
    91 95   }
    skipped 11 lines
  • ■ ■ ■ ■ ■
    terminal/tcell/cell_options.go
    skipped 62 lines
    63 63   fg := cellColor(colorToMode(opts.FgColor, colorMode))
    64 64   bg := cellColor(colorToMode(opts.BgColor, colorMode))
    65 65   
    66  - st = st.Foreground(fg).Background(bg).Bold(opts.Bold).Italic(opts.Italic).Underline(opts.Underline).StrikeThrough(opts.Strikethrough).Reverse(opts.Inverse).Blink(opts.Blink)
     66 + st = st.Foreground(fg).
     67 + Background(bg).
     68 + Bold(opts.Bold).
     69 + Italic(opts.Italic).
     70 + Underline(opts.Underline).
     71 + StrikeThrough(opts.Strikethrough).
     72 + Reverse(opts.Inverse).
     73 + Blink(opts.Blink)
    67 74   return st
    68 75  }
    69 76   
  • ■ ■ ■ ■ ■ ■
    terminal/termbox/cell_options.go
    skipped 48 lines
    49 49   if opts.Bold {
    50 50   a |= tbx.AttrBold
    51 51   }
    52  - // FIXME: Termbox doesn't have an italics attribute
     52 + // Termbox doesn't have an italics attribute
    53 53   if opts.Italic {
    54 54   return 0, errors.New("Termbox: Unsupported attribute: Italic")
    55 55   }
    56 56   if opts.Underline {
    57 57   a |= tbx.AttrUnderline
    58 58   }
    59  - // FIXME: Termbox doesn't have a strikethrough attribute
     59 + // Termbox doesn't have a strikethrough attribute
    60 60   if opts.Strikethrough {
    61 61   return 0, errors.New("Termbox: Unsupported attribute: Strikethrough")
    62 62   }
    63 63   if opts.Inverse {
    64 64   a |= tbx.AttrReverse
    65 65   }
    66  - // FIXME: Termbox doesn't have a blink attribute
     66 + // Termbox doesn't have a blink attribute
    67 67   if opts.Blink {
    68 68   return 0, errors.New("Termbox: Unsupported attribute: Blink")
    69 69   }
    skipped 8 lines
  • ■ ■ ■ ■
    terminal/termbox/cell_options_test.go
    skipped 59 lines
    60 60   {cell.Options{Underline: true}, tbx.AttrUnderline, false},
    61 61   {cell.Options{Italic: true}, 0, true},
    62 62   {cell.Options{Strikethrough: true}, 0, true},
    63  - {cell.Options{Inverse: true}, tbx.AttrReverse, true},
     63 + {cell.Options{Inverse: true}, tbx.AttrReverse, false},
    64 64   {cell.Options{Blink: true}, 0, true},
    65 65   }
    66 66   
    skipped 16 lines
Please wait...
Page is in error, reload to recover