go.crypto/ssh/terminal: support Unicode entry.

Previously, terminal only supported ASCII characters. This change
alters some []byte to []rune so that the full range of Unicode is
supported. The only thing that doesn't appear to work correctly are
grapheme clusters as the code still assumes one rune per glyph. Still,
this change allows many more languages to work than did previously.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/13704043
2 files changed
tree: 8e25c40fca7663b2aab402b3ef6abba244f43754
  1. terminal.go
  2. terminal_test.go
  3. util.go
  4. util_bsd.go
  5. util_linux.go