if(ctrl-z == close_program) { return "Keep repeating ctrl-z then running emacs in the same terminal window."; } else { printf("ctrl-z backgrounds the running process so it still runs and you can foreground it with `fg`."); printf("Don't be using ctrl-z to close programs unless you like your computer bursting into flames."); } Other than that, keep up the good work!
You don't need to ctrl+s before ctrl+x to save and exit nano. If there are unsaved changes when exiting with ctrl+x nano will prompt you about saving. vim can also write and close with `:x` instead of `:wq`. ctrl+z is not used for closing anything, it suspends the current running program (only while used in terminal, not in desktop). There will still be an idle instance of the emacs in the background, which can be brought to the foreground with `fg`. The shortcuts shown at 12:50 show that emacs can be closed by using ctrl+x and then ctrl+c (as shown in the second column third row).
@@rakandhiyaaa92 oh yeah, 've been reading the info documentation pages for various gnu utils, and they all use C too, yeah, i was not right to point that
I really like "Micro". Until recently, I was using Nano. Micro is like having a CLI of Gedit.
if(ctrl-z == close_program)
{
return "Keep repeating ctrl-z then running emacs in the same terminal window.";
}
else
{
printf("ctrl-z backgrounds the running process so it still runs and you can foreground it with `fg`.");
printf("Don't be using ctrl-z to close programs unless you like your computer bursting into flames.");
}
Other than that, keep up the good work!
You don't need to ctrl+s before ctrl+x to save and exit nano. If there are unsaved changes when exiting with ctrl+x nano will prompt you about saving.
vim can also write and close with `:x` instead of `:wq`.
ctrl+z is not used for closing anything, it suspends the current running program (only while used in terminal, not in desktop). There will still be an idle instance of the emacs in the background, which can be brought to the foreground with `fg`. The shortcuts shown at 12:50 show that emacs can be closed by using ctrl+x and then ctrl+c (as shown in the second column third row).
I use vi all the time because I am too lazy to install vim or nano
to really quit emacs C-x C-c
the notation for ctrl is ^
if i hadnt seen the video, i would have not understood what u wanted to say 😅
@@yash1152 well many emacs/vim tutorial I remember referenced the Control key as C, so I suppose that was the convention lol
@@rakandhiyaaa92 oh yeah, 've been reading the info documentation pages for various gnu utils, and they all use C too, yeah, i was not right to point that
How can you use vim like this? This was a sin!