Comments (5)
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.
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.
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.
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.
_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)
- Allow RunCPM to be used as a Github Action for SUBMIT jobs. HOT 4
- COPY program HOT 5
- Transverse (copy/execute) between slices HOT 1
- Going Crazt HOT 4
- CCP-ZCP3.60K HOT 1
- Feature request: Console on ESP32 TTL Serial port HOT 9
- BASIC/Z compiler not supported HOT 3
- NULU open lbr files does not work HOT 9
- saving/loading Problem with HEBAS under RunCPM HOT 2
- Bdos Err on M: Select when I try ASM DUMP.ASM HOT 2
- ESP32-Wrover kit freeze HOT 8
- Request: Simple variation on LED.BAS as a Hello World using BDOS 9 HOT 3
- [Q] Difference for RunCPM between TYPE and TYPE in a .SUB? HOT 4
- [Q] How about updateing to LUA v5.4.6? HOT 2
- Command switch to select base virtual-disk directory HOT 2
- Builds break after moving Lua in git submodule HOT 1
- Z80ASM (and M80) hang HOT 4
- 8085 and APU/FPU HOT 3
- Unable to build latest main branch HOT 4
- 8088/XT DOS as a build target ? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from runcpm.