question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Calling get_terminal_size when there is no terminal

See original GitHub issue

When 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:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
takluyvercommented, Nov 2, 2016

Snap, @ivanov 😉

0reactions
tmr232commented, Nov 2, 2016

Thanks for the quick response 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found