How do i clear the  console

Hi Experts
I need to know "how do i clear the console " and
"how do position the mouse cursor in x and y coorditates in a console "
Thanks in advance

You don't. Or, it depends on the console. Depending on your point of view.
Java doesn't directly control it the same way that it controls an AWT window for example. It just sends bytes to it. If the console is capable of interpreting bytes in such a way to clear the screen, then it can.
Most consoles a person is likely to use will interpret VT100 commands. Look them up; try google. You can just output those commands and the console will do what they say, hopefully.
Sending a control-L (bye 0x0c, I think) may do it. Try that.
Or you can try the java curses library.
All this may be wrong if you mean something by "console" other than what I think you mean.

Similar Messages

  • How do I clear the screen in text mode (cls)

    How do I clear the screen in text mode (cls)
    Thanks,

    Clearing of console is an OS specific command, so
    in case of Windows you should try:
    Runtime.getRuntime().exec("cls");Though it wouldn't help, because exec() will be done as a separate
    process... :)
    Paul

  • How do we clear the GR/IR Reconciliation Report on PO

    Hi expets,
    can you please help me to solve this issue
    "How do we clear the GR/IR Reconciliation Report on PO"
    thanks in advance,
    mohammad

    > "How do we clear the GR/IR Reconciliation Report on PO"
    Use MR11 Trxn Code GR/IR Clearance

  • How can i clear the usernames and passwords history from all login websites?

    how can i clear the usernames and passwords in the log in history of the websites? example when i want to login to my facebook i always type first letter of my e-mail and it comes with the passwords because before i put remember my password, and in other websites so, i just need to delete all this login history and it's not working from the clear everything !!! :S any idea please !! thanks in advance :)

    See:
    http://kb.mozillazine.org/Deleting_autocomplete_entries
    http://kb.mozillazine.org/Password_Manager

  • I have forgotten my password and locked my phone, how can i clear the problem

    I have forgotten my password and locked my phone, how can i clear the problem

    By coincidence, this happened to my son just last night.  You do NOT have to restore it to a new phone, but you probably want a current backup.
    Luckily, you can still sync and back it up even if it's locked, so connect it to the computer you usually sync it to. Go to the summary page. It's easiest and fastest to use a local backup, so if iCloud backup is on, turn it off and click "Backup now".  
    After it backs up, either click "Restore iPhone", or
    - hold home and the top button until the screen goes black, release the top and continue to hold the home button until iTunes says "iPhone in recovery mode detected". 
    Follow instructions to restore from backup, and then sync to restore content.  Your phone will come up in an unlocked state. If you have any stuff that was purchased directly to the iPhone (only), you'll have to re-download it. 
    Remember to turn iCloud backups back on if you use them.
    If you don't sync you iPhone to a computer then I *think* those instructions with the buttons will put it into a mode where you can restore it from the cloud (make sure it is NOT connected to a computer while you do this). Otherwise, you will have to restore it as a new phone, then go to settings, reset, then restore it from the cloud.

  • How do I clear the downloads folder?

    How do I clear the downloads folder?  I swear there used to be an option for this when I right clicked on the downloads folder that is on my bottom bar but I don't see one now.  This is making me crazy.
    Also, when I click on the bottom bar Downloads folder to display the items in the Downloads folder, I've selected it to be arranged as a fan and by the date added.  I've downloaded two copies of the same item and did this back to back because I didn't see the first download in the folder once I'd downloaded it.  I don't see the first of the two downloads unless I open the whole folder in its own window.  Shouldn't I see them both at the bottom of the list since they are the two most recent downloads?  I'd accidentally downloaded duplicate copies previously and it had displayed them in this manner.
    Please help!

    The best way to delete is just open them in finder.  Mark them all and delete.
    In the fan, you can select the sort order by right click (cntl click) the download folder and choosing "sort by" date added.
    Regards,
    Captfred

  • How do I clear the cache in Safari 8.0?

    How do I clear the cache in Safari 8.0? I am running Yosemite ios 10.10.1 on a Macbook Pro.

    Empty Caches
    1. Safari > Preference > Advanced
        Checkmark the box for "Show Develop menu in menu bar".
        "Develop" menu will appear in the Safari menu bar.
        Click Develop and select "Empty Caches" from the dropdown.
    2. Quit Safari if open.
        Option click the "Go" menu in the Finder menu bar.
        Select "Library" and then "Caches".
        Look for the folder 'com.apple.Safari"
        Right click "com.apple.Safari" and select "Move to Trash"
        Relaunch Safari.

  • I deleted all my photos and videos and then delete the deleted files but the photo app is still taking up 12 GB of space and I have no room for new stuff.  How can I clear the memory space used by my deleted videos and photos?

    I deleted all my photos and videos and then delete the deleted files but the photo app is still taking up 12 GB of space and I have no room for new stuff.  How can I clear the memory space used by my deleted videos and photos?  I don't know why the photos are still taking up space and if I will have to reset my phone to get rid of the problem.

    Hey there TowneJ,
    Welcome to Apple Support Communities.
    The article linked below provides troubleshooting tips that’ll likely resolve the issue that you’ve described, where deleted files appear to be taking up space on your iPhone 5.
    If you get a "Not enough free space" alert on your iPhone, iPad, or iPod touch - Apple Support
    So long,
    -Jason

  • I can not download movies on Apple TV, message says the disc is full. How do I clear the hard drive?

    I can not download movies to Apple TV, error message halts download and says "disc is full". How do I clear the disc/hard drive for apple tv?

    I can not download movies to Apple TV, error message halts download and says "disc is full". How do I clear the disc/hard drive for apple tv?

  • When I am on my home screen on the iPhone, swipe left to the search page. Put a letter in the search field. then scroll down. eventually you get to all your texts previously deleted or not. The are all there. How can I clear the entire text from the phone

    When I am on my home screen on the iPhone, swipe left to the search page. Put a letter in the search field. then scroll down. eventually you get to all your texts previously deleted or not. The are all there. How can I clear the entire text from the phone

    When I am on my home screen on the iPhone, swipe left to the search page. Put a letter in the search field. then scroll down. eventually you get to all your texts previously deleted or not. The are all there. How can I clear the entire text from the phone

  • How do I clear the Disk and reinstall the OS on my new Mac Mini without an Optical Drive?

    How do I clear the Disk and reinstall the OS on my new Mac Mini without an Optical Drive?

    If it's a new mini, should have Mtn Lion on it. In any case, restart into recovery mode, and follow the instructions.

  • How do I clear the cache in my MacBook Pro 10.9 Maverick

    How do I clear the cache in my MacBook Pro 10.9 Maverick operating system? Can anyone provide step-by-step instructions. I'm a big dummy when it comes to this sort of thing.

    Hey DrSteveMc,
    Thanks for the question. The following resource outlines where the cache folder is stored. Note that the Library folder is hidden by default in OS X Mavericks. To access this folder, hold down option when clicking the Go menu in Finder:
    OS X Mavericks: What is the Library folder?
    http://support.apple.com/kb/PH14330
    Mac OS X: How to troubleshoot a software issue
    http://support.apple.com/kb/ht1199
    If the issue does not appear to be related to preferences, a login item, or a kext file, and still persists in Safe Mode, there may be an issue with a cache file in your home folder:
    1. From the Finder's Go menu, choose Home.
    2. Open the Library folder.
    3. Drag the Caches folder to the desktop.
    4. Attempt to reproduce the issue.
    5. If issue is resolved, drag the Caches folder to the Trash.
    6. If issue persists, from the Finder's Go menu, choose Go To Folder.
    7. Go to this folder: /Library
    8. Drag the Caches folder to the desktop.
    9. Attempt to reproduce the issue.
    10. If issue is resolved, drag the Caches folder to the Trash.
    11. If issue persists, go to step 4.
    Thanks,
    Matt M.

  • How do I clear the browsing history on my iPad?

    How do I clear the browsing history on my iPad 2?

    Settings > Safari > Clear History (and Clear Cookies And Data if you want to clear them as well).
    If you also want to clear your search history (i.e. the words/phrases that you've typed in the search box) then you may also need to close Safari completely : from the home screen (i.e. not with Safari 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Safari app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.

  • How can I clear the stored browsing history in iCloud?

    As the headline says, how can I clear the stored browsing history in iCloud?
    After resetting my iPhone, previous history came back as soon as I signed in with iCloud on it. I would really like this to not occur.

    The only place that Thunderbird gets suggested addresses is from your address books. I have seen some not show up in the books because some key info was never stored when the contact was saved.
    Sometimes you can start a new message and when the bad contact shows up select it. Create the message and save it to drafts. Then you can go to the Draft folder open the draft message by right clicking and select Open Message in Tab. Then click the star to the right of the contact and it will open the contact edit button. From there you can delete the contact.
    This does not always work though.

  • Selling my power mac G5, how do i clear the hard drive?

    hello!
    i am going to be selling my power mac G5. how do i clear the hard drive of all of my stuff, so the new owner has a fresh "new" mac?

    Click here, and then follow the instructions in the article which relates to your situation.
    (25054)

Maybe you are looking for

  • SRM MDM Installation and Configuration

    Hi, I have been asked to install/configure SRM MDM. Ive gone through lot of documentation on SAP service marketplace and am struggling to understand the components I need to install. I have SRM system already installed and the customer wants to use S

  • My auto-indent and code formatting is not working.

    Usually on dreamweaver CS5.5 my code (html) would indent my <div> tags and align them up with the end div </div>. Not only were the <siv> tags formateed but various of others tags were as well. How Dreamweaver used to format my code: <head>          

  • Scripting: browse for data files in a folder and all subfolders below

    Hello, i'm looking for a command to search for data files (*.dat) in a folder and all subfolders below. I checked out command DirListGet. This command only search in the declared folder and not in the subfolders below. Anyone an idea? I don't want to

  • Getting list of roles?

    Is there any way for code running behind a servlet (eg, with access to HttpServletRequest) to get a list of defined roles for the app, other than figuring out where web.xml resides, reading the file in and parsing the xml? It would be nice if it were

  • Failure while trying to modify application - 2

    Not sure if the second part of the messages help but here goes : ==============[System Error Tracing]============== [System  Name] : AdminServerHandler [Message Type] : ErrorMessage [Job Name]     : AdminOlapSelector : DeleteCube [DateTime]     : 11/