strip escape codes from prompts
This commit is contained in:
		
							parent
							
								
									7c692758ee
								
							
						
					
					
						commit
						3017a23be7
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -134,6 +134,7 @@ process.stdin.on("data", async function (key) {
 | 
				
			||||||
          );
 | 
					          );
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
 | 
					        key = key.replace("\u001b", "");
 | 
				
			||||||
        process.stdout.write(key);
 | 
					        process.stdout.write(key);
 | 
				
			||||||
        comcord.state.promptInput += key;
 | 
					        comcord.state.promptInput += key;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue