For my command line interfaces, it is often useful to have some ASCII art at the beginning, but they often contain a lot of backslashes.
eg:
System.out.println(" _____ _______ _____ _ __ "); System.out.println(" / ____|__ __|/\ / ____| |/ / "); System.out.println("| (___ | | / \ | | | ' / "); System.out.println(" \___ \ | | / /\ \| | | < "); System.out.println(" ____) | | |/ ____ \ |____| . \ "); System.out.println("|_____/ |_/_/ \_\_____|_|\_\ ");
But since each "\" must be "\\", it often looks very ugly in the code, and it is very difficult to find / fix a bug in the "font". Is there a way to tell Java NOT to use escape sequences?
trichner
source share