mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 14:03:18 -07:00
usr/bin/byobu: support nethack screen mode, LP: #568751
This commit is contained in:
parent
22bbdbc6b2
commit
0c1b4b9792
2 changed files with 7 additions and 2 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -1,6 +1,6 @@
|
|||
byobu (2.72) unreleased; urgency=low
|
||||
|
||||
* UNRELEASED
|
||||
* usr/bin/byobu: support nethack screen mode, LP: #568751
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 22 Apr 2010 12:31:20 -0500
|
||||
|
||||
|
|
|
@ -53,7 +53,12 @@ fi
|
|||
# Now let's execute screen!
|
||||
if [ "$#" = "0" ]; then
|
||||
out=$(screen -wipe 2>/dev/null) || true
|
||||
if echo "$out" | grep -qsi "^No Sockets found in "; then
|
||||
if [ -r "$HOME/.nethackrc" ] || [ "$NETHACKOPTIONS" != "" ]; then
|
||||
NO_SOCKETS="^This room is empty "
|
||||
else
|
||||
NO_SOCKETS="^No Sockets found in "
|
||||
fi
|
||||
if echo "$out" | grep -qsi "$NO_SOCKETS"; then
|
||||
# Start new session
|
||||
exec screen $SCREEN_TERM -c "/usr/share/$PKG/profiles/byoburc" -t shell $DEFAULT_WINDOW
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue