Skip to content

Commit

Permalink
Fix both_tty crash on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
adfoster-r7 committed Sep 25, 2024
1 parent 8e2dbbb commit 03a02ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/rex/ui/text/input.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ def intrinsic_shell?
false
end

def tty?
false
end

def update_prompt(new_prompt = '', new_prompt_char = '')
self.prompt = new_prompt + new_prompt_char
end
Expand Down
4 changes: 4 additions & 0 deletions lib/rex/ui/text/output.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ def puts(*args)

nil
end

def tty?
false
end
end

end
Expand Down

0 comments on commit 03a02ca

Please sign in to comment.