Output screenlet, limited number of characters displayed

Asked by Macs

When running the output screenlet I seem to be capped by a certain total number of desplayable characters.
If I run
for i in `seq 1 50`; do echo $i$i$i$i$i$i$i$i$i$i$i$i ; done

I can only see
393939393939393939393939
404040404040404040404040
414141414141414141414141
424242424242424242424242
434343434343434343434343
444444444444444444444444
454545454545454545454545
464646464646464646464646
474747474747474747474747
484848484848484848484848
494949494949494949494949
505050505050505050505050

if I run
for i in `seq 1 50`; do echo $i$i$i$i$i$i$i$i$i ; done

the output will only be:
535353535353535
363636363636363636
373737373737373737
383838383838383838
393939393939393939
404040404040404040
414141414141414141
424242424242424242
434343434343434343
444444444444444444
454545454545454545
464646464646464646
474747474747474747
484848484848484848
494949494949494949
505050505050505050

Is this caused by some memory allocations restrictions? If yes is it configurable?

Question information

Language:
English Edit question
Status:
Expired
For:
Screenlets Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Macs (weedout) said :
#1

This helps but I am not sure what are the consequences... what I am trying to achieve is to have a proper output.. if I can this will be my most used screenlet!

*** /usr/share/screenlets/Output/OutputScreenlet.py 2009-01-28 17:40:11.000000000 +0000
--- /usr/share/screenlets/Output/OutputScreenlet2.py 2009-01-28 17:40:47.000000000 +0000
***************
*** 127,134 ****

   def update(self):
    self.output = commands.getoutput(self.run).replace('&','').replace('<','').replace('@','')
! # if len(self.output) > 300:
! # self.output = self.output[len(self.output)-300:]
    self.redraw_canvas()
    return True

--- 127,134 ----

   def update(self):
    self.output = commands.getoutput(self.run).replace('&','').replace('<','').replace('@','')
! if len(self.output) > 300:
! self.output = self.output[len(self.output)-300:]
    self.redraw_canvas()
    return True

thank you
Max

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.