Comments (2)
Thanks for the bug report, I'm fairly sure I know what's causing that too.
I'll get on it.
On Mon, 10 Oct 2016 at 22.35, Alexandre Bury [email protected]
wrote:
Simple program to try input support:
extern crate pancurses;
fn main() {
let pc = pancurses::initscr();
pc.keypad(true);
loop {
if let Some(ev) = pc.getch() {
println!("{:?}", ev);
}
}
}Pressing Ctrl-Left (and some other combinations) results in a panic:
thread 'main' panicked at 'index out of bounds: the len is 108 but the index is 243', /home/gyscos/.cargo/registry/src/github.com-1ecc6299db9ec823/pancurses-0.4.0/src/unix/mod.rs:66
stack backtrace:
1: 0x555e3f9df4ff - std::sys::backtrace::tracing::imp::write::h22f199c1dbb72ba2
2: 0x555e3f9e1fad - std::panicking::default_hook::{{closure}}::h9a389c462b6a22dd
3: 0x555e3f9e150a - std::panicking::default_hook::h852b4223c1c00c59
4: 0x555e3f9e1a58 - std::panicking::rust_panic_with_hook::hcd9d05f53fa0dafc
5: 0x555e3f9e18f2 - std::panicking::begin_panic::hf6c488cee66e7f17
6: 0x555e3f9e1830 - std::panicking::begin_panic_fmt::hb0a7126ee57cdd27
7: 0x555e3f9e17b1 - rust_begin_unwind
8: 0x555e3fa16d9f - core::panicking::panic_fmt::h9af671b78898cdba
9: 0x555e3fa16d43 - core::panicking::panic_bounds_check::h56f656aa4e352200
10: 0x555e3f9d7840 - pancurses::unix::to_special_keycode::hb00b80a8963e12bc
at /home/gyscos/.cargo/registry/src/github.com-1ecc6299db9ec823/pancurses-0.4.0/src/unix/mod.rs:66
11: 0x555e3f9d78e8 - pancurses::Window::getch::h179489f0c955b58f
at /home/gyscos/.cargo/registry/src/github.com-1ecc6299db9ec823/pancurses-0.4.0/src/lib.rs:178
12: 0x555e3f9d6c2e - pan::main::hecb42b9052c3a41e
at /home/gyscos/test/pan/src/main.rs:7
13: 0x555e3f9e9a76 - __rust_maybe_catch_panic
14: 0x555e3f9e0d81 - std::rt::lang_start::h14cbded5fe3cd915
15: 0x555e3f9d6d43 - main
16: 0x7fcca047d290 - __libc_start_main
17: 0x555e3f9d6a09 - _start
18: 0x0 -Using pancurses 0.4.0.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#4, or mute the thread
https://github.com/notifications/unsubscribe-auth/AQBHCGUclR1RGgU591VMemzB6YBFwujmks5qypOIgaJpZM4KS6SL
.
from pancurses.
This ought to be fixed now, I released 0.4.1 with a fix.
from pancurses.
Related Issues (20)
- `ctrl`+`space` causes panic on `unwrap` HOT 1
- *mut i8 cannot be sent between threads safely HOT 1
- Segfault can be triggered with printw HOT 2
- _
- error: linking with `link.exe` failed: exit code: 1120 (x86_64-pc-windows-msvc) HOT 3
- Moving subwindow leaves behind the old windows HOT 3
- win32a consistently crashes HOT 1
- mvprintw and printw should not be exposed HOT 1
- Enter key yields Input::Character('\n'), not Input::KeyEnter HOT 2
- Release and activity HOT 1
- Disable wrapping
- Window::border() and unicode HOT 3
- panic of unwrap() on CString creation
- Get and set XY position of cursor (not mouse) HOT 1
- Can a combination of keypresses detected by ncurses be detected in pancurses?
- Example Code throws Error
- non-blokcing getch ? HOT 3
- Input enum for control/shift?
- noecho before initscr
- Update to ncurses 6.0.0 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 pancurses.