Plain text menu

Hi!
How can I create a text menu in an application? I want to use the console for my programm. The menu should look like that:
--> A
B
C
The arrow should be moveable (with up/down) and the entry should be selectable (with enter).
I have totaly no idea how to realise that.
thanks for help,
ManuP

I think that is not very comfortabel and
userfriendly.A console-based app is almost not comfortable and user-friendly by definition. If you want an economic interface, use a GUI.
In standard Java, you can't take console input before the reutn key wasn't hit. So you canot use the arrow keys for navigation.
You're also not able to modify existing console output - the only thing you could possibly do is delete characters from a line that's not yet "terminated" by a newline by sending the backspace character '\b'.

Similar Messages

  • Plain text ON but anything pasted in is RTF

    Hello,
    I often need to quote bits of text from a heavily-formatted Word doc in emails. Every time I paste a bit of text into an email, it goes in with all its formatting intact, which I don't want. I want it to be plain text like the rest of the email message.
    In Mail's Prefs I have set my composing preference to be Plain Text, but this doesn't make any difference.
    Also, all of my signatures appear in some sort of style rather than as plain text, even though I always set them to plain text when I create them.
    Seems Mail thinks it knows better than I do how to format my emails. I hate it when applications take over like that.
    Does anyone know the secret to turning off this "feature" in Mail?
    Thanks
    iMac Intel Core 2 Duo   Mac OS X (10.4.10)  

    Now that you ask, I find the situation is even stranger than I thought.
    New compose window, Format menu says Make Rich Text
    Copy formatted text from Word, paste in (Command-V). It appears as plain text, menu stays the same.
    Paste in same text using Shift-Command-V to give a quote level, and it comes in with all formatting intact, but menu stays the same.
    Paste it in (Coammnd-V) and use the Format menu to increase its quote level and it stays plain text.
    Looks like I'll have to do the two-step to get what I want. Or switch to another app I suppose. But I like Mail.
    Rob

  • How do I make multiple plain text links active (clickable) at once?

    I'm running Number 3.5.2 and I deal with a lot of documents that have long lists of URLs. Anytime I open a xls or numbers doc that already has the URLs pasted in, they're listed in plain text and not clickable. Is there a way that I can select all of them and make them active links, or at least do it in some reasonably scalable fashion?
    I've found how to use the "Add link" or even the "Open URL" options using the right click menu. And I know about changing the character style to "Link" to make it active. But these options are only available if I click and highlight the specific content in a single cell. It doesn't allow me to select multiple cells and make the change.
    I've also tried copying the URLs out of Numbers and into another program (text edit, email) but not too long ago it stopped letting me paste back in active links.
    Any help would be much appreciated!

    Hi jroos,
    The HYPERLINK function in another column.
    From the Function Browser:
    The HYPERLINK function creates a clickable link that opens a webpage or new email message.
    HYPERLINK(url, link-text)
    url: A standard universal resource locator. url is a string value that must contain a properly formatted universal resource locator string.
    link-text: An optional string value that specifies the text that appears as a clickable link in the cell. If link-text is omitted, url is used as link-text.
    Formula in C2 (and Fill Down)
    =HYPERLINK(B2)
    Then select Column C
    Copy
    Menu > Edit > Paste Formula Results
    Delete Column B
    Regards,
    Ian.

  • How to get plain text out of a multi line text field in Client Side Object Model?

    I am trying to read plain text from a MultiLineTextField in a List. This is how my code looks so far:
    //Get connection
    ClientContext context = new ClientContext("URL");
    Web site = context.Web;
    context.Load(site);
    context.ExecuteQuery();
    //Get list collection
    ListCollection lists = context.Web.Lists;
    context.Load(lists);
    context.ExecuteQuery();
    //Get specific list
    List menu = lists.GetByTitle("menu");
    CamlQuery camlQuery = new CamlQuery();
    camlQuery.ViewXML = "<View/>";
    ListItemCollection dishes = menu.GetItems(camlQuery);
    context.Load(menu);
    context.Load(dishes);
    context.ExecuteQuery();
    //Iterate through all dishes
    foreach(ListItem dish in dishes)
    Console.WriteLine("Dish: {0}:", dish.FieldValues["Name"]);
    Console.WriteLine("Price: {0}:", dish.FieldValues["Price"]);
    //Here I get my problem
    Console.WriteLine("Ingredients: {0}:", dish.FieldValues["Ingredients"]);
    In the last line where I try to read the ingredients, I am reading from a MultiLineTextField which is set to RichText. It is also supposed to stay in RichText format, as hyperlinks are supposed to be added there. The problem is that the output not only contains
    div-tags but also some weird question marks I never added to the field. I am trying to solve this issue for a couple of days now but it seems that there are only two possible solutions.
    Set the field from RichText to PlainText, which is not an option in my case.
    Use Regex to remove the div-tags. Please do not suggest this option. Mainly because I do not consider this to be a clean solution for this issue. Plus, I tried it and it removes the tags but those weird question marks stay.
    There seems to be a third option I found
    here. It is also mentioned in this
    question and it seems to work. But I can not get it to work for me. This is how it looks:
    string myString = item.FieldMultiLineText[Field_Name];
    So I wonder what is item supposed to be here? I suppose it is not a
    ListItem because in my case it does not offer a FieldMultiLineText-property.
    A short, informative code snippet would be great if you decide to help me with this issue.
    Thanks in advance.
    Algorithmen und Datenstrukturen in C#:
    TechNet Wiki

    Thank you for your reply. Unfortunately ListItem does not contain a definition for the Fields method.
    Algorithmen und Datenstrukturen in C#:
    TechNet Wiki
    You need to use the Microsoft.SharePoint class library and then use the sharepoint version of all the list objects you are using. See below.
    //Get connection
    ClientContext context = new ClientContext("URL");
    Web site = context.Web;
    context.Load(site);
    context.ExecuteQuery();
    //Get list collection
    SPListCollection lists = context.Web.Lists;
    context.Load(lists);
    context.ExecuteQuery();
    //Get specific list
    SPList menu = lists.GetByTitle("menu");
    CamlQuery camlQuery = new CamlQuery();
    camlQuery.ViewXML = "<View/>";
    SPListItemCollection dishes = menu.GetItems(camlQuery);
    context.Load(menu);
    context.Load(dishes);
    context.ExecuteQuery();
    //Iterate through all dishes
    foreach(SPListItem dish in dishes)
    Console.WriteLine("Dish: {0}:", dish.FieldValues["Name"]);
    Console.WriteLine("Price: {0}:", dish.FieldValues["Price"]);
    //Here I get my problem
    SPFieldMultiLineText multilineField = dish.Fields.GetField("Ingredients") as SPFieldMultiLineText;
    string ingredients = "";
    if (multilineField != null)
    ingredients = multilineField.GetFieldValueAsText(dish["Ingredients"]);
    Console.WriteLine("Ingredients: {0}:", ingredients);}
    I hope this helps
    Alex

  • Newbie help with sample Studio app. "Plain Text Editor"

    I'm trying to make the jump from AppleScript to AppleScript Studio, and because I want to eventually write a document producing application I thought I'd start with the textbook example "Plain Text Editor" included with Xcode. I think I see how menu items are connected to "Target/Actions," and I was able to build and run it without difficulty. It's remarkable how little AppleScript had to be written to produce a rudamentary text editor. But in playing with the built application, I noticed that the Revert menu item does not work exactly as expected.
    If you create a text document, and then make some change to it, and then click the Revert menu item, you get the expected little dialog asking if you want to revert to the most recently saved version, but if you then click the Revert button, the text displayed in the text view object does not revert to the original. However, something is happening, because whatever code is behind the Save, Close, and Quit menu items does seem to be "aware" that the Revert item has been invoked: because if you click one of these after Revert, the "do you want to save changes?" warning doesn't appear, just as one might expect.
    The Revert menu item seems to be connected to a "Target/Action" called "revertDocumentToSaved:" which sounds perfectly reasonable. But does the fact that Revert doesn't cause the displayed editing text to revert mean that (a) there is a bug in the code behind this Target/Action, or (b) that the writer of this textbook example just didn't bother to do everything needed for the Revert item to work in an intuitive manner?
    Whichever the answer, what would I do to make it work properely?
    It seems like there must be some sort of connection between the text view object in the editing window, and the Close, Save, Quit suite of menu items, because the behavior of these is dependant on whether or not there are unsaved changes in the text view object. But looking through the Inspector for this object, I don't see any, neither AppleScripts, nor Outlets, nor Target/Actions. Where and for what should I be looking?
    Dual 1.2 GHz   Mac OS X (10.4.8)  
    Dual 1.2 GHz   Mac OS X (10.4.8)  

    I think -- and I'm sure someone will correct me if I'm wrong -- that this is a place where AppleScript Studio's implementation just isn't done right. Either they intended to add a "revert" handler somewhere and forgot, or else they meant to have it send an existing message and didn't.
    I haven't done any document-based applications -- heck, I've only dabbled slightly in AppleScript Studio -- so there may be a "deeper" answer to this, but you might consider just hooking the menu item up to send its "choose menu item" handler to your document script, and have it react accordingly.

  • IPhoto sends emails in Rich format even if the default format is Plain Text

    Detailed Summary (wouldn't fit in the Topic Subject):
    iPhoto will always send emails in Rich Text format even if Mail application is set to send all emails in Plain Text format. In other words, emails initiated from iPhoto ignore the selected Message Format setting in the Mail application.
    Description:
    It is a better practice to email photos in the Plain Text format instead of Rich Text format so recipients using different email clients can easily download attached pictures as regular attached files.
    The workaround is to change the email format to Plain Text before sending it. This wouldn't be such a problem if you could make this a permanent setting however this is not possible. The Mail application has a specific setting for this but iPhoto simply ignores it. This is the issue I am raising here.
    How to reproduce the problem:
    1. Open the Mail application (Assuming you already have an email account configured)
    2. Go to Preferences, Composing tab
    3. Change Message Format to "Plain Text"
    4. Optional step to verify that the Plain Text is now the default format: Start a new email. Click on menu Format and you'll see "Make Rich Text" available, which means the current email is in fact in Text Format. Close this email.
    5. Open iPhoto
    6. Select one or more photos and click on the "Email" icon on the lower right hand side
    7. A details popup will open, click on "Compose Message"
    8. The Mail application will open as well as a New Email window with the Subject field filled out and the selected photos in the email body
    9. Click on the menu Format
    Expected: Th last option should be "Make Rich Text" indicating that the current email is in Plain Text format as determined by the Mail settings (steps 1-5 above)
    Actual: Last option is "Make Plain Text" which means the current email is fact in the Rich Text format which does not match the Mail application settings.
    Can we at least get an acknowledgement from Apple that this is a known issue? Also, is there a fix for this? It is not an acceptable solution to tell users to manually select Plain Text for every email. I am tired of asking people to resend emails that way. That is a workaround, not a solution.
    Test details:
    - Mail Version 4.4 (1082)
    - iPhoto Version 8.1.2 (424)
    - OSX Version 10.6.5

    iPhoto menu -> Provide iPhoto Feedback to report a bug.
    Can we at least get an acknowledgement from Apple that this is a known issue?
    Need to ask Apple that one.
    Regards
    TD

  • How can I export a mailbox of messages as plain text?

    I have a mailbox filled with correspondence from a colleague. About 150 messages in all, some with attachments. I'd like to print out all the messages in that folder but not one at a time. I was hoping to be able to save them all as plain text and convert them to a PDF for two-sided printing. Examining individual messages in Text Wrangler, I see that they are all XML-based messages and, so, filled with XML codes. Is there any simple way to convert or export these without manipulating each individual message?
    Yes, I could print each message individually, but that's going to take a long time and waste a lot of paper.
    robert

    Select the messages. Choose File > Save As…. You'll get a pop-up menu to select Rich Text, Plain Text, or Raw Source.
    If you choose rich text or plain text, the messages will appear in TextEdit as if they run together. Select Format > Wrap to Page, and you will see each message starts a new page.

  • How to send messages in iChat in plain text? (no html)

    How to send messages in iChat in plain text? I don't need any formatting nor hiding links in achor tags.

    HI,
    In the View Menu once you have a Chat window open is the Messages item which allows you to change the style of the IM.
    However this still sends a HTML like packet for dispalyiing the info at the other end.
    This does not work to ICQ users.
    Chax, an iChat Add-on, works in iChat 5 and lower (although there are then different versions) and can strip out the HTML part for sending to ICQ users.
    However there is not yet a Lion/iChat 6 version.
    8:43 PM      Monday; December 12, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Mail Messages appear only as plain text

    Somehow my default is set to view Mail in plain text. To see a message as it was formatted, I have to select View/Message/Next Alternative. I have to do this with every message, even those I've previously opened and went through the View/Message/Next Alternative selection.
    How can I see messages as they were formatted without having to go through the menu routine each time?
    I'm using system 10.6.6.

    If you use extensions like <i>Adblock Plus</i> or <i>NoScript</i> or <i>Flashblock</i> that can block content then make sure that such extensions aren't blocking content.
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Copy & Paste plain text?

    It's really annoying sometimes when I can't copy just plain text from firefox to Pages. It always comes with its own font and size. How could I just copy plain text?

    I've added via
    +System Preferences -> Hardware -> Keyboard -> Shortcuts for other Applications+
    a new Application, Pages. Via "Menu" I've set up a new Shortcut. In this case I used "⌘V" and have overwritten the default one. Now ⌥⌂⌘V is ⌘V for me. - And that is what Strato222 want to do: He/She want to use ⌘V and paste the text as plain text.
    This works wonderful on Snow Leopard.

  • Keyboard command-b works, return to plain text via command-t doesnt work

    I am helping my Dad out here, we have figured out a couple of glitches he is having using the Word Processing thanks to Discussions.
    The last thing we cannot figure out is that he has been used to typing keyboard command-b, then a string of bold words, then command-t to go back to regular text, but it is not returning to plain text anymore, it is printing super text. he has to change it 2x via the menu bar. Time consuming and annoying because command-t used to work.
    Any advice on this one?
    Thank you.

    Is the behavior specific to one document or a few documents, or does it affect all word processing documents?
    *+It is happening to two very long documents that i tried it on, but not to a couple of shorter ones he has.+*
    Is the behavior specific to one account? Test by opening and working on an affected document using a different account. (You may need to Get Info on the file and change Ownership and Permissions to allow "Others" to "Read and Write", and you may need to create a second account on the machine.)
    *+There is only one account being used.+*
    What version of the Mac OS is your dad using?
    +*Mac OSX 10.2.8 on an iMac PowerPC G4*+
    What version of AppleWorks?
    +*AppleWorks 6.2.7 (he is 87 and understandably doesn't want to upgrade unless absolutely necessary. He is working on something relatively important, and wants to finish it up. If it were me,...*+
    Maybe a glimmer: What happens if you're typing plain text, press command-T (once), continue typing another word, press command-T again, and continue typing?
    +*In one of the offending documents, I tried that, it went from plain text to SUPERIOR text, back to plain. It seems to be toggling between plain and SUPERIOR on some of the documents (the two longest, hundreds of pages documents.*+
    **He is very happy this is getting worked out, at least things are better. I will be here tonight, then I go back home for several weeks at least, so will check back again later. If something comes up I can do it tonight, or maybe talk him through it next week. In any event, I will keep up with the post.**
    **Thanks for all the time.**

  • Bug in Mail: Plain-Text | Rich-Text-Mails

    Hi,
    just found a bug in Mail (Mac OS X 10.6.2):
    I am using a faxservice-provider, which sends my PDF-files to the transmitted fax-number.
    This stopped working a few weeks ago, the recipients of my faxe just get blank pages.
    I talked to the provider and they told me, that I was sending "Multi-Part-HTML"-mails, so their fax-software just sends the first part of the mail (some blank lines) and not the attached PDF-file.
    So I checked a few thing and found the following bug:
    Mail is set up to send mails only as "plain-text"-mails.
    But if i send an email via the print-dialog ("send PDF per Mail") Mail creates a Rich-Text-mail. This also happens when using the "send PDF via Mail button" in Adobe Reader.
    The created Mail is NOT a plain-text-mail!
    Saving a PDF-file to the desktop and dragging the file to the Mail-Icon in the dock creates a "Plain-Text-File".
    So you need to check the format of the Mail in the "Format-Menu". If you change the format at this place to "Plain-Text" everything is working fine.
    Something in this Automator-workflow-script is working wrong. This workflow just has the order to create a new Mail with the PDF as attachment, so I can't change anything their. But the error must be founded in this script/workflow.
    Sven

    And it's only a Gmail issue, not in, for example, Google Docs.

  • Plain text in email

    I have someone that sends me email from her iPad. Recently I received one that had blank space at the top (I use Outlook 2010 on PC). I looked at the message in OWA and the text was there. I found out if I start to reply to the message and change the format to plain text, then the text appears.
    I am wondering if there is a way for her to setup her ipad mail to send in plain text in the first place.
    Thanks.
    Jane

    for replies and forwards, the default is already "plain text".
    For new emails, you can each time open the overflow menu and select "Plain Text format".
    If you want a permanent configuration, you can check the options in the webmail of your email provider.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Screen View has changed to plain text and I don't know why or how to get it to return to a normal view

    My screen view has changed to a plain text yesterday and I do not understand why. I did not make any changes. I did not install any new programs. I did install to updates from Neat Works and Quick Time. Also ran PC clean up by AVG.

    -> Tap '''ALT''' key or press '''F10''' to show the Menu Bar
    -> go to View Menu -> '''Zoom''' -> click '''Reset''' -> '''Page Style''' -> select '''Basic Page Style'''
    -> go to Tools Menu -> Clear Recent History -> '''Time range to clear: select "EVERYTHING"''' -> click Details (small arrow) button -> place Checkmarks on '''Cookies, Cache, Site Preferences''' -> click '''Clear Now'''
    -> go to Tools Menu -> Options -> Security -> place Checkmarks on:
    1) Warn me when sites try to install add-ons 2) Block reported attack sites 3) Block reported web forgeries
    -> go to Tools Menu -> Options -> Advanced -> Network -> Offline Storage (Cache): click '''Clear Now''' button
    -> Click OK on Options window -> Restart Firefox
    Check and tell if its working.

  • Plain Text

    Is not the Mac (in the guise of Mac OS X Tiger) bereft of a plain-text editor? When I want to edit HTML files, I have to do it in Dreamweaver's 'code' pane - or am I missing something?
    Many thanks

    Yes. Text Edit comes with OS X.
    If you want to do plain text just choose "Make Plain Text" from the Format menu.

Maybe you are looking for