1. 2
  1.  

  2. 1

    A similar idea for the shell: http://vicerveza.homeunix.net/~viric/soft/ts/