interface/comcodes.rb in trepanning-0.1.4 vs interface/comcodes.rb in trepanning-0.1.6
- old
+ new
@@ -1,20 +1,21 @@
# -*- coding: utf-8 -*-
-# Copyright (C) 2011 Rocky Bernstein <rockyb@rubyforge.net>
+# Copyright (C) 2011, 2012 Rocky Bernstein <rockyb@rubyforge.net>
# Communication status codes
module Trepanning
# Most of these go from debugged process to front-end
# client interface. COMMAND goes the other way.
module RemoteCommunication
unless defined?(PRINT)
- PRINT = '.'
- COMMAND = 'C'
- CONFIRM_TRUE = 'Y'
- CONFIRM_FALSE = 'N'
+ PRINT = '.' # Server wants to print
+ COMMAND = 'C' # read a command
+ CONFIRM_TRUE = 'Y' # Confirm read, default true
+ CONFIRM_FALSE = 'N' # Confirm read, default false
CONFIRM_REPLY = '?'
- QUIT = 'q'
- PROMPT = 'p'
- RESTART = 'r'
+ QUIT = 'q' # End debug session
+ PROMPT = 'p' # Write prompt
+ SYNC = 's' # Resynchronize communication
+ RESTART = 'r' # Restart
end
end
end