abiosoft / ishell

Library for creating interactive cli applications.
MIT License
1.68k stars 195 forks source link

Support to deal with ctrl-z #131

Closed m9rco closed 4 years ago

m9rco commented 4 years ago

By the following,I want to close any out of the way the current session,But when the user use Ctrl -z will switch into the background

    shell.Interrupt(func(c *ishell.Context, count int, input string) {
      return
    })
    shell.EOF(func(c *ishell.Context) {
      return
    })
m9rco commented 4 years ago

https://github.com/abiosoft/ishell/pull/133 Fix the problem