MCPcopy Index your code
hub / github.com/python/cpython / test_input_options

Method test_input_options

Lib/test/test_curses.py:766–810  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

764 curses.nl()
765
766 def test_input_options(self):
767 stdscr = self.stdscr
768
769 if self.isatty:
770 curses.nocbreak()
771 curses.cbreak()
772 curses.cbreak(False)
773 curses.cbreak(True)
774
775 curses.intrflush(True)
776 curses.intrflush(False)
777
778 curses.raw()
779 curses.raw(False)
780 curses.raw(True)
781 curses.noraw()
782
783 curses.noecho()
784 curses.echo()
785 curses.echo(False)
786 curses.echo(True)
787
788 curses.halfdelay(255)
789 curses.halfdelay(1)
790
791 stdscr.keypad(True)
792 stdscr.keypad(False)
793
794 curses.meta(True)
795 curses.meta(False)
796
797 stdscr.nodelay(True)
798 stdscr.nodelay(False)
799
800 curses.noqiflush()
801 curses.qiflush(True)
802 curses.qiflush(False)
803 curses.qiflush()
804
805 stdscr.notimeout(True)
806 stdscr.notimeout(False)
807
808 stdscr.timeout(-1)
809 stdscr.timeout(0)
810 stdscr.timeout(5)
811
812 @requires_curses_func('typeahead')
813 def test_typeahead(self):

Callers

nothing calls this directly

Calls 3

rawMethod · 0.80
metaMethod · 0.80
timeoutMethod · 0.45

Tested by

no test coverage detected