Skip to content

Commit 79f9d6f

Browse files
authored
prepare: do not set termios.OPOST (#5)
> OPOST Enable implementation-defined output processing. According to [1] this is likely only turning "\n" into "\r\n", which is required when another thread is dumping output, where currently this would result into the following with pdb++: waited waited waited (Pdb++) --Return-- > /…/t-threads.py(19)__t2__()->None -> __import__('pdb').pdb.set_trace() 1: https://viewsourcecode.org/snaptoken/kilo/02.enteringRawMode.html#turn-off-all-output-processing
1 parent d1e0fd2 commit 79f9d6f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pyrepl/unix_console.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,6 @@ def prepare(self):
359359
raw.iflag |= termios.ICRNL
360360
raw.iflag &= ~(termios.BRKINT | termios.INPCK |
361361
termios.ISTRIP | termios.IXON)
362-
raw.oflag &= ~termios.OPOST
363362
raw.cflag &= ~(termios.CSIZE | termios.PARENB)
364363
raw.cflag |= (termios.CS8)
365364
raw.lflag &= ~(termios.ICANON | termios.ECHO |

0 commit comments

Comments
 (0)