| 1 | # -*- coding: utf-8 -*- | ||
| 2 | # Copyright (C) 2011 Rocky Bernstein <rockyb@rubyforge.net> | ||
| 3 | use warnings; use strict; | ||
| 4 | |||
| 5 | # Communication status codes | ||
| 6 | package Devel::Trepan::Interface::ComCodes; | ||
| 7 | |||
| 8 | our (@ISA, @EXPORT); | ||
| 9 | @ISA = qw(Exporter); | ||
| 10 | @EXPORT = qw(PRINT COMMAND CONFIRM_TRUE CONFIRM_FALSE CONFIRM_REPLY QUIT PROMPT RESTART SERVERERR); | ||
| 11 | |||
| 12 | # Most of these go from debugged process to front-end | ||
| 13 | # client interface. COMMAND goes the other way. | ||
| 14 | |||
| 15 | use constant PRINT => '.'; | ||
| 16 | use constant COMMAND => 'C'; | ||
| 17 | use constant CONFIRM_TRUE => 'Y'; | ||
| 18 | use constant CONFIRM_FALSE => 'N'; | ||
| 19 | use constant CONFIRM_REPLY => '?'; | ||
| 20 | use constant QUIT => 'q'; | ||
| 21 | use constant PROMPT => 'p'; | ||
| 22 | use constant RESTART => 'r'; | ||
| 23 | use constant SERVERERR => '!'; | ||
| 24 | |||
| 25 | # This constant indicates a protocol error accross the wire and is | ||
| 26 | # used internally for syncronization. | ||
| 27 | use constant PROTOERROR => 'X'; | ||
| 28 | |||
| 29 | 1; |