Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 786cd0b

Browse files
committed
Use tty raw mode for terminal
Better than chasing individual flags.
1 parent 692a24f commit 786cd0b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cmd/coder/shell.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ func (cmd *shellCmd) Spec() cli.CommandSpec {
2929

3030
func enableTerminal() {
3131
out, err := exec.Command("stty", "-f", "/dev/tty",
32-
// Send
33-
"cbreak",
34-
"-echo",
35-
"intr", "undef",
32+
"raw",
3633
).CombinedOutput()
3734
if err != nil {
3835
flog.Fatal("configure tty: %v %q", err, out)

0 commit comments

Comments
 (0)