Loading ...
Sorry, an error occurred while loading the content.

Re: Why copy / paste doesn't work within screen.

Expand Messages
  • IdaRub
    Ok, so one (kinda ugly) thing that works for 10.5. DYLD_INSERT_LIBRARIES=/somewhere/fixcnp_shim /usr/bin/screen compile with gcc -dynamiclib -o fixcnp_shim
    Message 1 of 5 , Sep 3, 2009
    • 0 Attachment
      Ok, so one (kinda ugly) thing that works for 10.5.

      DYLD_INSERT_LIBRARIES=/somewhere/fixcnp_shim /usr/bin/screen

      compile with gcc -dynamiclib -o fixcnp_shim fixcnp_shim.c

      #include <unistd.h>
      #include <stdint.h>

      void* _vprocmgr_move_subset_to_user(uid_t target_user,
      const char *session_type,
      uint64_t flags);

      typedef struct interpose_s {
      void *new_func;
      void *orig_func;
      } interpose_t;

      void* my__vprocmgr_move_subset_to_user(uid_t target_user,
      const char *session_type,
      uint64_t flags) {
      return NULL;
      }

      static const interpose_t interposers[] \
      __attribute__ ((section("__DATA, __interpose"))) = {
      { (void*)my__vprocmgr_move_subset_to_user,
      (void*)_vprocmgr_move_subset_to_user }};


      On Sep 3, 5:36 pm, björn <bjorn.winck...@...> wrote:
      > 2009/9/3 IdaRub:
      >
      >
      >
      > > I haven't tried it yet, but what if you were to call:
      >
      > > _vprocmgr_switch_to_session(VPROCMGR_SESSION_LOGINWINDOW, 0);
      >
      > > On MacVim startup?
      >
      > I'm on Snow Leopard so I can't test it since copy&paste already works.
      >  At any rate -- I don't particularly like the idea of patching MacVim
      > to fix a bug in screen...
      >
      > Björn
      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_mac" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.