Not only tse.cfg,but also
proc TSE_default()
SetColorTableValue(_BACKGROUND_, 0,0x000000 ) // black 0x000000
SetColorTableValue(_BACKGROUND_, 1,0x000080 ) // blue 0x000080
SetColorTableValue(_BACKGROUND_, 2,0x548c54 ) // green 0x008000
SetColorTableValue(_BACKGROUND_, 3,0x548c87 ) // cyan 0x008080
SetColorTableValue(_BACKGROUND_, 4,0x800000 ) // red 0x800000
SetColorTableValue(_BACKGROUND_, 5,0x800080 ) // magenta 0x800080
SetColorTableValue(_BACKGROUND_, 6,0x4c8065 ) // brown 0x808000
SetColorTableValue(_BACKGROUND_, 7,0xa0a0a0 ) // light gray 0xc0c0c0
SetColorTableValue(_BACKGROUND_, 8,0x808080 ) // dark gray 0x808080
SetColorTableValue(_BACKGROUND_, 9,0x0000ff ) // light blue 0x0000ff
SetColorTableValue(_BACKGROUND_,10,0x00ff00 ) // light green 0x00ff00
SetColorTableValue(_BACKGROUND_,11,0x00ffff ) // light cyan 0x00ffff
SetColorTableValue(_BACKGROUND_,12,0xff0000 ) // light red 0xff0000
SetColorTableValue(_BACKGROUND_,13,0xff00ff ) // light magenta 0xff00ff
SetColorTableValue(_BACKGROUND_,14,0xffff00 ) // yellow 0xffff00
SetColorTableValue(_BACKGROUND_,15,0xffffff ) // white 0xffffff
SetColorTableValue(_FOREGROUND_, 0,0x000000 ) // black 0x000000
SetColorTableValue(_FOREGROUND_, 1,0x000080 ) // blue 0x000080
SetColorTableValue(_FOREGROUND_, 2,0x004000 ) // green 0x008000
SetColorTableValue(_FOREGROUND_, 3,0x004040 ) // cyan 0x008080
SetColorTableValue(_FOREGROUND_, 4,0x800000 ) // red 0x800000
SetColorTableValue(_FOREGROUND_, 5,0x800080 ) // magenta 0x800080
SetColorTableValue(_FOREGROUND_, 6,0x804000 ) // brown 0x808000
SetColorTableValue(_FOREGROUND_, 7,0xfeddbc ) // light gray 0xc0c0c0
SetColorTableValue(_FOREGROUND_, 8,0x404040 ) // dark gray 0x808080
SetColorTableValue(_FOREGROUND_, 9,0x0000ff ) // light blue 0x0000ff
SetColorTableValue(_FOREGROUND_,10,0x86fc86 ) // light green 0x00ff00
SetColorTableValue(_FOREGROUND_,11,0x9ffafa ) // light cyan 0x00ffff
SetColorTableValue(_FOREGROUND_,12,0xffbfbf ) // light red 0xff0000
SetColorTableValue(_FOREGROUND_,13,0xfecbfe ) // light magenta 0xff00ff
SetColorTableValue(_FOREGROUND_,14,0xffffa0 ) // yellow 0xffff00
SetColorTableValue(_FOREGROUND_,15,0xffffff ) // white 0xffffff
end
and
asm patch _memset in g32.exe to transparent marked text color:
...
.text:00408B03 568 E8 F8 A5 02 00 call _memset ;~update marked text color
.text:00408B08 568 83 C4 0C add esp, 0Ch ;~0x08 is lo byte of return address
...
.text:00433100 _memset proc near
.text:00433100
.text:00433100 s= dword ptr 8
.text:00433100 c= dword ptr 0Ch
.text:00433100 n= dword ptr 10h
.text:00433100
.text:00433100 000 55 push ebp
.text:00433101 004 8B EC mov ebp, esp
.text:00433103 004 57 push edi
.text:00433104 008 8A 45 0C mov al, byte ptr [ebp+c] ; .text:00433104 008 8A 45 0C mov al, [ebp+arg_4] ;get attr of to set,0x21 is green background and blue foreground
.text:00433107 008 8B 55 10 mov edx, [ebp+n] ;~ .text:00433107 008 8B 7D 08 mov edi, [ebp+arg_0] ;Transparent Mark Patch begin here. edi is address of old attrs
.text:0043310A 008 8B 7D 08 mov edi, [ebp+s] ;~ .text:0043310A 008 56 push esi
.text:0043310D 008 8A E0 mov ah, al ;~ .text:0043310B 00C 89 FE mov esi, edi ;esi is address of old attrs
.text:0043310F 008 F7 C2 FC FF FF FF test edx, 0FFFFFFFCh ;~ .text:0043310D 00C 8B 4D 10 mov ecx, [ebp+arg_8] ;n bytes to set
.text:00433115 008 74 5D jz short loc_433174 ;~ .text:00433110 00C 8A 65 04 mov ah, [ebp+4] ;lo byte of return address
.text:00433117 008 66 89 07 mov [edi], ax ;~ .text:00433113 00C 66 3D 21 08 cmp ax, 00821h ;is called from update marked text color and attr of to set,0x21
.text:0043311A 008 8D 4C 17 FC lea ecx, [edi+edx-4] ;~ .text:00433117 00C 74 04 jz short loc_43311D ;yes, patch it!
.text:0043311E 008 66 89 47 02 mov [edi+2], ax ;~ .text:00433119 00C F3 AA rep stosb ;no, set ecx(n bytes) new attr
.text:00433122 008 8B 07 mov eax, [edi] ;~ .text:0043311B 00C EB 09 jmp short loc_433126
.text:00433124 008 C1 EA 03 shr edx, 3 ;~ .text:0043311D
.text:00433127 008 74 43 jz short loc_43316C ;~ .text:0043311D loc_43311D:
.text:00433129 ;~ .text:0043311D 00C AC lodsb ;get old attr
.text:00433129 loc_433129: ;~ .text:0043311E 00C 24 0F and al, 0Fh ;get foreground color of old attr
.text:00433129 008 89 07 mov [edi], eax ;~ .text:00433120 00C 0C 20 or al, 20h ;set background to green
.text:0043312B 008 89 47 04 mov [edi+4], eax ;~ .text:00433122 00C AA stosb ;save new attr
.text:0043312E 008 4A dec edx ;~ .text:00433123 00C 49 dec ecx ;next byte
.text:0043312F 008 74 30 jz short loc_433161 ;~ .text:00433124 00C 7F F7 jg short loc_43311D ;loop
.text:00433131 008 89 47 08 mov [edi+8], eax ;~ .text:00433126
.text:00433134 008 89 47 0C mov [edi+0Ch], eax ;~ .text:00433126 loc_433126:
.text:00433137 008 4A dec edx ;~ .text:00433126 00C 8B 45 08 mov eax, [ebp+arg_0]
.text:00433138 008 74 27 jz short loc_433161 ;~ .text:00433129
.text:0043313A 008 89 47 10 mov [edi+10h], eax ;~ .text:00433129
.text:0043313D 008 89 47 14 mov [edi+14h], eax ;~ .text:00433129 00C 5E pop esi
.text:00433140 008 4A dec edx ;~ .text:0043312A 008 5F pop edi
.text:00433141 008 74 1E jz short loc_433161 ;~ .text:0043312B 004 5D pop ebp
.text:00433143 008 89 47 18 mov [edi+18h], eax ;~ .text:0043312C 000 C3 retn
.text:00433146 008 89 47 1C mov [edi+1Ch], eax ; .text:0043312C _memset endp
.text:00433149 008 4A dec edx
.text:0043314A 008 74 15 jz short loc_433161
.text:0043314C 008 89 47 20 mov [edi+20h], eax
.text:0043314F 008 89 47 24 mov [edi+24h], eax
.text:00433152 008 4A dec edx
.text:00433153 008 74 0C jz short loc_433161
.text:00433155 008 89 47 28 mov [edi+28h], eax
.text:00433158 008 89 47 2C mov [edi+2Ch], eax
.text:0043315B 008 8D 7F 30 lea edi, [edi+30h]
.text:0043315E 008 4A dec edx
.text:0043315F 008 75 C8 jnz short loc_433129
.text:00433161
.text:00433161 loc_433161:
.text:00433161 008 89 01 mov [ecx], eax
.text:00433163 008 89 41 FC mov [ecx-4], eax
.text:00433166 008 8B 45 08 mov eax, [ebp+s]
.text:00433169 008 5F pop edi
.text:0043316A 004 5D pop ebp
.text:0043316B 000 C3 retn
.text:0043316C
.text:0043316C loc_43316C:
.text:0043316C 008 89 01 mov [ecx], eax
.text:0043316E 008 8B 45 08 mov eax, [ebp+s]
.text:00433171 008 5F pop edi
.text:00433172 004 5D pop ebp
.text:00433173 000 C3 retn
.text:00433174
.text:00433174 loc_433174:
.text:00433174 008 83 E2 03 and edx, 3
.text:00433177 008 74 0B jz short loc_433184
.text:00433179 008 88 07 mov [edi], al
.text:0043317B 008 FE CA dec dl
.text:0043317D 008 74 05 jz short loc_433184
.text:0043317F 008 66 89 44 17 FF mov [edi+edx-1], ax
.text:00433184
.text:00433184 loc_433184:
.text:00433184 008 8B 45 08 mov eax, [ebp+s]
.text:00433187 008 5F pop edi
.text:00433188 004 5D pop ebp
.text:00433189 000 C3 retn
.text:00433189 _memset endp