github.com/HashDataInc/packer@v1.3.2/common/bootcommand/driver.go (about)

     1  package bootcommand
     2  
     3  const shiftedChars = "~!@#$%^&*()_+{}|:\"<>?"
     4  
     5  // BCDriver is our access to the VM we want to type boot commands to
     6  type BCDriver interface {
     7  	SendKey(key rune, action KeyAction) error
     8  	SendSpecial(special string, action KeyAction) error
     9  	// Flush will be called when we want to send scancodes to the VM.
    10  	Flush() error
    11  }