Dear Jürgen.

Thanks for your reply.

Sat, 29 Nov 2025 10:56:18 +0100
Jürgen Weigert <[email protected]> writes:

>When screen -d fails with this error, you probably have no valid TERM variable 
>in your current terminal
>session. Confirm with echo $TERM 

Not empty. See below.

----------------------------------------------------------------
[maruyama@pc07{286}] ~% uname -a
FreeBSD pc07.mar 13.5-RELEASE-p6 FreeBSD 13.5-RELEASE-p6 GENERIC amd64
[maruyama@pc07{287}] ~% screen -version
Screen version 5.0.1 (build on 2025-10-24 08:10:56)
[maruyama@pc07{288}] ~% screen -list
There is a screen on:
        6879.pts-0.pc07 (2025/11/28 18時47分18秒)       (Attached)
1 Socket in /usr/home/maruyama/.screen.
[maruyama@pc07{289}] ~% echo $TERM
screen
[maruyama@pc07{290}] ~% screen -d
Cannot find terminfo entry for ''.
[maruyama@pc07{291}] ~% screen -list
There is a screen on:
        6879.pts-0.pc07 (2025/11/28 18時47分18秒)       (Attached)
1 Socket in /usr/home/maruyama/.screen.
[maruyama@pc07{292}] ~%
----------------------------------------------------------------

My usual habit is to ssh from one session of a screen to other machine and open 
screen, like below:

----------------------------------------------------------------
[ 6:45][pc07[     0- csh  1 csh  2 csh  3 csh  4 csh  5 csh  6 csh  7 csh  8 
csh  (9* csh)     ][2025/11/30]
[ 6:45:08][pc06][    0 csh  1 csh  2- csh  3 csh  4 csh  5 csh  6 csh  (7*csh)  
8 csh  9 csh     ][2025/11/30]

And my method has no problem for Screen version 4.09.01 (GNU) 20-Aug-23.

One more thing:

[maruyama@pc07{298}] ~% screen -list
There is a screen on:
        6879.pts-0.pc07 (2025/11/28 18時47分18秒)       (Attached)
1 Socket in /usr/home/maruyama/.screen.
[maruyama@pc07{299}] ~% env TERM=xterm screen -d
Cannot find terminfo entry for ''.
[maruyama@pc07{300}] ~%

--------
(Mr.) NaoMASA MARUYAMA
[email protected]

Reply via email to