Menu

ASCII CODE CHARACTERS from Keypad

2015-11-21
2015-11-23
  • Ronald Herrera

    Ronald Herrera - 2015-11-21

    Well, I know that in some platforms or some OS calling ASCII characters are not allowed, but in BASIC sometimes it was helpfull to invoke with the "Alt" Key and the ASCII number from the keypad at least for invoking such character; juest even for text or for coding. Can this be adquired as an issue? Ronald.

     
  • Anonymous

    Anonymous - 2015-11-21

    I believe this should currently work, though you may have to go to full screen so that the OS does not catch the Alt key. Will check. Rob

     
  • Ronald Herrera

    Ronald Herrera - 2015-11-22

    I tried the suggested instruction for modifying the PCBASIC.INI for a “fullscreen=True” option. But apparently Windows 7 (x64) probably is not allowing such thing for the ASCII code using the “Alt” key. Something else that I have missed, perhaps?

     
  • Rob Hagemans

    Rob Hagemans - 2015-11-22

    When I tried it it seemed to work on Windows XP and Linux. It won't work with the regular number keys though - you'll have to use an actual keypad or, alternatively, use Alt+F12+numbers (which may require three arms if you have a large keyboard!). Also NumLock may need to be on, I'm not sure about that.

     
  • Ronald Herrera

    Ronald Herrera - 2015-11-22

    Well, was a good try with the Alt+F12 + numbers (from keypad with the NumLock on), but unfortunately didn't work. But hey!, thanks for trying. :-)

     
    • Rob Hagemans

      Rob Hagemans - 2015-11-23

      Hi Ronald, I just tried on a Win7 64bit box with a physical numeric keypad and the following seems to be the case:

      • It works with Left Alt+F12+the regular numbers at the top of the screen. Alt and F12 both need to be held while you type the numbers; when the number is finshed you release both keys and the character appears. For example, Alt+F12+ 2 3 5 will display the Greek small letter delta which is at CHR$(235) on codepage 437.
      • The keypad numbers don't work (not sure why not, I will look into this)
      • Right Alt isn't normally recognised as Alt but as AltGr, so it will not work. You can set the option --altgr=Falseto make right-Alt work as Alt.

      Also, some control characters will not be displayed (e.g. CHR$(13) will just do a Return), while some others are - e.g. CHR$(1) shows a smiley face. This is intended behaviour (as this is what GW-BASIC does) although I'll need to check the details on some character codes.

      Hope this helps
      Rob

       
  • Ronald Herrera

    Ronald Herrera - 2015-11-23

    It worked using regular numbers insted of the keypad. It also worked without Fullscreen and, allowing option AltGr=False will also worked as a regular right Alt. Thank You! Ron.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.