@when('we send "ctrl + d"')
def step_ctrl_d(context):
    context.cli.sendcontrol('d')
    context.exit_sent = True
Send Ctrl + D to hopefully exit.
dataset/ETHPy150Open dbcli/pgcli/tests/features/steps/step_definitions.py/step_ctrl_d