mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
Workaround https://github.com/microsoft/terminal/issues/16606 (#8506)
Fixes #8504
This commit is contained in:
@@ -39,7 +39,7 @@ pub const InitCommand = struct {
|
||||
|
||||
Output.flush();
|
||||
|
||||
var input = try std.io.getStdIn().reader().readUntilDelimiterAlloc(alloc, '\n', 1024);
|
||||
var input = try bun.buffered_stdin.reader().readUntilDelimiterAlloc(alloc, '\n', 1024);
|
||||
if (strings.endsWithChar(input, '\r')) {
|
||||
input = input[0 .. input.len - 1];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user