Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

clearing console scroll buffer?

 [1/7] from: semseddinm:bircom at: 21-Jan-2010 16:16


Hi, Is it possible to clear R2 console scroll buffer? prin "^L" ;clears screen but do not clear the buffer

 [2/7] from: gregg:pointillistic at: 21-Jan-2010 11:53


Hi Semseddin, SMB> Is it possible to clear R2 console scroll buffer? SMB> prin "^L" ;clears screen but do not clear the buffer Interesting. I've never needed to do that. When writing console apps (which haven't been many), I haven't made the screen scroll, so ^(esc)[J or "^L" has been fine. I don't think we can do it without access to the window itself, or a method provided by RT to do just htat. -- Gregg

 [3/7] from: sqlab:gmx at: 22-Jan-2010 8:35


system/console/history is the place, where you should look. This allows some more tricks, as replaying your session etc. . So
>> clear system/console/history
should do, what you are looking for. On 21.01.2010 15:16, Semseddin Moldibi [ Bircom ] wrote:

 [4/7] from: semseddinm:bircom at: 22-Jan-2010 10:00


Unfourtunately this is not I was looking for. system/console/history holds the lines I wrote. But I mean that the window scroll buffer. For example I print some output, say 500 rows, then clear the screen with prin "^L" (and clear system/console/history, which is not the case) but when user scrolls window up using mouse-wheel or scroll bar, then old rows will be shown. There is Scroll Buffer Lines settings in Settings window on View Console. So I tought that it is stored somewhere in system object. By the way when I change this Scroll Buffer Lines setting buffer gets cleared

 [5/7] from: compkarori::gmail at: 22-Jan-2010 1:51


Try this call/show form system/options/boot quit :) On Fri, Jan 22, 2010 at 9:00 PM, Semseddin Moldibi [ Bircom ] <semseddinm-bircom.com> wrote:
> Unfourtunately this is not I was looking for. > system/console/history holds the lines I wrote.
<<quoted lines omitted: 38>>
> To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject.
-- Graham Chiu http://www.compkarori.co.nz:8090/ Synapse - the use from anywhere EMR.

 [6/7] from: semseddinm:bircom at: 22-Jan-2010 10:22


:))) It works without form. call/show system/options/boot quit

 [7/7] from: sqlab:gmx at: 22-Jan-2010 10:16


On 22.01.2010 09:06, Graham Chiu wrote:
> Try this > > call/show form system/options/boot quit > > :) >
This is drastic; scraping instead of cleansing.) Then you could also set the scroll buffer lines to 25.
> On Fri, Jan 22, 2010 at 9:00 PM, Semseddin Moldibi [ Bircom ] > <semseddinm-bircom.com> wrote:
<<quoted lines omitted: 13>>
>> >>
not always. If you use a large buffer, it seems to depend of other cirscumstamces.

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted