mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-03 20:14:22 +02:00
Deprecate the cols and rows properties of Terminal
As cols and rows are read only (i.e. automatically determined by rect and font size) there is no need for the properties to be exposed. Instead, users can get the calculated cols and rows using the get_cols() and get_rows() methods.
This commit is contained in:
parent
f49410838c
commit
6cd5facb98
8 changed files with 93 additions and 55 deletions
|
@ -212,12 +212,12 @@ class TestPTYSize:
|
|||
|
||||
assert_eq(
|
||||
stty_rows,
|
||||
terminal.rows,
|
||||
terminal.get_rows(),
|
||||
"Expected stty to report correct number of rows for layout '%s'" % s
|
||||
)
|
||||
assert_eq(
|
||||
stty_cols,
|
||||
terminal.cols,
|
||||
terminal.get_cols(),
|
||||
"Expected stty to report correct number of columns for layout '%s'" % s
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue