gyscos / gyscos/cursive

running quit() doesn't reset the terminal

Open
#415 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4.8k
Forks
270
Avg merge
5d 19h
Merged PRs (30d)
2

Description

First: is this a bug report? A suggestion? Or asking for help?

A bug report I think, or maybe asking for help :)

# Problem description
I have a quit button in a ripasso, and in the new user wizard there is a quit button that I have implemented like this:

```
.button(super::CATALOG.gettext("Cancel"), |s| {
s.quit();
std::process::exit(0);
})
```

This doesn't reset the terminal for the user and it looks like this:

![fil](https://user-images.githubusercontent.com/647710/71543055-a8999400-296e-11ea-8f9b-194798734527.png)

If possible code, or pseudo-code to reproduce the problem / present an idea.

See above.

# Environment

* Operating system: ubuntu, gnome-terminal
* Backend used: ncurses (the default one), pancurses, termion, ...
* If using ncurses on linux, ncurses version? #define NCURSES_VERSION "6.1"
* Current locale (run `locale` in a terminal).
LANG=sv_SE.UTF-8
LANGUAGE=en
LC_CTYPE="sv_SE.UTF-8"
LC_NUMERIC="sv_SE.UTF-8"
LC_TIME="sv_SE.UTF-8"
LC_COLLATE="sv_SE.UTF-8"
LC_MONETARY="sv_SE.UTF-8"
LC_MESSAGES="sv_SE.UTF-8"
LC_PAPER="sv_SE.UTF-8"
LC_NAME="sv_SE.UTF-8"
LC_ADDRESS="sv_SE.UTF-8"
LC_TELEPHONE="sv_SE.UTF-8"
LC_MEASUREMENT="sv_SE.UTF-8"
LC_IDENTIFICATION="sv_SE.UTF-8"
LC_ALL=

* Cursive version (from crates.io, from git, ...) 0.13.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.