catching the prompt

  • Teemu Pennanen

    Teemu Pennanen - 2002-06-11

    how can i catch the prompt to the command window? in tinyfugue this was done with a HOOK, i f i remember correctly

    • Davis Herring

      Davis Herring - 2002-08-08

      If you type the following line in the entry area and press ENTER, it will be replaced by the last line in the current display:

      /tcl [/inbuf] insert 1.0 [[/display] get "end-1lines linestart" "end-1lines lineend"]

      You probably would want to make it a macro or a keyboard binding (or a trigger if you'll always want it to happen in a certain situation).  If you do make it one of those, you can strip off the '/tcl' and instead mark the 'interpret as TCL' checkbox where you make it.

      Disclaimer: This is probably not the best solution!


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks