ansicolumns set to 64 only using half of the screen.

Post Reply
tschak909
Member
Posts: 111
Joined: Sun Sep 09, 2018 5:44 pm

ansicolumns set to 64 only using half of the screen.

Post by tschak909 »

When using conio functions, I am only able to print to half of the screen.

Code: Select all

#include <msx.h>
#include <conio.h>

void main(void)
{
  while (1)
    cputs("HELLO ");
}
When compiled as:

Code: Select all

zcc +coleco -subtype=adam -create-app -pragma-need=ansiterminal -pragma-define:ansicolumns=64 -prag
ma-redirect:CRT_FONT=_font_8x8_msx_system s.c -lndos
I get the following output:
64col.png
Am I hitting a "not implemented" bug? ;)

-Thom
You do not have the required permissions to view the files attached to this post.
User avatar
dom
Well known member
Posts: 1506
Joined: Sun Jul 15, 2007 10:01 pm

Re: ansicolumns set to 64 only using half of the screen.

Post by dom »

Something has ended up in a tangle somewhere. I’ll figure it out this weekend.

Setting ansicolumns should set the screenwidth correctly, but obviously it hasn’t.

Leave it with me.
User avatar
dom
Well known member
Posts: 1506
Joined: Sun Jul 15, 2007 10:01 pm

Re: ansicolumns set to 64 only using half of the screen.

Post by dom »

This one should be sorted now. The screen mode switching code just assumed that there were 32 columns in mode 2, but of course ansi allows many widths.
Post Reply