Package: octave Version: 4.2.2-2 Severity: normal To reproduce: you need serial port device and Internet connection to download instrument- control package install packages octave and liboctave-dev apt-get install octave liboctave-dev run Octave gui in Octave command line call: pkg install -forge instrument-control
create file onInit.m with following content: pkg load instrument-control s1 = serial("/dev/ttyUSB0", 115200) srl_flush(s1) delay = 0.22 while 1 data = srl_read(s1, 1) if data == "s" sleep(delay) srl_write(s1, "PRUSA thx\n") endif endwhile replace /dev/ttyUSB0 with your serial port device. Run onInit from Octave gui Command Window >> onInit hit ctrl+c expected behaviour: script onInit is terminated actual behaviour: in Command Window following line is written for each ctrl+c pressed srl_read: Interrupting... It is also not possible to terminate GNU Octave gui by closing its window, or clicking File/Exit or hitting ctrl+q. -- System Information: Debian Release: 9.0 APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.15.0-1-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages octave depends on: ii libamd2 1:4.5.5-1 ii libarpack2 3.5.0+real-2 ii libasound2 1.1.3-5 ii libblas3 [libblas.so.3] 3.7.1-4 ii libbz2-1.0 1.0.6-8.1 ii libc6 2.27-3 ii libcamd2 1:4.5.5-1 ii libccolamd2 1:4.5.5-1 ii libcholmod3 1:4.5.5-1 ii libcolamd2 1:4.5.5-1 ii libcxsparse3 1:5.2.0+dfsg-1 ii libfftw3-double3 3.3.7-1 ii libfftw3-single3 3.3.7-1 ii libfltk-gl1.3 1.3.4-7 ii libfltk1.3 1.3.4-7 ii libfreetype6 2.8.1-1 ii libgcc1 1:8-20180321-1 ii libgl1 1.0.0-2 ii libglpk40 4.65-2 ii libglu1-mesa [libglu1] 9.0.0-2.1 ii libgomp1 8-20180321-1 ii liblapack3 [liblapack.so.3] 3.7.1-4 ii liboctave4 4.2.2-2 ii libosmesa6 17.3.3-1 ii libportaudio2 19.6.0-1 ii libqhull7 2015.2-4 ii libqrupdate1 1.1.2-2+b1 ii libqscintilla2-qt5-13 2.10.2+dfsg-4+b1 ii libqt5core5a 5.9.2+dfsg-12 ii libqt5gui5 5.9.2+dfsg-12 ii libqt5network5 5.9.2+dfsg-12 ii libqt5opengl5 5.9.2+dfsg-12 ii libqt5printsupport5 5.9.2+dfsg-12 ii libqt5widgets5 5.9.2+dfsg-12 ii libsndfile1 1.0.27-3 ii libstdc++6 8-20180321-1 ii libsuitesparseconfig5 1:5.2.0+dfsg-1 ii libumfpack5 1:4.5.5-1 ii libx11-6 2:1.6.4-3 ii octave-common 4.2.2-2 ii texinfo 6.3.0.dfsg.1-1+b2 ii zlib1g 1:1.2.8.dfsg-5 Versions of packages octave recommends: ii default-jre-headless 2:1.8-59 pn epstool <none> pn gnuplot-qt | gnuplot-x11 | gnuplot-nox <none> pn libopenblas-base | libatlas3-base <none> ii octave-doc 4.2.2-2 pn pstoedit <none> Versions of packages octave suggests: ii liboctave-dev 4.2.2-2 -- no debconf information