色
このコミットが含まれているのは:
コミット
fecb6d1748
|
@ -3,7 +3,7 @@
|
|||
Used to be サーバーを選択するのは easy
|
||||
|
||||
```sh
|
||||
mv servers.example.txt servers.txt
|
||||
cp servers.example.txt servers.txt
|
||||
chmod +x sshpick
|
||||
./sshpick
|
||||
```
|
||||
|
|
16
sshpick
16
sshpick
|
@ -2,7 +2,21 @@
|
|||
SRVCNT=$(cat servers.txt | wc -l)
|
||||
SERVERS=$(cat servers.txt)
|
||||
|
||||
dialog --menu "サーバーを選んで下さい" 30 50 $SRVCNT $SERVERS 2> /tmp/contosrv.tmp.$$
|
||||
export NEWT_COLORS="
|
||||
root=,magenta
|
||||
window=,black
|
||||
shadow=,magenta
|
||||
border=magenta,black
|
||||
title=magenta,black
|
||||
textbox=magenta,black
|
||||
listbox=magenta,black
|
||||
actlistbox=gray,brightmagenta
|
||||
actsellistbox=black,magenta
|
||||
label=magenta,black
|
||||
compactbutton=magenta,black
|
||||
button=black,magenta"
|
||||
|
||||
whiptail --menu "サーバーを選んで下さい" $(($SRVCNT+10)) 50 $SRVCNT $SERVERS 2> /tmp/contosrv.tmp.$$
|
||||
RVAL=$(cat /tmp/contosrv.tmp.$$)
|
||||
if [ "$RVAL" = "" ]; then
|
||||
rm -f /tmp/contosrv.tmp.$$
|
||||
|
|
読み込み中…
新しいイシューから参照