Comments (5)
Interestingly, it works if I remove endwin
line. I don't really understand what's going on there.
from raku-ncurses.
What's going on there is that initscr()
sets a flag for terminal init strings to be output on stdout, and endwin()
outputs them followed by deinit sequences and a cursor move to the bottom left of the screen. This probably confuses prove
, which is looking for test output.
This behavior will have been impacted by the changes to buffer noninteractive output, and the knock-on fix for buffers not being autoflushed when a handle is closed on going out of scope or the program ending.
For the purposes of a test, you either want to arrange for fd 1 to not be the pipe to prove
, or you want to use newterm()
to have curses write its init/deinit to some other file descriptor.
from raku-ncurses.
Note that, without the endwin
call, the init/deinit sequences are not output at all. But on a real terminal, it's possible it would be left in an odd state. (Unlikely though; while curses/XTI compliant libraries are allowed to set things up however they want, in practice ncurses will generally obey crmode()
and friends as written and leave the terminal in default mode otherwise.)
from raku-ncurses.
Sorry for the delay on this one. Bug was fixed in rakudo latest by @AlexDaniel. Please reopen if you think otherwise 👍
from raku-ncurses.
Well, what changed is that we simply re-disabled output buffering in Test.pm6, this is why it works now. There wasn't really a bug in rakudo, or so it seems. But given that the test is passing I guess there's nothing to do here indeed. @azawawi++
from raku-ncurses.
Related Issues (18)
- Implement simpler holy-based fun API :)
- Cannot use NCurses from another module. HOT 2
- Enhancement: Data::Dump::Tree::Foldable widget HOT 1
- Use wide char library if it is installed HOT 1
- on archlinux, libncurses.so is present, but can not install HOT 1
- NCurses::Lift HOT 1
- garbled Chinese character HOT 3
- Fails to install under FreeBSD HOT 4
- Crazy CPU utilization && Memory leak ...... HOT 3
- COLS() and LINES() shouldn't be cached HOT 1
- wrefresh(stdscr) causes segfault
- Problem with wborder signature
- example not working on Arch Linux HOT 2
- Export under different groups
- Location of ncursesw.so.5 is hardcoded. HOT 2
- Doesn't work on systems with ncurses 6 HOT 12
- NCURSES_MOUSE_VERSION HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raku-ncurses.