File tree 1 file changed +4
-0
lines changed
jansi/src/main/java/org/fusesource/jansi
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -241,24 +241,28 @@ protected void processCursorToColumn(int x) throws IOException {
241
241
@ Override
242
242
protected void processSetForegroundColor (int color , boolean bright ) throws IOException {
243
243
info .attributes = (short ) ((info .attributes & ~0x0007 ) | ANSI_FOREGROUND_COLOR_MAP [color ]);
244
+ info .attributes = (short ) ((info .attributes & ~FOREGROUND_INTENSITY ) | (bright ? FOREGROUND_INTENSITY : 0 ));
244
245
applyAttribute ();
245
246
}
246
247
247
248
@ Override
248
249
protected void processSetBackgroundColor (int color , boolean bright ) throws IOException {
249
250
info .attributes = (short ) ((info .attributes & ~0x0070 ) | ANSI_BACKGROUND_COLOR_MAP [color ]);
251
+ info .attributes = (short ) ((info .attributes & ~BACKGROUND_INTENSITY ) | (bright ? BACKGROUND_INTENSITY : 0 ));
250
252
applyAttribute ();
251
253
}
252
254
253
255
@ Override
254
256
protected void processDefaultTextColor () throws IOException {
255
257
info .attributes = (short ) ((info .attributes & ~0x000F ) | (originalColors & 0xF ));
258
+ info .attributes = (short ) (info .attributes & ~FOREGROUND_INTENSITY );
256
259
applyAttribute ();
257
260
}
258
261
259
262
@ Override
260
263
protected void processDefaultBackgroundColor () throws IOException {
261
264
info .attributes = (short ) ((info .attributes & ~0x00F0 ) | (originalColors & 0xF0 ));
265
+ info .attributes = (short ) (info .attributes & ~BACKGROUND_INTENSITY );
262
266
applyAttribute ();
263
267
}
264
268
You can’t perform that action at this time.
0 commit comments