Quantcast
Channel: Active questions tagged terminal - Super User
Viewing all articles
Browse latest Browse all 526

How do I enable flow control in macOS Terminal?

$
0
0

In Linux, if I do Control-S, it pauses terminal output, and then Control-Q resumes terminal output.

I would like to replicate this behavior in MacOS, but despite trying different combinations of ixon and ixoff, I cannot seem to get Control-S to suspend output.

The experiment:

$ cathello world # Type Control S# Type foobar# On Linux, no foobar does not print.# On MacOS, foobar prints.

Terminal settings in Linux

speed 38400 baud; rows 58; columns 218; line = 0;intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff-iuclc -ixany -imaxbel -iutf8opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprtechoctl echoke -flusho -extproc

Terminal settings in MacOS

stty -aspeed 9600 baud; 43 rows; 175 columns;lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl        -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo        -extprociflags: -istrip icrnl -inlcr -igncr ixon ixoff ixany imaxbel iutf8        -ignbrk brkint -inpck -ignpar -parmrkoflags: opost onlcr -oxtabs -onocr -onlretcflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow        -dtrflow -mdmbufcchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;        eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;        min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T;        stop = ^S; susp = ^Z; time = 0; werase = ^W;

Viewing all articles
Browse latest Browse all 526

Trending Articles