• Hana (Hyang-Ah) Kim's avatar
    cmd/pprof: disable readline UI support for TERM=dumb · 5e70b132
    Hana (Hyang-Ah) Kim authored
    In general, dumb terminal indicates terminal with limited capability.
    It may provide no support for special character sequences, e.g., no
    handling of ANSI escape sequences. Its input/output handling behavior
    may deviate from what's described in termios or terminfo. E.g., in
    the shell in emacs, even after successfully setting the terminal to
    raw mode, the terminal behaves as if it's still operating in canonical
    mode since emacs is doing input processing first.
    
    Readline support can be broken in various ways in dumb terminal mode,
    so we want to disable readline or advanced UI features. The easiest
    way to detect dumb terminal is to check the environment variable "TERM".
    
    Fixes #26254
    
    Change-Id: I6b652eb555bc03b84405aae08b0b25d111fbb8b0
    Reviewed-on: https://go-review.googlesource.com/122879Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    5e70b132
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
buildid Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
test2json Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...