Honestly I had no idea what ctrl+d even did, I just knew it was a convenient way for me to close all the REPL programs I use. The fact that it is similar to pressing enter really surprised me, so I wanted to share this knowledge with you :)
Honestly I had no idea what ctrl+d even did, I just knew it was a convenient way for me to close all the REPL programs I use. The fact that it is similar to pressing enter really surprised me, so I wanted to share this knowledge with you :)
Yes, although
Ctrl-M
would be the “Carriage Return” character (\r
). For the “Line Feed” newline character (\n
) the Control combination would beCtrl-J
. Both of them would normally produce a new line when you press them on most terminals.That’s why if you open in nano/vim a file with Windows style EOL (
/r/n
), you might see a strange^M
symbol at the end of each line.