aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/FileCheck/FileCheck.cpp
diff options
context:
space:
mode:
authorAugusto Noronha <augusto2112@me.com>2021-03-11 10:17:21 +0100
committerPavel Labath <pavel@labath.sk>2021-03-11 10:47:06 +0100
commit075de2d8a7567a6a39e8477407960aa2545b68c2 (patch)
tree5414315827c86e83e975a9ff9aca54f473caa42b /llvm/lib/FileCheck/FileCheck.cpp
parentbafe418d12e9aa94fc3de210b556c5452799f6b1 (diff)
downloadllvm-075de2d8a7567a6a39e8477407960aa2545b68c2.zip
llvm-075de2d8a7567a6a39e8477407960aa2545b68c2.tar.gz
llvm-075de2d8a7567a6a39e8477407960aa2545b68c2.tar.bz2
Save and restore previous terminal after setting the terminal for checking if terminal supports colors.
The call to "set_curterm" inside the "terminalHasColors" function breaks the EditLine configuration on some Linux distributions, causing certain characters that have functions bound to them to not show up and backspace to stop deleting characters (only visually). This patch ensures that term struct is restored after the routine for cheking if terminal supports colors is done, which fixes the aforementioned issue. Reviewed By: labath Differential Revision: https://reviews.llvm.org/D95230
Diffstat (limited to 'llvm/lib/FileCheck/FileCheck.cpp')
0 files changed, 0 insertions, 0 deletions