Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 8 years, 5 months ago. Active 7 months ago. Viewed 94k times. Improve this question. Cid Cid 2, 4 4 gold badges 24 24 silver badges 34 34 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. However, the command you pass to it will be platform dependent. For example, on linux you would do system "clear" or system "reset" instead.
You can use the OS commands to clear the contents of the console. Sidharth J Sidharth J 37 3 3 bronze badges. Create own function in own header file which contain clrscr and use it. Error in my C- code. Hello Friends,. Implementation of forward and bidimensional iterators in C.
Ask a Question. Ask Question. Formatting: Spelling, grammar or punctuation errors. Personal Attack: Disrespectful content about a person. Insincere Question: Question not seeking real answers. Incorrect Topics: Broad or inaccurate topics. Spam: Link or advertisement for a product. Not in English: Content in a different language. Not a Helpful Response: Does not address question. Images Need Explanation: Image-only or meme answer.
Incomplete Attribution: Copied text without blockquote and source. Missing Affiliations: Undisclosed relationship to topics. Other: Other flag. Follow Us. Improve this answer. Claudix Claudix 4, 14 14 silver badges 27 27 bronze badges.
I believe the curses getch function can be used only after calling initscr , which takes control of the text screen. Abs 4, 8 8 gold badges 43 43 silver badges 71 71 bronze badges. Mahesh Uligade Mahesh Uligade 6 6 silver badges 15 15 bronze badges. It could also be the case that this question is a possible duplicate of the following: How to implement getch function of C in Linux?
Community Bot 1 1 1 silver badge. Apparently you didn't try googling. There are no direct alternatives. I am trying for curses. Have you tried locating it in the repositories?
If you don't know how to do that, try askubuntu. Then you can work with that functions. User User 2, 3 3 gold badges 27 27 silver badges 40 40 bronze badges. Enigo 3, 5 5 gold badges 28 28 silver badges 50 50 bronze badges.
There is another way to do it through C code instead system call. Amarendra Deo Amarendra Deo 45 1 1 silver badge 9 9 bronze badges. Sign up or log in Sign up using Google.
0コメント