Add @gycos to the author list.
This commit is contained in:
		
							parent
							
								
									8c82c461f9
								
							
						
					
					
						commit
						2f008188e3
					
				| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
[package]
 | 
			
		||||
name = "termion"
 | 
			
		||||
version = "1.1.2"
 | 
			
		||||
authors = ["ticki <Ticki@users.noreply.github.com>"]
 | 
			
		||||
authors = ["ticki <Ticki@users.noreply.github.com>", "gycos <alexandre.bury@gmail.com>"]
 | 
			
		||||
description = "A bindless library for manipulating terminals."
 | 
			
		||||
repository = "https://github.com/ticki/termion"
 | 
			
		||||
documentation = "https://docs.rs/termion"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										14
									
								
								src/event.rs
								
								
								
								
							
							
						
						
									
										14
									
								
								src/event.rs
								
								
								
								
							| 
						 | 
				
			
			@ -226,19 +226,19 @@ where I: Iterator<Item = Result<u8, Error>>
 | 
			
		|||
                                // Special key code.
 | 
			
		||||
                                b'~' => {
 | 
			
		||||
                                    let str_buf = String::from_utf8(buf).unwrap();
 | 
			
		||||
                                    
 | 
			
		||||
                                    // This CSI sequence can be a list of
 | 
			
		||||
                                    // semicolon-separated numbers.
 | 
			
		||||
 | 
			
		||||
                                    // This CSI sequence can be a list of semicolon-separated
 | 
			
		||||
                                    // numbers.
 | 
			
		||||
                                    let nums: Vec<u8> = str_buf.split(';')
 | 
			
		||||
                                        .map(|n| n.parse().unwrap())
 | 
			
		||||
                                        .collect();
 | 
			
		||||
                                    
 | 
			
		||||
 | 
			
		||||
                                    if nums.is_empty() {
 | 
			
		||||
                                        return error;
 | 
			
		||||
                                    }
 | 
			
		||||
                                    
 | 
			
		||||
                                    // TODO: handle multiple values for key modififiers
 | 
			
		||||
                                    // (ex: values [3, 2] means Shift+Delete)
 | 
			
		||||
 | 
			
		||||
                                    // TODO: handle multiple values for key modififiers (ex: values
 | 
			
		||||
                                    // [3, 2] means Shift+Delete)
 | 
			
		||||
                                    match nums[0] {
 | 
			
		||||
                                        1 | 7 => Event::Key(Key::Home),
 | 
			
		||||
                                        2 => Event::Key(Key::Insert),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue