termion issueshttps://gitlab.redox-os.org/redox-os/termion/-/issues2018-06-16T04:18:40Zhttps://gitlab.redox-os.org/redox-os/termion/-/issues/121Maybe a missing `extern crate sys;`2018-06-16T04:18:40ZMichael Aaron Murphymmstick@pm.meMaybe a missing `extern crate sys;`*Created by: TimonPost*
When I build the code whit cargo I get the following errors:
![image](https://user-images.githubusercontent.com/19969910/29753723-db3443c0-8b77-11e7-8acd-f530ec88681e.png)
**details:**
Terminal: windows ter...*Created by: TimonPost*
When I build the code whit cargo I get the following errors:
![image](https://user-images.githubusercontent.com/19969910/29753723-db3443c0-8b77-11e7-8acd-f530ec88681e.png)
**details:**
Terminal: windows terminal, git bash terminal.
version: termion v1.5.1
**code that I tried to execute:**
```
extern crate termion;
fn main()
{
print!("{}{}Stuff", termion::clear::All, termion::cursor::Goto(1, 1));
}
````
**cargo.toml**
```
[dependencies]
termion = "1.0.0"
```https://gitlab.redox-os.org/redox-os/termion/-/issues/105Terminal flickers on successive screen updates2018-06-16T04:18:39ZMichael Aaron Murphymmstick@pm.meTerminal flickers on successive screen updates*Created by: jmacdonald*
Under two different terminal emulators, with two different termion-based text editors, I'm seeing flickering when updating the screen quickly:
Here's the editor I'm working on, running in Alacritty:
![Amp]...*Created by: jmacdonald*
Under two different terminal emulators, with two different termion-based text editors, I'm seeing flickering when updating the screen quickly:
Here's the editor I'm working on, running in Alacritty:
![Amp](https://d3vv6lp55qjaqc.cloudfront.net/items/2q2c3i2X3W2J0C373s3f/Screen%20Recording%202017-04-30%20at%2008.18%20PM.gif?v=6ec09059)
and here's the Smith text editor, in the default OS X terminal:
![Smith](https://d3vv6lp55qjaqc.cloudfront.net/items/313W3x2o0D421u2i3f1H/Screen%20Recording%202017-04-30%20at%2008.20%20PM.gif?v=5f6b188b)
If I avoid using the `clear::All` escape sequence, and simply overwrite cells with new content, this problem goes away. This flickering isn't present when using termbox; I think they've avoided this by buffering screen output, and having `clear` [reset the buffer contents](https://github.com/nsf/termbox/blob/master/src/termbox.c#L315), rather than delegating to the terminal using an escape sequence. Any plans to implement that, or does it feel too high-level/abstract for Termion?https://gitlab.redox-os.org/redox-os/termion/-/issues/83User-perceived character alignment2018-06-16T04:18:40ZMichael Aaron Murphymmstick@pm.meUser-perceived character alignment*Created by: jtomschroeder*
When writing characters of multiple codepoints (e.g. ❤), text does not appear aligned.
![screen shot 2016-12-21 at 2 22 23 pm](https://cloud.githubusercontent.com/assets/1320768/21404895/f68ab0fe-c788-11e6...*Created by: jtomschroeder*
When writing characters of multiple codepoints (e.g. ❤), text does not appear aligned.
![screen shot 2016-12-21 at 2 22 23 pm](https://cloud.githubusercontent.com/assets/1320768/21404895/f68ab0fe-c788-11e6-896e-2559e78042ad.png)
https://gitlab.redox-os.org/redox-os/termion/-/issues/63async_stdin do not receive piped output2018-06-16T04:18:40ZMichael Aaron Murphymmstick@pm.measync_stdin do not receive piped output*Created by: aleksander*
termion 1.1.1
I don't know actually is this a bug or intented behaviour. Could someone please clarify?
``` Rust
extern crate termion;
fn main() {
use termion::input::TermRead;
let mut stdin = std::io::...*Created by: aleksander*
termion 1.1.1
I don't know actually is this a bug or intented behaviour. Could someone please clarify?
``` Rust
extern crate termion;
fn main() {
use termion::input::TermRead;
let mut stdin = std::io::stdin().keys();
loop {
let s = stdin.next();
if let Some(some) = s {
println!("{:?}", some);
if let Ok(termion::event::Key::Char('q')) = some {
break;
}
}
}
}
```
I pipe "ABC" to this app with command 'echo "ABC" | app'. It works as expected: echo output piped to my app stdin and input I do from keyboard doesn't have effect.
```
$ echo "ABC" | RUST_BACKTRACE=1 ./target/debug/tt
Ok(Char('A'))
Ok(Char('B'))
Ok(Char('C'))
Ok(Char('\n'))
```
But if I change
``` Rust
let mut stdin = std::io::stdin().keys();
```
to
``` Rust
let mut stdin = termion::async_stdin().keys();
```
then echo output do not piped to my app, but my app gets input from keyboard.
Why is that so?
```
```
https://gitlab.redox-os.org/redox-os/termion/-/issues/74read_passwd no longer works2018-10-15T22:28:37ZJeremy Sollerread_passwd no longer worksRead password is now echoing password bytes. This can be seen in the login prompt on RedoxRead password is now echoing password bytes. This can be seen in the login prompt on Redoxhttps://gitlab.redox-os.org/redox-os/termion/-/issues/24Make `Key` a clone type2018-10-15T22:28:37ZMichael Aaron Murphymmstick@pm.meMake `Key` a clone type*Created by: MovingtoMars*
This would be helpful, especially considering `Key` is a relatively small type.
*Created by: MovingtoMars*
This would be helpful, especially considering `Key` is a relatively small type.