#45 keyboard in unix.com

closed
None
5
2012-11-02
2005-11-18
No

Are there any plans to make unix.com "keyboard-aware",
making it possible to run interactive linux programs from
dosemu?

Discussion

  • Stas Sergeev

    Stas Sergeev - 2005-11-19

    Logged In: YES
    user_id=501371

    Sounds like a natural extension, implemented now in CVS.

     
  • Valentin Lavrinenko

    Logged In: YES
    user_id=897166

    Can you tell me how to apply it to 1.2.2 sources? I need a
    (more or less) stable version with this feature.

     
  • Stas Sergeev

    Stas Sergeev - 2005-11-21

    Logged In: YES
    user_id=501371

    Not straightforward.
    1.2 is abandonned for rather long already, and that
    part of code was changed (more than once).
    Your best bet would be to replace the
    run_unix_command() by the one of CVS completely and
    then copy com_dosreadcon() from CVS to your
    src/plugin/commands/builtins.c to avoid the code
    shuffling.

    But personally, I wont recommend that. CVS code is
    now in a stabilization phase, and should work more
    or less reliably. Sure it isn't well tested yet
    and 1.2.2 certainly was. But in practice this does
    not always help, because, together with the new
    bugs, all the fixes for 1.2.2 are also available
    only in 1.3/CVS.
    You may probably want to try the CVS code and see
    whether or not it satisfies your needs, rather than
    relying on the version numbers.

     
  • Valentin Lavrinenko

    Logged In: YES
    user_id=897166

    Thank you, CVS version seems to work (almost). But, when
    pressing Ctrl-C in a program that is running under unix.com,
    it terminates, even if it isn't meant to. Is it possible to
    fix it?

     
  • Stas Sergeev

    Stas Sergeev - 2005-11-28

    Logged In: YES
    user_id=501371

    Thank you, CVS version seems to work (almost).
    If there are the regressions, feel free to open
    the reports about them.

    pressing Ctrl-C in a program that is running under unix.com,
    it terminates, even if it isn't meant to.
    What do you mean? Why exactly it isn't mean to
    terminate? The program that ignores SIGINT won't
    terminate that way, just as it supposed to. Or
    do you mean the "break=off" thing?

     
  • Valentin Lavrinenko

    Logged In: YES
    user_id=897166

    After some investigation, I can tell what I mean. The program
    I was talking about is telnet. It handles Ctrl-C separately
    (using tcsetattr() AFAIU). So, when it recieves SIGINT, it
    terminates cleanly, but when user presses Ctrl-C, it just
    sends it to the other end.

    Now, under dosemu, Ctrl-C becomes char 0x3 in the input
    stream. Then it is cleared, and SIGINT is sent to telnet,
    which is definetly not the behaviour I need. I've tried to
    comment out special Ctrl-C handling in dos2linux.c, and it
    almost seems to work, it just outputs some strange character
    (the lower part of integral sign, I don't remember its ASCII
    code, but it's not 0x3). Although, I understand that such a
    hack can make other linux programs to behave improperly.

    I think I'll try to get rid of that character (maybe,
    inserting 0x27 before 0x3 will help?) and then will try to add
    a parameter to unix.com to switch between sending SIGINT and
    transferring everything to the linux program. In case of
    success, I'll post a patch here.

     
  • Stas Sergeev

    Stas Sergeev - 2005-12-15

    Logged In: YES
    user_id=501371

    OK, I understand the problem and am waiting for your patch.
    But in a mean-time:

    I was talking about is telnet.
    Why not just to use the DOS telnet client? Yes, having the
    keyboard
    in unix.com, you can now use many unix tools instead of the DOS
    tools, but this wasn't the intention. dosemu is still
    primarily for
    the use of the DOS tools.
    There is a good mini-howto by Grigory Batalov, that explains
    how to
    use the TCP/IP networking under dosemu. It is here:
    http://www.ltsp.ru/documentation/faq-dosemu-networking.html

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks