mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 14:03:18 -07:00
clean up the nethack support a little
This commit is contained in:
parent
ce156bfa40
commit
773b578089
1 changed files with 1 additions and 6 deletions
|
@ -65,15 +65,10 @@ fi
|
|||
# Now let's execute screen!
|
||||
if [ "$#" = "0" ]; then
|
||||
out=$(screen -wipe 2>/dev/null) || true
|
||||
if [ -r "$HOME/.nethackrc" ] || [ "$NETHACKOPTIONS" != "" ]; then
|
||||
NO_SOCKETS="^This room is empty "
|
||||
else
|
||||
NO_SOCKETS="^No Sockets found in "
|
||||
fi
|
||||
if [ "$CUSTOM_WINDOW_SET" = "1" ]; then
|
||||
# Start new custom window set session
|
||||
exec screen $SCREEN_TERM -c "/usr/share/$PKG/profiles/byoburc"
|
||||
elif echo "$out" | LANG=C grep -qsi "$NO_SOCKETS"; then
|
||||
elif echo "$out" | LANG=C egrep -qsi "(No Sockets found in|This room is empty)"; then
|
||||
# Start new default session
|
||||
exec screen $SCREEN_TERM -c "/usr/share/$PKG/profiles/byoburc" $DEFAULT_WINDOW
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue