/usr/bin/xminicom is in minicom 2.7.1-1.
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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | #!/bin/sh
#
# xminicom Run minicom in an xterm. This script looks for
# color_xterm, rxvt and xterm (in that order) and
# starts it up with minicom inside it.
#
# version $Id: xminicom,v 1.4 2008-06-09 20:48:35 al-guest Exp $
findcmd()
{
IFS=:
for i in $PATH
do
if [ -x $i\/$1 ]
then
result=$i\/$1
IFS=
return 0
fi
done
result=
IFS=
return 1
}
if findcmd x-terminal-emulator
then
exec $result -T minicom -e "if ! minicom -m -c on $*; then echo Press ENTER to continue...; read; fi"
exit 1
fi
if findcmd color_xterm
then
exec $result -T minicom -bg black -fg grey -n minicom -geometry 80x25 -e "if ! minicom -m -c on $*; then echo Press ENTER to continue...; read; fi"
exit 1
fi
if findcmd rxvt
then
exec $result -bg black -fg grey -n minicom -T minicom -sl 0 -geometry 80x25 -e "if ! minicom -m -c on $*; then echo Press ENTER to continue...; read; fi"
exit 1
fi
if findcmd kterm
then
exec $result -T minicom -n minicom -geometry 80x25 -e "if ! minicom -m -c on $*; then echo Press ENTER to continue...; read; fi"
exit 1
fi
if findcmd xterm
then
if [ -f /etc/debian_version ]
then
exec $result -T minicom -n minicom -bg black -fg grey -geometry 80x25 -e "if ! minicom -m -c on $*; then echo Press ENTER to continue...; read; fi"
else
exec $result -T minicom -n minicom -geometry 80x25 -e "if ! minicom -m -c on $*; then echo Press ENTER to continue...; read; fi"
fi
exit 1
fi
echo "xminicom: rxvt, color_xterm or xterm NOT found!" 1>&2
exit 1
|