~nhomar/factfis/encoding_mod

« back to all changes in this revision

Viewing changes to consola.py

  • Committer: aahahocevar
  • Date: 2010-08-26 04:37:50 UTC
  • Revision ID: svn-v4:a602589e-68b8-0a4f-9a90-a24b7b1a38c7:trunk:9
-Ajuste de 15seg  en el timeout de lectura

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        def do_encabc(self,cmd):
57
57
                arr=cmd.split(' ',1)
58
58
                ln=arr[0].zfill(2)
59
 
                msj='PH'+ln+arr[1][0:40].center(40)
 
59
                msj='PH'+ln+arr[1][0:39].center(40)
60
60
                imp.SimpleCmd(msj)
61
61
 
62
62
        def do_reset(self, cmd):
134
134
        def do_gaveta(self, cmd):
135
135
                imp.SimpleCmd('w')
136
136
 
 
137
        def do_leer(self, cmd):
 
138
                imp._read(1)
 
139
 
137
140
        def do_version(self, cmd):
138
141
                imp.SimpleCmd('x')
139
142
 
148
151
        def help_display(self):
149
152
                print "Envia un mensaje al display"
150
153
 
 
154
        def help_leer(self):
 
155
                print "Lee 1 byte"
 
156
 
151
157
        def help_encabc(self):
152
158
                print "Envia el encabezado para los documentos "
153
159
                print "Ej. encabc [1-8] TITULO DE EJEMPLO"