(s *Shell, line []string)
| 245 | } |
| 246 | |
| 247 | func handleInterrupt(s *Shell, line []string) error { |
| 248 | if s.interrupt == nil { |
| 249 | return errNoInterruptHandler |
| 250 | } |
| 251 | c := newContext(s, nil, line) |
| 252 | s.interruptCount++ |
| 253 | s.interrupt(c, s.interruptCount, strings.Join(line, " ")) |
| 254 | return c.err |
| 255 | } |
| 256 | |
| 257 | func handleEOF(s *Shell) error { |
| 258 | c := newContext(s, nil, nil) |