-
Hello! Is there a way to find out how many characters wide the terminal is? I see a way to get the cursor position and a way to set the number of characters, but I don't know how to find out the width if it has been set automatically. |
Beta Was this translation helpful? Give feedback.
Answered by
jcubic
Jun 2, 2023
Replies: 2 comments
-
Yes, you can use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jmacwhyte
-
I see it now! Thanks. I didn't know what to search for in the docs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can use
term.cols()
. The names cols and rows are used by Linux terminals that's why they are named like this.