diff --git a/natives/hello/Makefile b/natives/hello/Makefile index 27600475..6805ac42 100644 --- a/natives/hello/Makefile +++ b/natives/hello/Makefile @@ -18,7 +18,7 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. -CFLAGS=-std=c99 -Wall -Wextra -I../../src/include -s -O3 +CFLAGS=-std=c99 -Wall -Wextra -I../../src/include -O2 TARGET=hello.so UNAME:=$(shell uname -s) diff --git a/src/mainclient/line.c b/src/mainclient/line.c index 702b54b8..650f6541 100644 --- a/src/mainclient/line.c +++ b/src/mainclient/line.c @@ -81,6 +81,7 @@ https://github.com/antirez/linenoise/blob/master/linenoise.c #include #include #include +#include #include @@ -349,6 +350,11 @@ static int line() { pos = len = 0; refresh(); break; + case 26: /* ctrl-z */ + norawmode(); + kill(getpid(), SIGSTOP); + rawmode(); + break; case 12: clear(); refresh();