class_docstr: This is the main class interface for Pexpect. Use this class to start
  and control child applications. 
class_docstr_tok: ["This","is","the","main","class","interface","for","Pexpect",".","Use","this","class","to","start","and","control","child","applications","."]
docstr: Helper method that wraps send() with mnemonic access for sending control
  character to the child (such as Ctrl-C or Ctrl-D).  For example, to send
  Ctrl-G (ASCII 7, bell, '')::
  
      child.sendcontrol('g')
  
  See also, sendintr() and sendeof().
docstr_tok: ["Helper","method","that","wraps","send","(",")","with","mnemonic","access","for","sending","control","character","to","the","child","(","such","as","Ctrl-C","or","Ctrl-D",")",".","For","example",",","to","send","Ctrl-G","(","ASCII","7",",","bell",",","'\u0007","'",")",":",":","child.sendcontrol","(","'","g","'",")","See","also",",","sendintr","(",")","and","sendeof","(",")","."]
code: def sendcontrol(self, char):
      """Helper method that wraps send() with mnemonic access for sending control
      character to the child (such as Ctrl-C or Ctrl-D).  For example, to send
      Ctrl-G (ASCII 7, bell, '\a')::
  
          child.sendcontrol('g')
  
      See also, sendintr() and sendeof().
      """
      n, byte = self.ptyproc.sendcontrol(char)
      self._log_control(byte)
      return n
  
imports: import os
  import sys
  import time
  import pty
  import tty
  import errno
  import signal
  from contextlib import contextmanager
  import ptyprocess
  from ptyprocess.ptyprocess import use_native_pty_fork
  from .exceptions import ExceptionPexpect, EOF, TIMEOUT
  from .spawnbase import SpawnBase
  from .utils import which, split_command_line, select_ignore_interrupts, poll_ignore_interrupts
label_desc: Use image node_id 16 for calling the spawn obj's underlying member method code with example usage: obj.sendcontrol(char) and returns: n