You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, this is a follow-up for #17. Basically I would like to be able to set the terminal size for the spawned process.
My use case is as follows: I'm using rexpect to create integration tests for my full-screen TUI app (like vim), where I launch the program, send some keystrokes to it, and check that the printed characters are as expected. The layout of my app will depend on the terminal size, and for example some elements are not drawn at all if the size is zero. Currently I can't test my app properly without setting the terminal size.
Currently, my program actually crashes with a zero-size terminal, which I should probably handle, but I am still unable to test the screen contents.
(As another sidenote, this issue didn't come up before because crossterm (the library I'm using for the TUI) used to check if the size from /dev/tty (set by rexpect) is zero, and if it was, it used tput to query the terminal size instead. However, after an update, this check was removed and it returns a zero-size terminal now, which breaks my tests.)
The text was updated successfully, but these errors were encountered:
Hi, this is a follow-up for #17. Basically I would like to be able to set the terminal size for the spawned process.
My use case is as follows: I'm using
rexpect
to create integration tests for my full-screen TUI app (like vim), where I launch the program, send some keystrokes to it, and check that the printed characters are as expected. The layout of my app will depend on the terminal size, and for example some elements are not drawn at all if the size is zero. Currently I can't test my app properly without setting the terminal size.Currently, my program actually crashes with a zero-size terminal, which I should probably handle, but I am still unable to test the screen contents.
(As another sidenote, this issue didn't come up before because
crossterm
(the library I'm using for the TUI) used to check if the size from/dev/tty
(set byrexpect
) is zero, and if it was, it usedtput
to query the terminal size instead. However, after an update, this check was removed and it returns a zero-size terminal now, which breaks my tests.)The text was updated successfully, but these errors were encountered: