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.

Can anyone ncurses expertise explain why this happens with CursesDriver?

See original GitHub issue

This is caused by the use of this line reset_shell_mode (); in the binding.cs file. This avoid writing reset every time when quitting the UICatalog. Running the Editor scenario the first time and open the Find/Replace dialog corrupts the output. Pressing Ctrl+Q to quit and running again the Editor, this corruption doesn’t happens anymore. I want some help to try fix this issue, please.

cursesdriver-issue

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
BDispcommented, Aug 30, 2021

For the first time I used the .devcontainer\devcontainer.json in the VS Code and was very useful.

1reaction
tznindcommented, Aug 28, 2021

@tznind can you confirm if it works for you too, please? The test errors maybe are caused by the clipboard tests, but since I only tested on Windows I received no errors. I have to test it on Linux.

Can confirm that the rendering/cursor corruption does not seem to be present on the above branch of your fork. Good stuff!

I am getting 276 failing tests when I run dotnet test though. They seem to all be complaining about this:

Error Message:
   System.NullReferenceException : Object reference not set to an instance of an object.
  Stack Trace:
     at Unix.Terminal.Curses.raw() in /home/thomas/bdisp/gui.cs/Terminal.Gui/ConsoleDrivers/CursesDriver/binding.cs:line 265

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can anyone ncurses expertise explain why this happens ...
Due the output corruption all works badly, including cursor position. Again it is only with the Curses driver (running with -usc makes problem ......
Read more >
NCURSES — Frequently Asked Questions (FAQ)
The ncurses and ncursesw libraries are reasonably source-compatible. That is, an application written for “ncurses” will build with “ncursesw”.
Read more >
ncurses freaks out when writing wide character to certain ...
This has to do with wide characters not being properly displayed based off a certain screen location. It might even be a bug...
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