Color text output

Hi,
how can I give colored text output to a screen???
Tnx!!
Romisr

From that link I gave you, it looks like Solaris directly supports escape sequences which allow color. Some Windows enviroments support ansi.sys which will handle escape sequences and allow color. If you do a little searching, you can probably find something in JNI which will allow you to do this.
So the answer is...
is it possible? Yes
Is it easy and platform independent? No

Similar Messages

  • Setting text output color

    Is there a way to change the color of text output through System.out.println()? I want to have some text be shown in bright white while the rest of the output is in its normal attribute. I considered using some kind of ANSI opcodes but that is not portable to other platforms!

    No.

  • Function to color Text in Console Program?

    Does anybody knows of a function to color Text in Console Program.
    Example textbackcolor(2);//c++
    system.out.println("Heres is a color text");
    And how do you clear the console window in java in c++
    it is clrscr().

    Java is not designed for producing fancy output at the console. If you want good-looking output you should consider using a graphical interface, like AWT or Swing.

  • Acrobat DC: Ink Manager no longer works, as well as Convert Colors to Output intent?

    I often have to flatten CMYK+spot PDFs to CMYK only. I normally open the file, click the ink manager, check "Convert all spots to process" and click OK. That takes care of it.
    In the latest update, that no longer seems to do anything at all. If I preflight the file after following the old process, the file still shows spot color errors. In order to convert the spot colors I now have to:
    1.) Open the file
    2.) Open the convert dialog
    3.) Click Ink manager in that dialog,
    4.) Check "Convert all spots to process"
    5.) Click OK in the Convert Colors dialog.
    I realize that isn't a lot of work, but over a lot of files it adds up. Plus it should just work as it used to.
    Finally, prior to the last two versions of Acrobat, I was able to open the convert colors dialog, check off "Covert Colors to Output Intent" and click OK to convert all spot colors in a file to CMYK. That option appears to be perpetually grayed out.

    Hey SeanL_EPS,
    Thank you so much for your valuable feedback. I really appreciate that.
    Using Acrobat DC, what happens if you simply type 'Ink Manager' in Search Tools text box on the right hand side and check 'Convert all Spots to Process'.
    Also, the option to select an 'Output Intent' from Convert Colors requires the PDF document to already have an Output Intent explicitly set.
    You might need to first run the Preflight tool which will explicitly set the Output Intent.
    You can also refer the following KB file link from here:
    Refer: Acrobat Help | Color conversion and ink management (Acrobat Pro DC)
    Let me know if you have further queries.
    Regards,
    Anubha

  • Creating a text output using XML Publisher

    Hi All,
    Recently i created a  report for my client using XMl Publisher. The Data Definition was XML and the template type was RTF and i got the output in a PDF format. All was going smoothly until the client decided at the last moment that they wanted to print this in a dot matrix printer!
    I've read some articles on XSL- Text layout templates. But i can't get my head around it (I'm Functio-Technical as opposed to Techno-Functional )
    How do i convert my RTF template to give me a text output?
    Miranga

    From what I know, you will have to create another template based on "XSL" layout or eText layout (both of them require different coding methods). The RTF can not create text outputs even in 11g. This is based on my experience so far. You can create RTF output (available by default) based on the current layout that you use for PDF and see if it can be printed in a dot matrix printer though.

  • How to set two colored text in one textarea

    hello friends,
    i am busy preparing chat frame which shows messages in textarea, it shows two things, one the name of chatter , the other is the message, i want the two things of different color, you can change the text color of textarea by setForeground(), but what if i want different colored text in same textarea, can anybody help me???

    I don't know if this will help u...try make sense of it :
    DefaultStyledDocument doc = new DefaultStyledDocument();
    JTextPane tp = new JTextPane(doc);
    tp.setFont (new java.awt.Font ("Arial", 1, 12));
    JScrollPane lscroller = new JScrollPane(tp);
    lscroller.setForeground (new java.awt.Color (102, 102, 153));
    lscroller.setPreferredSize (new java.awt.Dimension(496, 273));
    lscroller.setVerticalScrollBarPolicy(
    JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
    jPanel2.add ( lscroller );
    prepareAllStyles();
    void prepareAllStyles()
    aset = new SimpleAttributeSet();
    //set bold and red
    StyleConstants.setForeground(aset,Color.black);
    StyleConstants.setBold(aset,true);
    ht.put(BOLDRED,aset);
    aset = new SimpleAttributeSet();
    //set italic and green
    StyleConstants.setForeground(aset,Color.red);
    StyleConstants.setBold(aset,true);
    ht.put(ITALICGREEN,aset);
    AttributeSet current = (AttributeSet)ht.get(BOLDRED);
    doc.insertString(doc.getLength(),displaymessage + "\n",current);
    tp.setCaretPosition( doc.getLength() );

  • Different color text in text area???????

    hi,
    i am working on applet in which i want to show different color text in text area????????
    could any one help me

    I'm not sure it replies, we have developed an
    editorkit for the JEditorPane for colorizing a
    text with a property file describing a grammar. We
    provide in the packaging a trivial sample
    for coloring a java syntax in an applet.
    http://www.japisoft.com/syntaxcolor
    And of course it also requires that you buy it, and a.brillant forgot to mention that a.brillant has a financial interest in this product.

  • Open Text output of a Report in Excel  - Bad format

    Hi All,
    We have a report in Oracle Apps 11i(11.5.10) with Text as output format. We would like to open the file in Excel format.
    We have done the recommended setups from the metalink note ID 316752.1.
    Output is generated in Excel, but the format is not proper. Column level data is not displayed on Cell wise in the Excel, instead all the output is
    dispalyed in single column in the Excel.
    Any pointers on how to format the output to align each column in the output to the individual cell in the Excel.
    Or else.. how to generate the output to Excel file?
    Regards,
    Ram

    user504044 wrote:
    Helios,
    Kind regards for the reply.
    I have surfed all the notes. My problem is.. I can open the text output in Excel. But the format is bad.
    Output is nor properly alinged to the cells in the Excel.
    And being the report is .RDF, any way we can do on the format?Hi Ram,
    1. Are you using XML publisher to get the excel output?
    2. If yes did you set the layout to excel when you run the concurrent request on the SRS screen?
    Thanks
    Shailendra
    >
    Regards,
    Ram

  • My HP Color LaserJet CP1215 has colored text quality problems

    My printer was working fine, but in the last month, I have been unable to correct a printing issue, which involves colored text that double prints or is blurry, it looks like it has a shadow mostly any color has a red shadow.  I have replaced all the cartridges, checked to make sure the tape was pulled off all and performed a cleaning, and all tests I could find or had access to.  I am beyond frustrated and am ready to throw it out the window.  Does anyone have any solutions?

    Don't quit keep with it, I almost quit because I was getting mad.  They kept harping on changing paper, changing paper.  My paper had sat in it for some time in a room where temperature changes was up and down.  The paper could have dried out to much or may have gotten moisture in it from the temperature changes.  I know it sounds crazy but change the paper with fresh paper along with calibrating it 3 or 4 times and see if you get different results.

  • HoW to ChaNGE the text in the mobile application to be in MulTi-CoLoR text

    _*  Do anyone can tell me how to change the text in the mobile application to be in multi-color text, to make it more interesting and increase readability?
    Is it using the Graphic's paint() method? or any better suggestion?
    Please give the short example if can?
    Please help... "_"
    Hearing from u all soon...@_@
    thanks....

    Go into outline view. If you can see the outlines of the letterforms, you can't just change the text. If the letterforms are solid black, take the type tool, select the text and type yours.
    Anyway you can just select the letters, take the type tool and type new text.
    Working with the type tool is a basic. Please see the manual for details

  • How to send images and other colored text in email body

    Hi
    We are using SAP CRM 4.0 and we would like to send email to our customers using actions configured for activity. Our objective is to send Marketing Emails containing <u>Images and Color texts</u> in the BODY OF THE email and not as a PDF attachment.
    The only relevant provision we could see in SCOT is either Text or PDF. On using text , we are loosing all images and color. The PDF option works , but the email generated is a blank email with PDF document as attachment.
    We want the matter to be inserted in the body of the email and not as attachment.
    Please do let us know if any one has faced similar situation and is there a resolution.
    Thanks and Advance.
    Regards
    Sachi

    Are you pasting in the HTML code?
    You can't use the formats in the CRM editor to set bold text, etc.  You have to use the HTML code and have set the Form up as Internet mail
    http://help.sap.com/saphelp_crm40sr1/helpdata/en/82/dbfd38ccd23942e10000000a114084/content.htm
    Here's the first screen setting for my test email:
    Form          Y_TRADE_SHOW_INVITATION        / Trade Show Invitation (Test)
                                                                                    Form Usage              1 Internet Mail (SMTP)                        
        Text Type               1 HTML                                        
        IBU Scenario                                                          
        Customer Scenario                                                                               
    Page Format             DINA4         Status    Created                                                                               
    Characters Per Inch     10.00                                         
        Lines Per Inch          6.00                                          
        Style                   SYSTEM SAP Smart Forms Default                                                                               
    Created By         MANECITO            Changed By         MANECITO   
         Date               01/16/2007          Date               05/22/2007 
         Time               09:49:12            Time               18:01:51   
    then, your email has to have the HTML tags
    A bare minimum is your email has to have the <HTML> tag at the top, but it's advisable to be sure you have a more complete setup like this:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    .style1 {
         font-size: x-large;
         font-family: Verdana, Arial, Helvetica, sans-serif;
         font-weight: bold;
    .style2 {
         font-family: Verdana, Arial, Helvetica, sans-serif;
         font-weight: bold;
    .style5 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; }
    -->
    </style>
    </head>
    <body>
    ENTER YOUR HTML MESSAGE HERE
    </body>
    </html>

  • Download colored ALV output in to EXCEL sheet

    Hi ,
    I want to download colored ALV output to Excel sheet with color.
    one of the field in ALV is with 4 colors depending on condition.
    i am unable to download the color using download option(that field is comming with out color).
    Please help me by providing the solution.
    Thanks in advance.
    Regards
    sarath

    Hi Srini,
    thanks for the reply.
    i am using standard download function only.
    if i use download->local file->HTML Format only the font is appearing in colors.in case of spread sheet no color comming.
    but my requirement is to download into excel and  background also with color(green...) font in black like that.
    (exactly appearing in the ALV)
    Thanks
    sarath

  • 'Format Payment Instructions with Text Output' program ending in error

    Hi All,
    'Format Payment Instructions with Text Output' program of the payment cycle is completing in to error.
    error is:
    length of the output - baos::4914
    After formatting, periodicSeq is null or empty.{}
    length of the output - baos::4914
    Exit: iby.scheduler.FDFormatProgramUtils.doExtractAndFormatCommon()
    Saving format output.
    Enter: iby.scheduler.FDExtractAndFormatting.queryFileSysAttributes
    Querying file system output attributes
    ppDir: null
    ppExt: null
    ppPre: null
    File system output settings that override the concurrent program default: {}
    Exit: iby.scheduler.FDExtractAndFormatting.queryFileSysAttributes
    Enter: iby.scheduler.FDFormatProgramUtils.saveToFileSystem()
    Concurrent request output file name: /NGFQ2/oraapps/NGFQ2/inst/apps/NGFQ2_dngfdb25/logs/appl/conc/out/o19301342.out
    Opened file in append mode: /NGFQ2/oraapps/NGFQ2/inst/apps/NGFQ2_dngfdb25/logs/appl/conc/out/o19301342.out
    Exit: iby.scheduler.FDFormatProgramUtils.saveToFileSystem()
    Enter: iby.scheduler.FDExtractAndFormatting.saveFormatOutput()
    Nov 25, 2009 7:59:16 PM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
    INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = oracle.jbo.ApplicationModuleCreateException: JBO-25222: Unable to create application module.;
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:896)
    at oracle.apps.fnd.framework.OAApplicationModuleFactory.createRootOAApplicationModuleInternal(OAApplicationModuleFactory.java:476)
    at oracle.apps.fnd.framework.OAApplicationModuleFactory.createRootOAApplicationModule(OAApplicationModuleFactory.java:608)
    at oracle.apps.iby.util.OAAttachmentServerUtilsWrapper.<init>(OAAttachmentServerUtilsWrapper.java:35)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.saveFormatOutput(FDExtractAndFormatting.java:450)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.doExtractAndFormat(FDExtractAndFormatting.java:421)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.runMainLogic(FDExtractAndFormatting.java:251)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.runProgram(FDExtractAndFormatting.java:141)
    at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    ## Detail 0 ##
    oracle.adf.mds.exception.MDSRuntimeException: Unable to load metamodel definition because the mmd file file:/NGFQ2/oraapps/NGFQ2/inst/apps/NGFQ2_dngfdb25/logs/appl/conc/log/null/jrad/JRADElementList.xml is invalid.
    /NGFQ2/oraapps/NGFQ2/inst/apps/NGFQ2_dngfdb25/logs/appl/conc/log/null/jrad/JRADElementList.xml (No such file or directory)
    at oracle.adf.mds.internal.ElementData.<init>(ElementData.java:113)
    at oracle.adf.mds.internal.MElementImpl.<init>(MElementImpl.java:480)
    at oracle.adf.mds.internal.jbo.JBODefManagerHelper.getSubstitution(JBODefManagerHelper.java:240)
    at oracle.adf.mds.internal.jbo.JBODefManagerHelper.getSubstitution(JBODefManagerHelper.java:178)
    at oracle.adf.mds.internal.jbo.JBODefManagerHelper.listBindings(JBODefManagerHelper.java:124)
    at oracle.adf.mds.jbo.JBODefManager.listBindings(JBODefManager.java:100)
    at javax.naming.InitialContext.listBindings(InitialContext.java:406)
    at oracle.jbo.mom.DefinitionManager.findSubstituteName(DefinitionManager.java:451)
    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:411)
    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:358)
    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:340)
    at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:700)
    at oracle.jbo.server.ApplicationModuleDefImpl.findDefObject(ApplicationModuleDefImpl.java:232)
    at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:401)
    at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:91)
    at oracle.apps.fnd.framework.OAApplicationModuleFactory.createRootOAApplicationModuleInternal(OAApplicationModuleFactory.java:428)
    at oracle.apps.fnd.framework.OAApplicationModuleFactory.createRootOAApplicationModule(OAApplicationModuleFactory.java:608)
    at oracle.apps.iby.util.OAAttachmentServerUtilsWrapper.<init>(OAAttachmentServerUtilsWrapper.java:35)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.saveFormatOutput(FDExtractAndFormatting.java:450)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.doExtractAndFormat(FDExtractAndFormatting.java:421)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.runMainLogic(FDExtractAndFormatting.java:251)
    at oracle.apps.iby.scheduler.FDExtractAndFormatting.runProgram(FDExtractAndFormatting.java:141)
    at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    An error occurred. Roll back any changes.
    Done roll back changes.
    Request completed in error.
    Has anybody came across this error. If yes, what needs to be done to resolve this error?
    Thanks in advance for your help.
    Thanks Again,
    Sachin

    Hi,
    oracle.adf.mds.exception.MDSRuntimeException: Unable to load metamodel definition because the mmd file file:/NGFQ2/oraapps/NGFQ2/inst/apps/NGFQ2_dngfdb25/logs/appl/conc/log/null/jrad/JRADElementList.xml is invalid. Please see if (Note: 556812.1 - R12 Error When Running The Payment Format: JRADElementList.xml is Invalid) is applicable.
    Regards,
    Hussein

  • [SOLVED] Some colored text in urxvt displaying oddly

    Some colored text does not display correctly in the terminal - but not all. Here's a screenshot:
    http://i.imgur.com/xrzCR16l.png
    As you can see, the directory names displayed in blue and the executable files displayed in green (not sure why .vimrc is executable..) are all funky looking. However, my username and the regular file names are all displaying correctly. Also all the colored text in VIm in the terminal looks fine as well:
    I've read through the Font Config Wiki - Applications Without Fontconfig Support but none of the configs suggested:
    Xft.autohint: 0
    Xft.lcdfilter: lcddefault
    Xft.hintstyle: hintfull
    Xft.hinting: 1
    Xft.antialias: 1
    Xft.rgba: rgb
    in my .Xresources file change this behavior. Here is my full .Xresources file without the above settings, its not very long:
    ! special
    *.foreground: #e9ebee
    !#93a1a1
    *.background: #002b36
    *.cursorColor: #93a1a1
    ! black
    *.color0: #002b36
    *.color8: #657b83
    ! red
    *.color1: #dc322f
    *.color9: #dc322f
    ! green
    *.color2: #859900
    *.color10: #859900
    ! yellow
    *.color3: #b58900
    *.color11: #b58900
    ! blue
    *.color4: #268bd2
    *.color12: #268bd2
    ! magenta
    *.color5: #6c71c4
    *.color13: #6c71c4
    ! cyan
    *.color6: #2aa198
    *.color14: #2aa198
    ! white
    *.color7: #93a1a1
    *.color15: #fdf6e3
    URxvt*.transparent: true
    URxvt.shading: 100
    !URxvt.font: xft:DejaVu Sans Mono:pixelsize==14:antialias=false
    urxvt*font: xft:DejaVu Sans Mono:style=Book:antialias=false:size=9, \
    xft:WenQuanYi Bitmap Song:size=8, \
    xft:FreeSerif:style=Regular, \
    xft:unifont:style=Medium:antialias=false
    urxvt.scrollBar: false
    I would have thought that it has something to do with the colors being defined incorrectly, but the ".vimrc" file is using the same color as my username, and my username is behaving correctly. I'm at a loss and attempting to google "Font Problems in urxvt" gets topics where the the font is incorrect throughout the whole terminal, not just in particular places. Anyone know how to correct this?
    -- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --
    Last edited by woodape (2015-04-16 18:36:08)

    Try defining your bold font explicitly:
    URxvt.boldFont: blah

  • Generating TEXT output from RTF template/reports

    Hi ,
    We have been working with XML Publisher for a long time now.. and we have come across some requirements such as
    1. Page break in TXT report output
    2. Page Headers after every 'X' lines in TEXT output.
    This was easily achieved with RTF template and PDF/HTML/RTF output, but not with TEXT output in eTEXT template.
    So we started looking into two approaches
    1. Generate TXT from PDF/RTF/HTML output(generated from RTF template), though it will addon to the time, but we are looking for this approach. We are looking for some JAVA api's which can help us to extract text from PDF/HTML/RTF while preserving the format.
    2. Pass the TXT generated by eTEXT template to our custom util , which will split the report in diff. pages.This will get complex as we recieve more and more reports.
    We have also tried hacking the RTF parser used in XML P so as to get a TXT output or using XSL-FO objects in eTEXT parser, but we could not get anything of our help.
    Does anyone have any pointers in this.
    regards
    Gaurav

    You can burst with eText and I have done it
    successfully.
    I don't believe pagebreaks are an option in eText and
    I don't think it makes sense either since your
    generating a flat-file and not a customer or internal
    facing document. Does that make sense?
    Also, if you would like you can use the
    BIPublisherIDE, this code can be converted pretty
    easily to handle jcp. There is a an oa framework
    version I have developed but I haven't posted on my
    blog yet. I plan on adding a bolt on for java
    concurrent programs soon. it's really pretty simple
    just haven't had the time.
    http://bipublisher.blogspot.com/2008/03/bi-publisher-b
    ipublisheride.html
    Ike Wiggins
    http://bipublisher.blogspot.com
    Thanks Ike for your reply.
    I agree with your points on TXT files, but in our case,the reports are generated in TXT format for the customer so we are looking for the above mentioned features.
    I have gone through BIP IDE and its a wonderful small utility which eases the task of BIP development.
    As I mentioned in my original post that we are currently processing the generated TXT report using a custom util. in JAVA to get the desired output in TXT again.
    I assume thats not what a JCP would do,so I am looking to explore that too.
    As I understand the process for report generation is
    1. Generate XSL from eTEXT template.
    2. Get the XML data from DB using XDO
    3. Apply XSL on XML to get the required template.
    If we are looking to achieve some customizations then we need to have the XSL generated with those customizations.
    In this case, where do we plug in the JCP to alter XSL or am I missing something.
    regards
    Gaurav

Maybe you are looking for