Page 2 of 2

Re: Err... Text cursor doesn't appear in long mode?

Posted: Thu Oct 21, 2021 1:44 am
by NeonLightions
neon wrote:Hi,

You mentioned that all you see is a blank screen. Are you able to display any text at all? I.e. implement a quick function to print a string to 0xb8000 and verify if it works or not.
Oh, this is just exaggeration, sorry. I can display text as usual.

Re: Err... Text cursor doesn't appear in long mode?

Posted: Thu Oct 21, 2021 2:01 am
by klange
NeonLightions wrote:Here is my source tree:
I meant the actual sources, like a link to Github or something.
NeonLightions wrote:I'm sorry but what is that?
As neon said, I just meant are you successfully displaying text.

Another thing to look at is - where are you putting the cursor? The cursor is generally displayed as an inverted cell - if you've placed it in a cell that has been, say, zero'd, it may be inverting black-on-black to black-on-black and not appearing.

Re: Err... Text cursor doesn't appear in long mode?

Posted: Thu Oct 21, 2021 3:40 am
by NeonLightions
klange wrote:
NeonLightions wrote:Here is my source tree:
I meant the actual sources, like a link to Github or something.
NeonLightions wrote:I'm sorry but what is that?
As neon said, I just meant are you successfully displaying text.

Another thing to look at is - where are you putting the cursor? The cursor is generally displayed as an inverted cell - if you've placed it in a cell that has been, say, zero'd, it may be inverting black-on-black to black-on-black and not appearing.
Okay, here is my repo: https://github.com/NeonLightions/NewOS
Please help me (don't mind the i386 folder, it's just a test)

Re: Err... Text cursor doesn't appear in long mode?

Posted: Thu Oct 21, 2021 3:45 am
by klange
NeonLightions wrote:Okay, here is my repo: https://github.com/NeonLightions/NewOS
Please help me (don't mind the i386 folder, it's just a test)
https://github.com/NeonLightions/NewOS/ ... minal.c#L7
Try setting the foreground to white when you clear?

Re: Err... Text cursor doesn't appear in long mode?

Posted: Thu Oct 21, 2021 6:32 am
by NeonLightions
klange wrote:
NeonLightions wrote:Okay, here is my repo: https://github.com/NeonLightions/NewOS
Please help me (don't mind the i386 folder, it's just a test)
https://github.com/NeonLightions/NewOS/ ... minal.c#L7
Try setting the foreground to white when you clear?
Nope, it's useless

Re: Err... Text cursor doesn't appear in long mode?

Posted: Thu Oct 21, 2021 7:18 am
by NeonLightions
klange wrote:
NeonLightions wrote:Okay, here is my repo: https://github.com/NeonLightions/NewOS
Please help me (don't mind the i386 folder, it's just a test)
https://github.com/NeonLightions/NewOS/ ... minal.c#L7
Try setting the foreground to white when you clear?
It's working right now. I just realized that the text cursor didn't show because of clrscr() function. Thank you for your help.