This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
hron84's profile picture

Program termination does not work

Started by hron84, 27 October 2013 - 02:58 AM
hron84 #1
Posted 27 October 2013 - 03:58 AM
Title: Program termination does not works

Hi! I am a beginner in using of ComputerCraft, but I faced into a problem mentioned in the title. When I try pressing Ctrl+T (in the docs this keystroke mentioned as terminate key) nothing happens, the program what actually running is continues run. I tried it with a little program too (see below). I tried it with both FeedTheBeast 1.5.2 modpack and my up-to-date 1.6.4.


-- Terminatin example
while true do
  print "Press Ctrl+T"
  sleep(1)
end

In my 1.6.4 version, I use following mods:
  • BuildCraft 4.1.0
  • CodeChickenCore 1.6.4
  • ComputerCraft 1.57
  • DamageIndicators
  • EquivalentExchange 3
  • Forestry 2.3.0.3
  • IndustrialCraft 2_1.118.401-lf
  • InventoryTweaks 1.56-b77
  • ironchest 5.4.1.628
  • MapWriter 2.0.11
  • Natura 2.1.9
  • NEI 1.6.1.5
  • NEIAddons 1.9.0.r40
  • NEIPlugins 1.1.0.1
  • Tinkers Construct 1.4.6
  • TreeCapitator (Forge version) 1.6.4.r02
I double-checked my Controls menu both in FTB and MC 1.6.4 and no keystroke binded to Ctrl+T so I think it is not a keystroke-collision.

I tried the first code mentioned in this post, and it says only key20 but no 'terminate' event.
CCJJSax #2
Posted 28 October 2013 - 01:26 AM
The other mods you are using have nothing to do with this. The problem is probably that you aren't holding down Ctrl+T long enough. I think you have to hold it down for 3 seconds or so.
DerKoch #3
Posted 28 October 2013 - 05:59 AM
Or you tabbed back into the game with the computer still open. You have to click in the minecraft window to get the focus back to the game. Happens to me quite a lot because I program in Notepad++ and test the code directly on the computers ingame.