Posts: 3
Threads: 1
Joined: Apr 2004
I'm new to qbasic, and would appreciate some response on this matter:
Whenever I open qbasic, all of my key functions seem to screw around. I can use alt and the arrow key's, but whenever I try to write an actual code, wierd letters and signs show up...
I've tried looking around for some answeres, but no real luck. The only thing I can conculde with is that there's something wrong with the keyboard code... And I'm not even sure if that's right...
Any help?
Posts: 6,419
Threads: 74
Joined: Mar 2002
Everything, or just the signs and the punctuation marks?
Maybe your keyboard has a weird configuration. But it's extrange: if it works in Windows apps it should work in the DOSVM...
Do something: Hit WINDOWS+R to open "Run", type in "cmd" and press enter to run a command prompt. Just to check if the keyboard works right in the DOSVM prompt. If it does, it is a QBasic fault.
Btw, is it QBasic, QB or PDS what you are using? PDS has problems with Spanish keyboards, for example.
Posts: 3
Threads: 1
Joined: Apr 2004
Hehe... Thanks.
Yes, it's qb... Maybe worth mentioning...
Anyway, I've experimented some with it, and by checking and comparing the "device Con" (in cmd) with a friend of mine.
I seem to have another value in the "code page" area. Therefore:
mode con cp select=850. (850 which is the value my friend has)
It resets everytime I exit though. Which is kinda crap, so I created a .bat file out of it...
Anyway to actually save the configuration?
Posts: 6,419
Threads: 74
Joined: Mar 2002
Look for config.nt and autoexec.nt in your WINDOWS\SYSTEM32 directory.
Posts: 838
Threads: 17
Joined: Jan 2002
Right click on the shortcut you use to access DOS. In the "Target" field, replace whatever it says with
Code:
C:\WINDOWS\system32\cmd.exe /K MODE CON CODEPAGE SELECT=865
Replace the value after SELECT with the codepage for your country, you can look it up in XP help, by searching for "codepage". Also you need to replace the path ("c:\windows") with whereever you have windows installed.
It's the only way I could make it work, doing it in autoexec/config.nt. didn't work for me.
url=http://www.copy-pasta.com]CopyPasta[/url] -
FilePasta
Posts: 3
Threads: 1
Joined: Apr 2004
Thanks... Good to know that I'm not the only one with this problem...
Posts: 838
Threads: 17
Joined: Jan 2002
I think it's standard when installing Xp in another langauge, 'cause I haven't had problems with Danish installations. But I had the same trouble on win2000, solved the same way.
url=http://www.copy-pasta.com]CopyPasta[/url] -
FilePasta