Results 56 comments of fzdwx

ok,我也出现了,我看看

@shiluanzzz 我好像找到原因了,跟这个方法有关https://github.com/muesli/cancelreader/blob/main/cancelreader_windows.go#L189 现在有一个简单的修复办法,你可以运行完demo之后在运行: ```go func main() { var originalMode uint32 windows.SetConsoleMode(windows.Handle(os.Stdin.Fd()), originalMode) } ``` 我晚上想想怎么写。

问题很诡异。 跟 `window#GetConsoleMode` 这个函数有关,当这个框架的程序运行时读取到的值是`992`, 但是默认的却是 `503`。就会导致这个情况出现。如果要改的话,只能强行把这个值改成 `503`。 demo code: ```go package main import ( "fmt" "golang.org/x/sys/windows" "unicode/utf16" ) var fileShareValidFlags uint32 = 0x00000007 func main() { var originalMode uint32 handle,...

@shiluanzzz 你拉下最新的代码,在试试

> Just so we understand correctly, you're saying that arrow keys don't work properly after a Bubble Tea program exits, right? Yes, my English may not be good, the description...

The problem seems to still exist... ``` git clone https://github.com/charmbracelet/bubbletea.git cd bubbletea\examples\textinput && go run . ``` press `` -> `^[[A` ![image](https://user-images.githubusercontent.com/65269574/192463219-babaf731-e986-4460-9602-d27e0eb9ed6a.png) --- Do I need to wait until release...

> No, that test was fine, and clearly there's still something wrong then. I'll re-open and investigate. How do you exit the textinput example? When I'm done typing, hit enter....

set `vite.config.ts#server.host=true`, like this ![image](https://user-images.githubusercontent.com/65269574/189673902-e68d4eac-557a-4a7a-9834-b743fbb692c2.png)