Meaty Skeleton weird end of line character

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.
Post Reply
KEFE
Posts: 2
Joined: Sat Dec 05, 2015 3:38 pm

Meaty Skeleton weird end of line character

Post by KEFE »

Hello,

I'm really new to OS development, I started to modify the meaty skeleton example from the bare bone tutorials and so far it is going really good :)
I managed to implement scrolling and cursor positioning on the terminal window and I even managed to get the multiboot pointer as an input for the kernel_main and read the multiboot structure that GRUB sets up...
Anyway I still can't figure out how to get rid off the weird boxed "o" character from the end of the console line when I use a \n
Here is a screencap from the virtualbox machine: Image

the "printf test01" is just a printf without \n and the printf test is a printf with a \n at the end.
Can someone please help me with this?
alexfru
Member
Member
Posts: 1112
Joined: Tue Mar 04, 2014 5:27 am

Re: Meaty Skeleton weird end of line character

Post by alexfru »

It most likely means "printf" doesn't correctly interpret '\n' as a special control character, printing it the same way as 'A', instead of just changing the output/cursor position.
KEFE
Posts: 2
Joined: Sat Dec 05, 2015 3:38 pm

Re: Meaty Skeleton weird end of line character

Post by KEFE »

Thank you very much :), you were right :) I did move the cursor but also "printed" the character too
Post Reply