What is function to clear screen ??

hi,
What i s function to clear screen .. for example in C-languse we use clrscr();
like that what is function in java to clear screen.. that is in command prompt window clear

I dont thik u can do this...
since u are writing to a stream. so what ever is written is written...
but if u have any ur own component developed u can do this.
regards,
Karthik

Similar Messages

  • Urxvt patch: VTE like clear screen behavior

    I've switched to urxvt last week. I come from the VTE world (gnome-terminal, xfce-terminal and such, the latter in my case). VTE has a nice feature to which I've accustomed myself. This is the way how it handles the clear screen function (ctrl-L).
    In VTE when you press ctrl-L, the screen cursor position gets to top row and the lines get scrolled just before the visible portion of the window. This means that the scrollback remains intact so you can scroll back and see it later. If you press ctrl-L again when you are at top you get a bunch of empty lines - you can use this to mark the scrollback with empty portions when you are scrolling back large amounts of texts.  This is handy for example when you want to quickly glance at an output from a command but you want to differentiate from different outputs - I press ctr-L several times before I execute the command and then I can just quickly scroll back - I immediately spot where the command began because it has a large black spot before it.
    The way urxvt works in this case that it just positions the cursor to the top row and then just erases everything below that point. This means you lose valuable lines from the scrollback. Example: type "seq 1000", press ctr-L. Now you won't see the last lines of the command's output!
    Now it is possible that I have a misconfigured urxvt and I'd be interested in the config option which I have misconfigured.
    Here's a patch for urxvt which adds proper clear screen function and also adds the VTE-like functionality:
    *** src/command.C 2011-10-29 18:06:07.000000000 +0200
    --- src/command.C.patched 2011-10-29 18:05:28.000000000 +0200
    *************** rxvt_term::process_csi_seq ()
    *** 2932,2937 ****
    --- 2932,2948 ----
    case CSI_CUP: /* 8.3.21: (1,1) CURSOR POSITION */
    case CSI_HVP: /* 8.3.64: (1,1) CHARACTER AND LINE POSITION */
    + if (nargs == 1 && current_screen == 0)
    + {
    + // This is usually followed with clear screen so add some extra
    + // lines to avoid deleting the lines already on screen. If we are
    + // already at the top, add an extra screen height of lines.
    + int extra_lines = nrow-1;
    + if (screen.cur.row == 0)
    + extra_lines += nrow;
    + for (int i = 0; i < extra_lines; ++i)
    + scr_add_lines (L"\r\n", 2);
    + }
    scr_gotorc (arg[0] - 1, nargs < 2 ? 0 : (arg[1] - 1), 0);
    break;
    Last edited by rlblaster (2011-10-29 19:07:32)

    Now I see what's happening! Your prompt uses '\e[H' which is used as move to home. I assumed that '\e[H' is usually followed with clear screen. This means if you use it to just move the cursor to home it won't work. I don't really see how could I fix this nicely but here's a workaround for your prompt: use '\e[1;1H'. In other words:
    PS1=$'%{\e[s\e[1;1H\e[30;42;1m%}[%~][%M] %{\e[K\e[256C\e[8D\e[30;42;1m%} [%D{%H:%M}]%(?,%{\e[32;32m%}\u2588,%{\e[31;41;1m\u2588)%}%{\e[u\e[1A%}\n%{\e[0;32m%}> %{\e[0m%}'
    By the way the feature of adding extra blank lines if your cursor is already at top won't work in your prompt because your cursor is always at least on row 1. You could change the patch from
    if (screen.cur.row == 0)
    to
    if (screen.cur.row <= 1)
    to have this feature.

  • After having downloaded the free version of Maverick OS X, HD version, I haven`t got a clear screen anymore and even on my photos lots of scratches in different colours appear. It seems to me that something went wrong.

    Since I have downloaded the free version Maverick OS X, HD version, from the App Store, I haven`t got anymore a clear screen whenever I open a page. Scratches and stripes appear and this is especially annoying when I wanna have a look on my downloaded photos from my iPhone 5 S. Does anybody know a solution ? Maybe somebody is struggling with the same problem.

    I'm not sure what you mean by HD Version. There is only one Mavericks and I find nothing about HD.
    Perhaps you have the display resolution set wrong for your display.

  • Best crystal clear screen protector? and best free apple bumper to get?

    What would be the best CRYSTAL CLEAR screen protector that is super clear and hardly notice its on there with PROTECTION from scratches? also whats the best bumper to get for free from the app?

    Don't use a screen cover, so no idea.
    As far as case goes, see this: http://www.ilounge.com/index.php/backstage/comments/apple-iphone-4-case-program- here-are-the-best-worst-picks/

  • This is about iPhoto:  I need to print the FULL IMAGE as shown on the screen:  the image is SQUARE (equal on four sides).  iPhoto keeps cropping it into a rectangle - THIS IS NOT ACCEPTABLE!  How do I get what I see on the screen in print form???

    I need to print the FULL image as shown on the screen - the image is SQUARE (equal on all four sides).  iPhoto keeps cropping it into a rectangle - this is not acceptable!  How do I get what I see on the screen into print form?

    Like Terence explained:
    OT

  • In converting a .docx file to .pdf the the Word functionality of linking screen tips to hyperlinks is lost. Why?  How can screen tips be saved in pdf if at all?

    In converting a .docx file to .pdf the the Word functionality of linking screen tips to hyperlinks is lost. Why?  How can screen tips be saved in pdf if at all?

    Thanks for replying. I am converting from MS Office Word document to Adobe Acrobat Document and opening with Reader XI - sorry my mistake.
    I now notice another problem. On trying to open a specific hyperlink in the pdf version I get the message  'Acrobat does not allow connection to: www.biblegateway.com'.  Why would there be a restriction? 

  • Hi...i'm still using the old iphone 3G...my phone is no longer charging...when i tried to charge it, what i see on the screen is the usb cord with the arrow pointing the itunes logo...can someone help me?

    hi...i'm still using the old iphone 3G...my phone is no longer charging...when i tried to charge it, what i see on the screen is the usb cord with the arrow pointing the itunes logo...can someone help me?

    It sounds like your phone is in recovery mode, which means it needs to be restored through iTunes on your computer in order to get out of it.

  • Hi, i installed ios 5 for my iphone 4 and the camera function on lock screen was on the first few days , now it doesn't show the lock screen . is there any change i can do . Pls help me to solve the issue.

    hi, i installed ios 5 for my iphone 4 and the camera function on lock screen was on the first few days , now it doesn't show the lock screen . is there any change i can do . Pls help me to solve the issue.

    nishaadp wrote:
    ... it stucks with the apple logo ,  nothing works. Is anything i can do?
    See Here for
    Frozen or unresponsive iPhone

  • Clear Screen, Sql plus Error, in release 10.2.0.1.0

    Hi there,
    I'm having problem in using clear screen command in SQLPlus utility of Oracle Release 10.2.0.1.0. When executing clear screen in SQL Plus ( in command prompt) in windows machine, suddenly a dialogue box opens and saying that "SQLPlus encountered an error and sorry for inconvenience "
    Is this the problem with OS or Oracle Client?
    Could anyone please help me in resolving this issue?
    Thanks
    Raja

    So that is the problem with Oracle client only, not with the OS configuration and all.... shall i assume?

  • I have a an iMac 11,2 is there anyway I can stream what's on my computer screen to my HD TV? I have apple TV2 also.

    I have a an iMac 11,2 is there anyway I can stream what's on my computer screen to my HD TV? I have apple TV2 also.

    You're talking about Air Play Mirroring About AirPlay Mirroring in OS X
    Your 2010 iMac doesn't meet the requirements For AirPlay mirroring but you can take a look at AirParrot http://www.airsquirrels.com/airparrot/

  • Hello , please tell me whats the price of a screen and casing for a macbook pro 13inch.ty

    hello , please tell me whats the price of a screen and casing for a macbook pro 13inch.ty

    ds store's opinion will be right in some, but not all cases.
    That largely depends on eactly which year and MacBook Pro (e.g., 5,1 ) model you are talking about, as well as whether you are rather "handy" and can do the swap yourself.
    On older Macs, used complete screens are available on the secondary from machines that have died. Step-by-step photo-illustrated guides are also available for sources like ifixit.com. [Their motivation for providing these guides for free is that some readers will buy their parts to make the repairs themselves.]
    Newer Macs may be valuable enough that having Apple fix them may be cost-effective. A free appointment at the genius Bar (with no obligation to proceed with ANY repairs) can get you a quote to consider.

  • How to create a transaction code for a function group with screen 100 as st

    Hello ,
    I have requirement where I need to create a function group and create screen 100, 200, 300 and include the function in the screens.
    Customer asked me to create a transaction with the screen 100 as the starting screen.
    Can you please let me know how to create a transaction code for a function group with screen 100 as starting screen.
    [ It is not a module pool program ].
    Thanks
    Prashanth.
    Moderator message - Please ask a specific question and do not ask the forum to do your work for you - post locked
    Edited by: Rob Burbank on Jun 2, 2009 11:49 AM

    Go to transaction SE93, enter a transaction code that you want and click on "create". Enter a text and select the "Transaction with Parameters" button. In the Default Values section, enter START_REPORT in the transaction field. Check the "skip initial screen" box. In the Name of Screen field section enter the following lines:
    Name of screen field:                               Value
    D_SREPOVARI-REPORTTYPE                RW
    D_SREPOVARI-REPORT                        ZPCA
    Save and transport accordingly.

  • What should I set me screen resolution to in photoshop CC with my late 2009 27" iMac?

    What should I set me screen resolution to in photoshop CC with my late 2009 27" iMac?

    If its native resolution is 2560x1440 then some people do find it marginal with a 27 inch screen, but I'd have thought it workable if you know where everything is.  People are using that screen res on tiny laptops, but to be fair, they are not much liking it with Photoshop.
    I don't know how Retina support works with CC, but I wonder if you could force it on your iMac?
    Any Mac users out there know how Retina support works?

  • Can I mirror what's on my iMac screen to the Apple TV?

    I'm thinking about buying an Apple TV but I want to know if I will be able to mirror what's on my iMac screen to my TV in the living room. (Ex: show a webpage on my tv.)
    Thanks.

    Welcome to the Apple Community.
    No, you can't currently do that from your mac/pc, without resorting to 3rd party software which is so unstable I wouldn't wish to recommend it.

  • What up with all the screen freezes since the updates?

    What up with all the screen freezes since the updates?

    Sorry to say your installation must have been unsuccessful.
    A normal installation would not do this.
    Uninstall, run the cleanscript* and try again (maybe your AV is too agressive).
    *http://www.adobe.com/support/contact/cs4clean.html

Maybe you are looking for

  • Can't drag or rearrange any icons in my dock

    None of my dock icons will drag; or rearrange; they seems to be locked in place. Running the latest mountain lion version. What gives? Tried a dock restart. Any solution to this? thanks

  • CONNECTING MY WIRELESS PRINTER WITH TIME CAPSULE

    Cant seem to get it to link up, any suggestions.?

  • "/Library/StartupItems/Parallels" Error

    hi. I recently purchased a new MacBook Pro and transfered all of my data from my old unit. Now at startup I receive the following message: "/Library/StartupItems/Parallels" has not been started because it does not have the proper security settings."

  • Webi Reports failing -Cannot execute empty query

    Intermittent problem affecting all Webi reports in the SAP BI system . This affects all Release 1 and Release 2 Webi reports When the user tries to run the report, an error message appears with the message "Cannot  execute empty query. (QTJ00521)" Us

  • After Effect CS5 English version ...

    Where can i get After Effect CS5 english version ?  http://helpx.adobe.com/fr/creative-suite/kb/cs5-product-downloads.html after effect cs5 in english is a dead link ... http://trials2.stage.adobe.com/dlm/AdobeProducts/AEFT/10/osx10-64/AfterEffects_1