Allow specifying terminal size
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu với bối cảnh tiếp theo trong #17 và kiểm tra cách rexpect tạo các tiến trình cũng như cấu hình terminal được cung cấp qua /dev/tty. Xem xét hành vi kích thước bằng không của crossterm được mô tả trong issue và xác định cách các bên gọi chỉ định kích thước terminal của tiến trình được tạo. Hoàn thành khi các integration tests có thể đặt kích thước khác không và kiểm tra đầu ra toàn màn hình kết quả.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.)
- Ngôn ngữ chính
- Rust
- Star
- 391
- Fork
- 69
- Merge trung bình
- 1 ngày 34 phút
- Pull request đã merge (30 ngày)
- 2
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của rust-cli/rexpect
-
Strict output expectations Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Disabling bracketed paste mode Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
-
Configurable sleeps Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
Tất cả issue của rust-cli/rexpect
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
state:needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
zed-industries/zed#64680 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
RustPython/RustPython#8802 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
TheLarkInn/aipm#2390 ·