File tree 1 file changed +6
-2
lines changed
jansi/src/main/java/org/fusesource/jansi
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -245,14 +245,18 @@ protected void processCursorToColumn(int x) throws IOException {
245
245
@ Override
246
246
protected void processSetForegroundColor (int color , boolean bright ) throws IOException {
247
247
info .attributes = (short ) ((info .attributes & ~0x0007 ) | ANSI_FOREGROUND_COLOR_MAP [color ]);
248
- info .attributes = (short ) ((info .attributes & ~FOREGROUND_INTENSITY ) | (bright ? FOREGROUND_INTENSITY : 0 ));
248
+ if (bright ) {
249
+ info .attributes |= FOREGROUND_INTENSITY ;
250
+ }
249
251
applyAttribute ();
250
252
}
251
253
252
254
@ Override
253
255
protected void processSetBackgroundColor (int color , boolean bright ) throws IOException {
254
256
info .attributes = (short ) ((info .attributes & ~0x0070 ) | ANSI_BACKGROUND_COLOR_MAP [color ]);
255
- info .attributes = (short ) ((info .attributes & ~BACKGROUND_INTENSITY ) | (bright ? BACKGROUND_INTENSITY : 0 ));
257
+ if (bright ) {
258
+ info .attributes |= BACKGROUND_INTENSITY ;
259
+ }
256
260
applyAttribute ();
257
261
}
258
262
You can’t perform that action at this time.
0 commit comments