Scratch lib for dropdown terminal