Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!ucsd!ames!haven!adm!smoke!ibd!heilpern From: heilpern@ibd.BRL.MIL (Mark A. Heilpern ) Newsgroups: comp.unix.questions Subject: Re: Unix xmas tree Message-ID: <234@ibd.BRL.MIL> Date: 3 Jan 89 14:17:30 GMT References: <47800020@uxe.cso.uiuc.edu> Reply-To: heilpern@brl.arpa (Mark A. Heilpern (IBD) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 21 In article <47800020@uxe.cso.uiuc.edu> gupta@uxe.cso.uiuc.edu writes: > >I received this "cute" file last week and when you do a 'cat' or 'more' on >it then it'll draw a christmas tree and a train circling it. It only works >on vt100s and I've been trying to figure out how it works. Anyone familiar >with this? The program was [most likely] originally written in 'C', or any other language that makes use of the curses library for screen manipulation. Once written and compliled, the output was redirected into a file, while the user had TERM=vt100 set. [That is why it only works on a vt100.] The industrious user may want to examine the file by dumping it, or even using an emacs which displays control codes as ^A rather than it's affect. Here, you will find a huge series of control codes which instruct the cursor to go in 'non-standard' directions, i.e. up, down, & backwards. Happy Hunting! -- |\/| | | | _ |< / \_(_(_)\_/ \______