For example, when I type following command,
echo line | (cat >/dev/null; vi)
even wrapped in another shell,
sh -c 'echo line | (cat >/dev/null; vi)'
and returned from Vim, now it won't display carriage return any more.
How can I do to make it again display the new lines? (Without exit.)
try one or both of these:
ctrl+c
, then type reset
, then press enter
.ctrl+c
, then type stty sane
, then press enter
.the ctrl+c
is to clear any other characters you might have typed in the command line.
reset
or stty sane
usually fixes a messed up terminal. Read the man page of reset
and stty
for more information.
端末が十分に混乱している場合は、それが均一でないctrl+c
かenter
、期待どおりに機能しない可能性があることに注意してください。文字を入力する方法は他にもありますが、それらには古代の黒魔術が含まれます。その場合、通常はターミナルを閉じて別のターミナルを起動する方が簡単です。
ターミナルの内部動作についての私の理解は、それがなぜまたはどのようにそれを行うのかを説明するのに十分なほど深くはありません。
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加