Input Line Evaluation
- To: mathgroup at smc.vnet.net
- Subject: [mg42721] Input Line Evaluation
- From: jmt <jmt at dxdydz.net>
- Date: Wed, 23 Jul 2003 00:25:13 -0400 (EDT)
- Reply-to: jmt at dxdydz.net
- Sender: owner-wri-mathgroup at wolfram.com
I am trying to have every input line commands managed by Mathematica and sent to another program. I thought I could use $Pre and a function t that performs a redirection to the other program, something like : SetAttributes[$Pre,HoldAll] $Pre:=(t[#];Identity[#])& but, with for instance, t = Print[Unevaluated[#]]& 1+1 (ENTER TO EVALUATE) 2 Out[]= 2 How can I have the t function get the full input line ? Any ideas ? jmt