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 @@ -244,14 +244,18 @@ protected void processCursorToColumn(int x) throws IOException {
244
244
@ Override
245
245
protected void processSetForegroundColor (int color , boolean bright ) throws IOException {
246
246
info .attributes = (short ) ((info .attributes & ~0x0007 ) | ANSI_FOREGROUND_COLOR_MAP [color ]);
247
- info .attributes = (short ) ((info .attributes & ~FOREGROUND_INTENSITY ) | (bright ? FOREGROUND_INTENSITY : 0 ));
247
+ if (bright ) {
248
+ info .attributes |= FOREGROUND_INTENSITY ;
249
+ }
248
250
applyAttribute ();
249
251
}
250
252
251
253
@ Override
252
254
protected void processSetBackgroundColor (int color , boolean bright ) throws IOException {
253
255
info .attributes = (short ) ((info .attributes & ~0x0070 ) | ANSI_BACKGROUND_COLOR_MAP [color ]);
254
- info .attributes = (short ) ((info .attributes & ~BACKGROUND_INTENSITY ) | (bright ? BACKGROUND_INTENSITY : 0 ));
256
+ if (bright ) {
257
+ info .attributes |= BACKGROUND_INTENSITY ;
258
+ }
255
259
applyAttribute ();
256
260
}
257
261
You can’t perform that action at this time.
0 commit comments