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.
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.