Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

For some reason when you run Math.exe form windows command line, Mathematica disables the AltGr key. This is a bit annoying since my keyboard locale has the keys [, ], {, }, @, $, \, | located under this key. This makes Mathematica unusable for many novice users.

Is there a way to workaround this problem other than switching the keyboard locale? I can switch to US keyboard but my students can not since they have hard enough time finding characters that are typed on the keyboard. Is it possible to get AltGr key to work in Math.exe?

share|improve this question
    
Are you sure Mathematica is doing this and not Windows? And if you need Math.exe can't you just write a script in a text editor such as notepad? –  Sjoerd C. de Vries Apr 12 at 7:32
    
@SjoerdC.deVries Yes, I'm sure mathematica is doing this! Simply put if i try to type [ in the command window before starting math.exe, no problems once I stop math.exe no problems then either. Seems pretty conclusive to me. Sure i can make a script but the entire idea hinges on interactive access. Small things like this kills big sections of my entire teaching argument. Sure i could also use Linux, but again there goes the argument. Seems pretty evident that Mathematica is continue being a second class tool at our university. –  joojaa Apr 12 at 9:10
    
Happens on my PC too, only in math.exe, not in other console processes. It seems to ignore num-block keys, too, even if num-lock is on. I'd say math.exe is completely unusable (interactively) with a non-us keyboard. Dumb question: Why use the console interface in the first place? Why not use the more comfortable notepad interface? –  nikie Apr 12 at 11:33

1 Answer 1

up vote 4 down vote accepted

Try turning off the "terminal input" system, based on GNU Readline, that was added to math.exe in version 9. Windows has its own terminal input system that works just fine.

You can disable the new "terminal input" by running math.exe with the option -rawterm.

You can also disable the new "terminal input" permanently by going to the subdirectories

Program Files/Wolfram Research/Mathematica/9.0/SystemFiles/Kernel/Binaries/Windows
Program Files/Wolfram Research/Mathematica/9.0/SystemFiles/Kernel/Binaries/Windows-x86-64

and renaming the files term.dll to something else, like term.dll.goaway

share|improve this answer
1  
I can not get the -rawterm flag to work. However disabling the dll does work. LOL, the IT department is going to have a fit :) –  joojaa Apr 13 at 11:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.