Specifically, print(val) writes only "val\n" on cygwin when in tty.setraw mode.