Programs need to be written in edit mode, direct mode is an interactive command line only.