Skip to content

Commit

Permalink
fix(core): prevent device status report from being printed during pty…
Browse files Browse the repository at this point in the history
… execution
  • Loading branch information
AgentEnder committed Apr 26, 2024
1 parent 12dd872 commit 887629a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/nx/src/native/pseudo_terminal/pseudo_terminal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ pub fn create_pseudo_terminal() -> napi::Result<PseudoTerminal> {
let quiet = quiet_clone.load(Ordering::Relaxed);
trace!("Quiet: {}", quiet);
if !quiet {
if stdout.write_all(&buf[0..len]).is_err() {
let content = String::from_utf8_lossy(&buf[0..len]).replace("\x1B[6n", "");
if stdout.write_all(content.as_bytes()).is_err() {
break;
} else {
let _ = stdout.flush();
Expand Down
2 changes: 1 addition & 1 deletion packages/nx/src/utils/command-line-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface NxArgs {
}

export function createOverrides(__overrides_unparsed__: string[] = []) {
let overrides =
let overrides: Record<string, any> =
yargsParser(__overrides_unparsed__, {
configuration: {
'camel-case-expansion': false,
Expand Down

0 comments on commit 887629a

Please sign in to comment.