You can get the source code here :
http://roguecentral.free.fr/libtcod/sample.cpp
Until it's included in a new release of the library, you'll have to compile it yourself... Here is what you should get :
Sample 1 : color manipulations, text rendering
Sample 3 : line drawing, offscreen console blitting