Kurtis Rader

Results 691 comments of Kurtis Rader

I was going to post a solution similar to @hanche's but he beat me to it. Whether this functionality should be builtin depends on how practical it is to implement...

> @hanche's solution has another problem. If you ctrl+c out while in the prompt, the tty is never restored and echo remains off. I can't reproduce that on macOS. on...

> I am also on macos. I was incorrect. Ctrl-C does indeed not work. I can't parse that. Your original problem statement was that Ctrl-C does not work so I...

I'll also point out that the whole `try...finally...` to restore the tty modes doesn't do anything useful since the `finally` block isn't run when Ctrl-C is handled. See https://github.com/elves/elvish/issues/954. The...

The change I have pending (soon to be a pull-request) to have `pprint` vertically align the values of maps adds a new dependency on `github.com/mattn/go-runewidth`. I'll try to find a...

So I am not sure how to interpret the result of running the following program. On my platform, iTerm on macOS, I see the following output: ``` ⌛ 2 ®...

FWIW, I wrote a small program to compare the display width reported by the Elvish `wcwidth` package and the `github.com/mattn/go-runewidth`. The latter returns two for codepoint U+231B while the former...

It's unclear what you're proposing. The documentation states that at this time iterating over the keys of a map, pseudo or otherwise, should be treated as unordered. The fact that...

@dunsany: It was unclear to me because you wrote "Map is defined as a value containing unordered key-value pairs" and a couple of similar statements. Implying you were bothered by...

> As this is a function introspection feature, nobody would expect this — when you analyze a function object, there is obviously no way to know how it will be...