zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
24.4k stars 1.16k forks source link

ctrl+s sets terminal to readonly and does not save file #3195

Closed gituser23234235234887 closed 3 months ago

gituser23234235234887 commented 3 months ago

Description of the problem or steps to reproduce

most terminals use ctrl+s to set terminal to readonly mode. this causes problems with saving files in micro.
is there any chance I can set it so that micro's keys are overrides the terminal's keys? or set micro to use alt instead of ctrl for everything?

Specifications

Commit hash: 2.0.9 OS: kubuntu jammy Terminal: konsole

dmaluka commented 3 months ago

Yes, it is possible, independently of micro. This is what I have in my ~/.bashrc:

# disable ctrl-s & ctrl-q crap
stty -ixon

This makes Ctrl-s work in micro, vim and any other terminal applications.