From 93c52c698115660498dfaf32a393fd091b2e4d4d Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 12 Aug 2021 16:31:26 -0400 Subject: [PATCH] Improve tmux draw behavior in genesis --- .../genesis/initramfs/opt/confluent/bin/rungenesis | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis b/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis index 4c8768d8..5d4b41dd 100644 --- a/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis +++ b/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis @@ -8,10 +8,10 @@ if ! grep console= /proc/cmdline >& /dev/null; then echo $autocons > /tmp/01-autocons.devnode if [ ! -z "$autocons" ]; then echo "Using $(cat /tmp/01-autocons.conf)" - (while :; do tmux a <> $autocons >&0 2>&1; done) & + (while :; do TMUX=xterm-256color tmux a <> $autocons >&0 2>&1; done) & (while :; do TERM=linux tmux a <> /dev/tty1 >&0 2>&1; done) & else - (while :; do tmux a <> /dev/console >&0 2>&1; done) & + (while :; do TERM=xterm-256color tmux a <> /dev/console >&0 2>&1; done) & fi else (while :; do tmux a <> /dev/console >&0 2>&1; done) &