ast icon indicating copy to clipboard operation
ast copied to clipboard

Ensure terminal size is sane if it is currently 0x0

Open krader1961 opened this issue 4 years ago • 0 comments

Long ago I fixed a zero day bug in the fish shell triggered if the termios rows and column values are both zero. Such as can happen if using a Linux serial console. If the size is 0x0 (rows by columns) assume the size is 24x80 (for historical reasons). When this is implemented we can remove these lines from the expect based unit tests:

# Terminal rows and columns may default to zero so ensure sane values.
send "stty rows 24 cols 80\r"
expect_prompt

krader1961 avatar Nov 15 '19 03:11 krader1961