Add display initial to engine execution

This commit is contained in:
lash
2023-04-06 09:14:53 +01:00
parent c748daa8f7
commit f0bfff3a20
6 changed files with 29 additions and 9 deletions

View File

@@ -394,6 +394,11 @@ func(st *State) GetInput() ([]byte, error) {
// SetInput is used to record the latest client input.
func(st *State) SetInput(input []byte) error {
// if input == nil {
// log.Printf("clearing input")
// st.input = nil
// return nil
// }
l := len(input)
if l > 255 {
return fmt.Errorf("input size %v too large (limit %v)", l, 255)