nsf / termbox

Library for writing text-based user interfaces
http://code.google.com/p/termbox
MIT License
1.97k stars 187 forks source link

New init function to selectively enable/disable some features #83

Open mikedlowis opened 8 years ago

mikedlowis commented 8 years ago

Added a new init function that allows users to selectively enable/disable some features. By default CA mode and keypad are enabled during init. This is potentially problematic when the application will be launched or used from an application like Vim which itself is already using the alternate screen. To address this issue I have added the tb_init_with function which accepts an integer bitfield of the features to enable on initialization. Currently only CA mode or Keypad are specified in the bitfield but more could be added later if needed.