/usr/bin/screen-ir is in iselect 1.4.0-2+b2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #!/bin/sh
# Reattaches to screen sessions interactively
# Copyright (C) 2011, Axel Beckert <abe@debian.org>
# License: GPLv2+
if ! which screen > /dev/null 2>&1; then
echo "screen not found in" "$PATH"
exit 1
fi
SCREEN_OPTIONS="-r"
ISELECT_OPTIONS=""
test -f ${HOME}/.screen-irrc && . ${HOME}/.screen-irrc
SELECTION=$( \
screen -ls | \
sed -e 's/[ \t][ \t]*/ /g;' | \
egrep '^ [0-9]' | \
sed -e 's/^ //' | \
iselect -a -t "Select screen session to reattach" $ISELECT_OPTIONS | \
awk -F. '{print $1}' \
)
test -n "$SELECTION" && screen $SCREEN_OPTIONS "$@" "$SELECTION"
|