Skip to content
Snippets Groups Projects
  • Kinsey Moore's avatar
    2e1e0735
    Revamp of terminal color codes · 2e1e0735
    Kinsey Moore authored
    The core module related to coloring terminal output was old and needed
    some love.  The main thing here was an attempt to get rid of the
    obscene number of stack-local buffers that were allocated for no other
    reason than to colorize some output.  Instead, this uses a simple trick
    to allocate several buffers within threadlocal storage, then
    automatically rotates between them, so that you can make multiple calls
    to the colorization routine within one function and not need to
    allocate multiple buffers.
    
    Review: https://reviewboard.asterisk.org/r/2241/
    Patches:
        bug.patch uploaded by Tilghman Lesher
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@381448 65c4cc65-6c06-0410-ace0-fbb531ad65f3
    2e1e0735
    History
    Revamp of terminal color codes
    Kinsey Moore authored
    The core module related to coloring terminal output was old and needed
    some love.  The main thing here was an attempt to get rid of the
    obscene number of stack-local buffers that were allocated for no other
    reason than to colorize some output.  Instead, this uses a simple trick
    to allocate several buffers within threadlocal storage, then
    automatically rotates between them, so that you can make multiple calls
    to the colorization routine within one function and not need to
    allocate multiple buffers.
    
    Review: https://reviewboard.asterisk.org/r/2241/
    Patches:
        bug.patch uploaded by Tilghman Lesher
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@381448 65c4cc65-6c06-0410-ace0-fbb531ad65f3
term.c 9.10 KiB