RE: Re: Re: Re: How to change text colour in the console
FYI ANSI_RESET has no effect. System.out.println(ANSI_RED + "This text should be red!" + ANSI_RESET); System.out.println("Hello World!”); Hello World! Is white with / without ANSI_RESET.
Re: Re: Re: How to change text colour in the console
Works perfect! Thank you. Peter On Feb 25, 2023 at 9:57:31 AM, Neil C Smith wrote: > On Sat, 25 Feb 2023 at 14:47, Peter Ream wrote: > > I can’t get this to work. Probably user error, although I have used NB for > about 5 years, I’m not too handy into changing a lot of the parameters. > Here is my simple test copied from Bob T: > > > No, just make sure you're using NetBeans 17, or change the exec plugin > version to 3.1.0. I'd missed the relevance of the update in NB17 > here, sorry, https://github.com/apache/netbeans/pull/5111 > > Neil >
Re: Re: Re: How to change text colour in the console
On Sat, 25 Feb 2023 at 14:47, Peter Ream wrote: > I can’t get this to work. Probably user error, although I have used NB for > about 5 years, I’m not too handy into changing a lot of the parameters. Here > is my simple test copied from Bob T: No, just make sure you're using NetBeans 17, or change the exec plugin version to 3.1.0. I'd missed the relevance of the update in NB17 here, sorry, https://github.com/apache/netbeans/pull/5111 Neil - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Re: How to change text colour in the console
On Thu, 23 Feb 2023 at 19:46, Peter Ream wrote: > > "Using Maven, it works if passing -DinheritIo=true." > > Out of curiosity, can you set this within NB? Yes, otherwise it would have been impossible to test! But it would help if I'd written the right thing :-) Updated the issue. It's -Dexec.inheritIo=true you want. Easiest way to test is after using the run or run file goal, click the yellow double-arrow, second down in the output window, which allows re-running the goal with altered parameters. Add exec.inheritIo=true to the Properties section (just type on a new line - don't need the Add button, although you can find it using Add > Plugin Expression Property). Then OK to execute. If this works for you, you can change the properties for the relevant tasks permanently in the Project Properties / Actions section. Best wishes, Neil - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
RE: Re: How to change text colour in the console
"Using Maven, it works if passing -DinheritIo=true." Out of curiosity, can you set this within NB? On 2023/02/23 14:17:52 Neil C Smith wrote: On Thu, 23 Feb 2023 at 13:47, Neil C Smith wrote: > > On Thu, 23 Feb 2023 at 12:57, Bob T wrote: > > > > Thank you Neil. It works if I run via the Netbeans terminal as you suggest. I've created a feature request for consideration by the team: https://github.com/apache/netbeans/issues/5552 > > Great! I've added the contribution welcome label for now. > > It could be a good addition, although there are other reasons for > wanting to run projects in a full terminal as well eg. Console, JLine, > etc. Incidentally, just had a quick look and noticed that there is some support for ANSI colours in the output window - your problem is build system dependent. Added a comment to the issue - can track it there. Best wishes, Neil - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists Thank you. Peter Ream