Mercurial > hg
comparison tests/test-commit-interactive-curses.t @ 38726:d79f3afb079e
curses: use "text" interface if TERM=dumb
Differential Revision: https://phab.mercurial-scm.org/D3948
author | Kyle Lippincott <spectral@google.com> |
---|---|
date | Mon, 16 Jul 2018 11:38:56 -0700 |
parents | 00368bc0a614 |
children | 5abc47d4ca6b |
comparison
equal
deleted
inserted
replaced
38725:c382c19ce9bd | 38726:d79f3afb079e |
---|---|
366 > interface = curses | 366 > interface = curses |
367 > EOF | 367 > EOF |
368 $ chunkselectorinterface | 368 $ chunkselectorinterface |
369 curses | 369 curses |
370 | 370 |
371 If TERM=dumb, we use text, even if the config says curses | |
372 $ chunkselectorinterface | |
373 curses | |
374 $ TERM=dumb chunkselectorinterface | |
375 text | |
376 (Something is keeping TERM=dumb in the environment unless I do this, it's not | |
377 scoped to just that previous command like in many shells) | |
378 $ TERM=xterm chunkselectorinterface | |
379 curses | |
380 | |
371 It is possible to override the default interface with a feature specific | 381 It is possible to override the default interface with a feature specific |
372 interface | 382 interface |
373 $ cp $HGRCPATH.pretest $HGRCPATH | 383 $ cp $HGRCPATH.pretest $HGRCPATH |
374 $ cat <<EOF >> $HGRCPATH | 384 $ cat <<EOF >> $HGRCPATH |
375 > [ui] | 385 > [ui] |