Re: color for print in output pane

"'BugFix@AutoIt' via scite-interest" <[email protected]>
Newsgroups gmane.editors.scite.general
Message-ID <[email protected]>
Thank you Neil.

It works for me on Windows with the foreground color setting (default and 
bold). But all colors have this ugly background color. I have not found a 
way to change this.

Here my test script and result:

fg = {
red='\27[31m',
redbold='\27[31;1m',
green='\27[32m',
greenbold='\27[32;1m',
yellow='\27[33m',
yellowbold='\27[33;1m',
blue='\27[34m',
bluebold='\27[34;1m',
pink='\27[35m',
pinkbold='\27[35;1m',
cyan='\27[36m',
cyanbold='\27[36;1m',
white='\27[37m',
whitebold='\27[37;1m',
def='\27[0m'}

print(fg.red..'List '..fg.cyan..'of 
'..fg.bluebold..'colors'..fg.pinkbold..'!\n'..fg.def)

for color, seq in pairs (fg) do
    if tostring(color) ~= 'def' then print(seq..tostring(color)..fg.def) end
end

[image: esc_seq_color_SciTE.png]

Neil Hodgson schrieb am Sonntag, 15. Mai 2022 um 23:46:47 UTC+2:

> BugFix@AutoIt:
>
> > I've tried it with SciTE v 5.2.0.
> > 
> > lexer.errorlist.escape.sequences=1
> > 
> > I have run the Lua code from the previous post - but it shows no effect. 
> Only numbers are displayed.
>
> Just tried on Mac and Windows and shows for me.
> It should show ‘1’ bold and ’31’ to ’37’ with colours plus a pinkish 
> background.
> Try reverting any customized settings - download a new copy and clear your 
> user settings.
>
> Another approach to the original issue is to mimic another style of error 
> message. gcc’s is popular:
> path:lineNumber:message
>
> like
> bad.py:23:bad stuff
>
> or Microsoft’s (“error” is literal):
> path(line): error text
> x.bat(2): error Not available
>
> The path and line number don’t have to be real
> x:0:failed
>
> Neil
>
>

-- 
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/scite-interest/68c00d05-6d3a-46cc-8623-8d1db76e6295n%40googlegroups.com.
esc_seq_color_SciTE.png (image/png, 22.2 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.