cmd utils such as sqllite don't have full flavoured console support. but I do remember there is something called **wrap which could wrap this console and enhance its capabilities with history, up/down etc...
unfortunately, I forget its name. anyone give a hint?