views:

248

answers:

1

When I remote detach a screen session and connect to it myself (screen -r -d), I see the following on the detached session.

[remote detached]

Is it possible to change this message?

+2  A: 

It's hard-coded in the screen source (line: 1745 of screen.c in Screen v 4.0.3):

#ifdef REMOTE_DETACH
    case D_REMOTE:
      AddStr("[remote detached]\r\n");
      sign = SIG_BYE;
      break;
#endif

You can try editing that part and recompiling the source.

Baishampayan Ghose