Coder Social home page Coder Social logo

Comments (2)

ihalila avatar ihalila commented on August 11, 2024

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.

ihalila avatar ihalila commented on August 11, 2024

This ought to be fixed now, I released 0.4.1 with a fix.

from pancurses.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.