TinTin++ Mud Client Manual  
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
Buffer
space
Syntax: #buffer {home|up|down|end|find|get|lock|write|info}
space
The buffer command has various options to manipulate your scrollback buffer.
space
#buffer {home}
space
Moves you to the top of your scrollback buffer and displays the page. Enables scroll lock mode. Most useful when used in a macro.
space
#buffer {up}
space
Moves your scrollback buffer up one page and displays the page. Enables scroll lock mode. Most useful when used in a macro.
space
#buffer {down}
space
Moves your scrollback buffer down one page and displays the page. Enables scroll lock mode unless at the end. Most useful when used in a macro.
space
#buffer {end}
space
Moves you to the end of your scrollback buffer and displays the page. Disables scroll lock mode. Most useful when used in a macro.
space
#buffer {find} {[number]} {<string>}
space
Moves the buffer to the given string which can contain a regular expression. Optionally you can provide the number of matches to skip, allowing you to jump further back in the buffer.
space
#buffer {get} {<variable>} {<lower bound>} {[upper bound]}
space
Allows you to store one or several lines from your scrollback buffer (including color codes) into a variable. The lower and upper bound must be between 1 and the size of the buffer. If the upper bound is omitted the given line is stored as a standard variable. If an upper bound is given the lines between the two bounds are stored as a list.
space
#buffer {lock}
space
Toggles the lock on the scrollback buffer. When locked, newly incoming text won't be displayed, any command will disable the lock, though several buffer commands will re-enable the lock. When unlocking it'll move you to the end of your scrollback buffer and display the page.
space
#buffer {write} {<filename>}
space
Writes the scrollback buffer to the given file.
space
#buffer {info}
space
Shows some statistics of the shared string memory system used by the scrollback buffer to conserve memory.
space
Example: #macro {(press ctrl-v)(press F1)} {#buffer end}
Associates F1 key to 'scroll buffer to its end' command.
space
Example: 
#act {^[Exits: %1]}
{
    #loop 2 20 loop
    {
        #buffer get name $loop;

        #if {"$name" == "\e[1;33m%*"}
        {
            #var roomname &1;
            #break
        }
    }
}
When the Exits: line shows up, loop through the last 20 lines of the buffer looking for a bold yellow (\e[1;33m) room name. Knowing the name of the room you are in can be useful when mapping.
space