Ticket #9293: 0006-Made-SGR-39-49-actually-reset-the-the-color.patch

File 0006-Made-SGR-39-49-actually-reset-the-the-color.patch, 1.0 KB (added by Ziusudra, 12 years ago)
  • src/apps/terminal/TermParse.cpp

    From 60d2ca5a94c0f60a26c8aad1e4a2a9055cc4f3c6 Mon Sep 17 00:00:00 2001
    From: Ziusudra <ziusudra@gmail.com>
    Date: Sun, 16 Dec 2012 01:02:31 -0700
    Subject: [PATCH 6/9] Made SGR 39 & 49 actually reset the the color
    
     - IS_FORESET & IS_BACKSET are never used. Are they left over from something
       that got removed, or are they something that didn't get finished?
    ---
     src/apps/terminal/TermParse.cpp |    4 ++++
     1 file changed, 4 insertions(+)
    
    diff --git a/src/apps/terminal/TermParse.cpp b/src/apps/terminal/TermParse.cpp
    index a0fb4f1..eca4be0 100644
    a b TermParse::EscParse()  
    986986                                // terminfo op=\E[39;49m
    987987                                // termcap  op=\E[39;49m
    988988                                fAttr &= ~FORESET;
     989                                fAttr &= ~FORECOLOR;
     990                                fAttr |= FORECOLORED(7);
    989991                                break;
    990992
    991993                            case 40:
    TermParse::EscParse()  
    10181020
    10191021                            case 49:
    10201022                                fAttr &= ~BACKSET;
     1023                                fAttr &= ~BACKCOLOR;
     1024                                fAttr |= BACKCOLORED(0);
    10211025                                break;
    10221026                        }
    10231027                    }