Page 1 of 1
Clearing the screen
Posted: Sat Jan 12, 2013 9:49 am
by JamesParsons
I need a simple function to clear the screen of inputs and outputs. something that works like MS-DOS CLS command does anyone know how to implement one. I need to do it in either assembly or C/C++. Also it would be nice to know what it is doing so if you give me code can it be commented?
Re: Clearing the screen
Posted: Sat Jan 12, 2013 9:57 am
by iansjack
So you have a screen that is full of characters, which presumes that you can print a character. And you want to fill it with blanks - space characters. And you can't see how to do that?
I think you should try something simpler than OS development.
Re: Clearing the screen
Posted: Sat Jan 12, 2013 10:35 am
by bluemoon
JamesParsons wrote:I need a simple function to clear the screen of inputs and outputs.
If that screen is also capable of input, is that some kind of multi-touch screen?
JamesParsons wrote:something that works like MS-DOS CLS command does anyone know how to implement one.
Yes, I think many people know how to implement one, but instead of MS-DOS CLS it's probably a terminal emulator instead.
JamesParsons wrote:I need to do it in either assembly or C/C++. Also it would be nice to know what it is doing so if you give me code can it be commented?
No. Your requirement is ambiguous (do you want to clear the VGA, or virtual terminal buffer, or something exotic?) How does your OS deal with the target device (VGA or virtual), Give us a brief description of your OS (real mode, protected mode, design model, etc), Dos you want a clear-screen function used by kernel/driver, or solely for debugging purpose, or you actually want an CLS application that can be called by shell?
Furthermore, the chance that somebody bored enough to spend his own time doing
your work is infinitesimally small; but if you show us what effort you have done you can probably get more help - it's just easier for you and the helper.
With none information given, the best you could get maybe:
Re: Clearing the screen
Posted: Sat Jan 12, 2013 7:18 pm
by JamesParsons
I think iansjack is right. I've been around this forum asking stupid questions. The problem is this OS-Dev stuff takes a lot of general Computer Knowledge and a basic understanding of how the entire computer works. I've been doing general programming for a while not focusing on other computer topics. I'm going to do something simpler than OS-Dev. I'm going back to writing general software.
ps. is there some way I can remove these posts
Re: Clearing the screen
Posted: Sat Jan 12, 2013 11:49 pm
by xenos
JamesParsons wrote:ps. is there some way I can remove these posts
JamesParsons wrote:I need a simple function to clear the screen of inputs and outputs.
Same problem again?
iansjack wrote:So you have a screen that is full of characters, which presumes that you can print a character. And you want to fill it with blanks - space characters. And you can't see how to do that?
Re: Clearing the screen
Posted: Sun Jan 13, 2013 10:05 am
by JamesParsons
all I can find on the programmers hardware database is specification on a bunch of ARM processors. At that I have to click the random page to get to anything with content
Re: Clearing the screen
Posted: Sun Jan 13, 2013 11:29 am
by Brynet-Inc
JamesParsons wrote:all I can find on the programmers hardware database is specification on a bunch of ARM processors. At that I have to click the random page to get to anything with content
It's his forum signature.
EDIT: Removed 2015: Imageshack replaced all links with spam.
Re: Clearing the screen
Posted: Sun Jan 13, 2013 2:07 pm
by JamesParsons
oh I was being a little slow for a moment