Skip to content

Commit

Permalink
Merge pull request #11 from tompng/swawn_without_bash_stty
Browse files Browse the repository at this point in the history
PTY.swawn without using bash and stty
  • Loading branch information
tompng committed Sep 16, 2024
2 parents 8f79fe9 + 29c903d commit 6f0014e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/yamatanooroti/vterm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ def start_terminal(height, width, command, wait: 0.01, timeout: 2, startup_messa
@wait = wait
@result = nil

@pty_output, @pty_input, @pid = PTY.spawn('bash', '-c', %[stty rows #{height.to_s} cols #{width.to_s}; "$@"], '--', *command)
@pty_output, @pty_input, @pid = PTY.spawn(*command)
@pty_output.winsize = [height, width]

@vterm = VTerm.new(height, width)
@vterm.set_utf8(true)
Expand Down

0 comments on commit 6f0014e

Please sign in to comment.