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

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
NeonLightions
Member
Member
Posts: 102
Joined: Wed Oct 20, 2021 6:00 pm
Location: Paraguay

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

Post 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.
klange
Member
Member
Posts: 679
Joined: Wed Mar 30, 2011 12:31 am
Libera.chat IRC: klange
Discord: klange

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

Post 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.
NeonLightions
Member
Member
Posts: 102
Joined: Wed Oct 20, 2021 6:00 pm
Location: Paraguay

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

Post 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)
klange
Member
Member
Posts: 679
Joined: Wed Mar 30, 2011 12:31 am
Libera.chat IRC: klange
Discord: klange

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

Post 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?
NeonLightions
Member
Member
Posts: 102
Joined: Wed Oct 20, 2021 6:00 pm
Location: Paraguay

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

Post 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
NeonLightions
Member
Member
Posts: 102
Joined: Wed Oct 20, 2021 6:00 pm
Location: Paraguay

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

Post 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.
Post Reply