Menu

#490 keyboard controls don't work when using gopherus

fixed_in_git
closed
None
5
2013-06-27
2013-06-27
No

I'd like to report a bug I noticed when using dosemu-1.4.0.8-120-ga2fe2a2 (pulled out from git and compiled on my system):

when I run the 'gopherus' gopher client, keyboard controls do not work (or maybe DOSemu freezes, it's hard to tell). The main screen of gopherus appears correctly, but pressing UP/DOWN arrows nor ESC doesn't trigger any reaction.

This problem doesn't happen with DOSemu v1.4.0.1 (installed as a package from opensuse repositories).

gopherus is a DJGPP-compiled Gopher client for DOS using Watt32: http://www.viste-family.net/mateusz/software/gopherus/

Discussion

  • Stas Sergeev

    Stas Sergeev - 2013-06-27

    For me it only says

    Configuring through BOOTP..

    and nothing more.

    Could you please provide a "demo" version
    of that prog, so that I can reproduce the
    problem without dealing with the networking stuff?

     
  • Mateusz Viste

    Mateusz Viste - 2013-06-27

    Sure! I looked into gopherus code to find out what is the problem, and I prepared a small program that allows to easily reproduce the problem. I am attaching the binary file (compiled with DJGPP). It is supposed to wait for a keypress, and print the key's code. Works fine with DOSemu 1.4.1, but do not catch anything on DOSemu 1.4.8.

    The program is as simple as this:

    /*
     * Test program using getkey() for DOSemu bug #490
     * Author: Mateusz Viste
     */
    
    #include <stdio.h>
    
    int main() {
      int keypress;
    
      keypress = getkey();
      if (keypress == 0x00) { /* handle extended keys */
        keypress = getkey();
        keypress |= 0x100;
      }
      printf("You pressed: 0x%02X\n", keypress);
      return(0);
    }
    
     

    Last edit: Mateusz Viste 2013-06-27
  • Stas Sergeev

    Stas Sergeev - 2013-06-27

    Now fixed in git, thank you for test-case.

     
  • Stas Sergeev

    Stas Sergeev - 2013-06-27
    • status: open --> closed
    • assigned_to: Stas Sergeev
     

Log in to post a comment.

MongoDB Logo MongoDB