perllearner has asked for the wisdom of the Perl Monks concerning the following question:
The pattern on 'H's fills the display as expected. The issue is that after about 50 loops or so, i get "tty-level buffer overflows" messages continously whenever the next syswrite takes place and eventually the display (or) serial port hangs. i think the issue is with the buffer handling with the serial port. anyone would know how i can set up buffer overflow control so that i dont jam up the serial port? thanks in advance..open DisplayIO, "+> /dev/cuaa1" # open serial (display) device or die ("Can't open tty: $!") ; sub main () { #code to loop &scrollTest several times with a sleep of 1 sec. +.. } sub process_keyboard_input () { syswrite DisplayIO, $KeyBoardInput ; # write to display } # process_keyboard_input sub scrollTest { syswrite DisplayIO, sprintf ("%c%c", 0xfe, 0x51); $KeyBoardInput = sprintf ("%cE%cX%s", 0xfe,0xfe,'HHHHHHHHHHHHH +HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH') +; process_keyboard_input (); sleep(1); } ..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: tty-level buffer overflows
by sgifford (Prior) on Jun 22, 2004 at 23:20 UTC |