mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
a503371c57
This was lost in 6bdbe732e40c2e325aa15fcf0f28ad0dedb3a551..c7160d7cb4970c2a03df34547f357721cb5e88db. Note that we only print a term-support flog message for now, the warning seems a bit much. Fixes #7709.
16 lines
519 B
Python
16 lines
519 B
Python
#!/usr/bin/env python3
|
|
from pexpect_helper import SpawnedProc
|
|
|
|
# Set a 0 terminal size
|
|
sp = SpawnedProc(args=["-d", "term-support"], dimensions=(0,0))
|
|
sendline, expect_prompt, expect_str = sp.sendline, sp.expect_prompt, sp.expect_str
|
|
|
|
expect_prompt()
|
|
# Now confirm it defaulted to 80x24
|
|
sendline("echo $COLUMNS $LINES")
|
|
expect_str("80 24")
|
|
expect_str("term-support: Terminal has 0 columns, falling back to default width")
|
|
expect_str("term-support: Terminal has 0 rows, falling back to default height")
|
|
expect_prompt()
|
|
|