I would like my tcsh script to launch an editor (e.g., vi, emacs):
#!/bin/tcsh vi my_file
This starts up vi with my_file but first displays a w
I answered my own question! You have to redirect terminal input and output:
#!/bin/tcsh vi my_file < `tty` > `tty`