Calling get_terminal_size when there is no terminal
See original GitHub issueWhen formatting exceptions, IPython uses shutil.get_terminal_size
. When there is no terminal (due to output redirection) this results in unhandled exceptions. See https://github.com/james91b/ida_ipython/pull/34 and https://github.com/james91b/ida_ipython/pull/33
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Getting terminal width in C? - Stack Overflow
Have you considered using getenv() ? It allows you to get the system's environment variables which contain the terminals columns and lines.
Read more >getTerminalSize() issues with gnome terminal #61 - GitHub
The green Xs are from the Screen object; whenever the terminal becomes bigger it will pad the buffer with those as a kind...
Read more >DefaultVirtualTerminal (Lanterna 3.0.4 API)
Most commonly, calling getTerminalSize() will involve some kind of hack to retrieve the size of the terminal, like moving the cursor to position...
Read more >A fix neded for GetTerminalSize() under Win32 - CPAN
I got this error under Windows XP SP2 with Perl 5.8.8.819: Unable to get Terminal Size. The Win32 GetConsoleScreenBufferInfo call didn't work.
Read more >AWTTerminal (Lanterna 3.0.1 API) - Javadoc.io
Returns the next Key off the input queue or null if there is no more input ... You can retrieve the size of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Snap, @ivanov 😉
Thanks for the quick response 👍