Page 1 of 1

Meaty Skeleton weird end of line character

Posted: Sat Dec 05, 2015 3:56 pm
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?

Re: Meaty Skeleton weird end of line character

Posted: Sat Dec 05, 2015 7:12 pm
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.

Re: Meaty Skeleton weird end of line character

Posted: Sat Dec 05, 2015 9:29 pm
by KEFE
Thank you very much :), you were right :) I did move the cursor but also "printed" the character too