Skip to content

C64 - Keyboard read using conio.h cgetc() always returns 'C' #203

@seanwiththebeard

Description

@seanwiththebeard
#include <conio.h>

int main(void)
{  
  clrscr();
  cputs("CHAR: ");

  while (1)
  {
    if (kbhit())
    {
      gotoxy(5, 0);
      cputc(cgetc());
    }
  }
  return 0;
}

This might be an emulator or Open ROMs issue since downloading the program ROM and opening it in VICE results in the expected behavior. If you exit to BASIC in the emulator and press enter you can type normally, but not until you press enter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions