You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
730 B

  1. --- a/usr/bin/byobu.in
  2. +++ b/usr/bin/byobu.in
  3. @@ -62,7 +62,7 @@ esac
  4. export BYOBU_BACKEND
  5. # Store the parent tty
  6. -export BYOBU_TTY=$(tty)
  7. +export BYOBU_TTY=$(readlink /proc/$$/fd/0)
  8. # Get the default window name
  9. [ -n "$BYOBU_WINDOW_NAME" ] || BYOBU_WINDOW_NAME=-
  10. --- a/usr/bin/byobu-launch.in
  11. +++ b/usr/bin/byobu-launch.in
  12. @@ -30,8 +30,8 @@
  13. # or edit your sshd_config, ssh_config, and set:
  14. # $HOME/.bashrc: export BYOBU_DISABLE=1
  15. -_tty=$(tty)
  16. -if [ "${_tty#/dev/ttyS}" != "$_tty" ]; then
  17. +_tty=$(readlink /proc/$$/fd/0)
  18. +if [ "${_tty#/dev/ttyS}" != "$_tty" ] && [ "${_tty#/dev/ttyAMA}" != "$_tty" ]; then
  19. # Don't autolaunch byobu on serial consoles
  20. # You can certainly run 'byobu' manually, though
  21. echo