Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Filling console with ASCII

$
0
0
Hi, I'm trying to fill a win64 Console with ASCII char. At the moment I have 2 solutions: one using std::cout for each line, let's say 30 lines at once using std::endl at the end of each one. The second solution is using FillConsoleOutputCharacter. This method seems a lot more robust and with less flickering. But I'm guessing, internally it's using a different table than the one used by std::cout. I'm trying to fill the console with the unsigned char 0xB0 which is a sort of grey square when I use std::cout but when using FillConsoleOutputCharacter it is outputted as the UTF8 char '°'. I tried using SetConsoleOutputCP before but could not find a proper way to force it to only use the non-extended ASCII code page... Has anyone a hint on this one? Cheers!

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>