• Home
  • Raw
  • Download

Lines Matching +full:use +full:- +full:pty

36         print(f"use libedit emulation? {is_editline}")
80 # test write-clear-read == nop
146 rc, stdout, stderr = assert_python_ok('-c', 'import readline',
147 TERM='xterm-256color')
159 # bpo-44949: Sometimes, the newline character is not written at the
165 # bpo-44949: Sometimes, the newline character is not written at the
172 # bpo-29240: On FreeBSD, if the LC_CTYPE locale is C or POSIX,
173 # writing and reading non-ASCII bytes into/from a TTY works, but
174 # readline or ncurses ignores non-ASCII bytes on read.
194 readline.parse_and_bind(r'bind ^B ed-prev-char')
196 readline.parse_and_bind(r'bind -s ^A "{}"'.format(macro))
198 readline.parse_and_bind(r'Control-b: backward-char')
200 readline.parse_and_bind(r'set disable-completion off')
201 readline.parse_and_bind(r'set show-all-if-ambiguous off')
202 readline.parse_and_bind(r'set show-all-if-unmodified off')
203 readline.parse_and_bind(r'Control-a: "{}"'.format(macro))
234 input = b"\x01" # Ctrl-A, expands to "|t\xEB[after]"
237 input += b"x\t" # Complete "t\xEBx" -> "t\xEBxt"
244 # Non-macOS libedit does not handle non-ASCII bytes
247 # get_endidx(). Ex: libedit2 3.1-20191231-2 on Debian
258 # bpo-45195: Sometimes, the newline character is not written at the
263 # - readline: history size was added in 6.0
265 # - editline: history size is broken on OS X 10.11.6.
268 "this readline version does not support history-size")
276 f.write(b"set history-size %d\n" % history_size)
304 self.assertEqual(lines[-1].strip(), b"last input")
308 pty = import_module('pty')
310 [master, slave] = pty.openpty()
311 args = (sys.executable, '-c', script)
325 # work with pseudo-terminals on OS X < 10.9 (Issue 20365) and Open
328 # to use with select().