Skip to content

Commit b90c546

Browse files
committed
fix: fix scroll up in screen
1 parent 9cc8e03 commit b90c546

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/devspace/services/terminal/terminal.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ func StartTerminal(
144144
fi
145145
if command -v screen; then
146146
echo "Screen installed successfully."
147+
148+
if [ ! -f ~/.screenrc ]; then
149+
echo "termcapinfo xterm* ti@:te@" > ~/.screenrc
150+
fi
147151
else
148152
echo "Couldn't find screen, need to fallback."
149153
exit 1
@@ -156,7 +160,7 @@ fi`,
156160
}
157161
}
158162
if useScreen {
159-
newCommand := []string{"screen", "-dRSq", "dev"}
163+
newCommand := []string{"screen", "-dRSq", "dev", "-h", "1000"}
160164
newCommand = append(newCommand, command...)
161165
command = newCommand
162166
}

0 commit comments

Comments
 (0)