Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:58 02 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Wrong characters from my keyboard under MMBasic for Windows.

Author Message
Paul_L
Guru

Joined: 03/03/2016
Location: United States
Posts: 769
Posted: 06:14am 13 Jun 2022
Copy link to clipboard 
Print this post

I'm trying to run the MMBasic.exe for Windows extracted from 2022-04-22_V5.07.03b10 MMBasic Windows beta.zip.

I'm using a keyboard from UNICOMP which replicates the original IBM type M keyboard.

When I type the double quote, {"} key, the tilde {~} appears.

When I type in the test line
for i=1 to 100:print i;:next
it works.

When I type in the test line
for i =1 to 100:print "Hi"
what appears on the screen is
for i=1 to 100: print ~Hi~

If I type in the test line
for i=33 to 127:print chr$(i):next
it works, and the chr$(34) {"} and the chr$(126) {~} appear where they should.

What the heck!!!!

Paul in NY
Edited 2022-06-13 16:16 by Paul_L
 
Paul_L
Guru

Joined: 03/03/2016
Location: United States
Posts: 769
Posted: 06:24am 13 Jun 2022
Copy link to clipboard 
Print this post

The MMbasic.exe extracted from the zip download from Geoff's website works the way it should. It does not scramble the {'} and {~}.

Paul in NY
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 06:29am 13 Jun 2022
Copy link to clipboard 
Print this post

Keyboard type setting in windows is wrong? Just an idea.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Paul_L
Guru

Joined: 03/03/2016
Location: United States
Posts: 769
Posted: 06:33am 13 Jun 2022
Copy link to clipboard 
Print this post

Mick ... I doubt the keyboard type is set wrong. Everything else works the way it should, including when running the MMBasic.exe extracted from Geoff's website just now.

I think the problem is in the beta Windows build that I found in a thread here somewhere.

Paul in NY
Edited 2022-06-13 16:34 by Paul_L
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 06:40am 13 Jun 2022
Copy link to clipboard 
Print this post

It sounds to me like one of those odd things that Unicode does. MMBasic doesn't support Unicode but MMBasic for Windows is probably using the Windows keyboard system, and hence will support Unicode (because it won't know that that is what it's doing).
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 06:40am 13 Jun 2022
Copy link to clipboard 
Print this post

MMBasic is defaulting to UK keyboard???
VK7JH
MMedit
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 1003
Posted: 06:45am 13 Jun 2022
Copy link to clipboard 
Print this post

You need
OPTION KEYBOARD US
It defaults to UK, which from memory swaps ~ @ and " around if you actually have a US keyboard.
Latest F4 Latest H7 FotS
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025