Giter VIP home page Giter VIP logo

Comments (5)

MiguelVis avatar MiguelVis commented on August 21, 2024

That part of the ui is very simple in TE:

switch(toupper(getchr()))
{
	case 'N'   : run = MenuNew(); break;
	case 'O'   : run = MenuOpen(); break;
	case 'S'   : run = MenuSave(); break;
	case 'A'   : run = MenuSaveAs(); break;
	case 'B'   : MenuAbout(); ++menu; break;
	case 'H'   : MenuHelp(); ++menu; break;
	case 'X'   : run = stay = MenuExit(); break;
	case K_ESC : run = 0; break;
	default    : ask = 0; break;
}

I think you should debug the input / status keyboard routines in RunCPM to see if there is something wrong related to the last Windows 10 update.

By the way, TE has been already improved in recent versions.

May be is worth for you to check the last version in my github repository

from runcpm.

MockbaTheBorg avatar MockbaTheBorg commented on August 21, 2024

Thanks Miguel, I will definitely do it.
Something strange is happening, I need to figure it out.
And I just tested a RunCPM .EXE I had compiled before upgrading my machine, and it seems to be working fine. Something is wrong with the newly generated executable.
It seems to be working fine on other OSes.

from runcpm.

MockbaTheBorg avatar MockbaTheBorg commented on August 21, 2024

Found the issue ... a call to _getch(), which is the "conin" BIOS call for CP/M, somehow returns zero.
So when I press "X", TE correctly shows "Confirm Y/N:" and waits for keypress, that keypress comes back \0, and it goes back to the menu.
It was happening so fast that I was not able to see it.
Now I am trying to figure out why the extra \0, so I can fix it.

from runcpm.

MiguelVis avatar MiguelVis commented on August 21, 2024

Check if _kbhit() returns true before you call _getch() when it returns '\0'. May be you get a clue if you do that. Good luck!

from runcpm.

MockbaTheBorg avatar MockbaTheBorg commented on August 21, 2024

_kbkit() was returning a valid waiting character for the \0 ... I have applied an ugly fix (workaround) for now. Will research more on it as I have time.
Closing for now.

from runcpm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.