jart / bestline

ANSI Standard X3.64 Teletypewriter Command Session Library
Other
443 stars 29 forks source link

Make using balance mode consistent with mask mode #30

Open pyrmont opened 1 year ago

pyrmont commented 1 year ago

Mask mode is toggled using an enable function and a disable function. Despite being a similar binary mode, balance mode is toggled using a single function that takes an argument specifying the status of the mode. No preference is expressed as to which API is better but since balance mode has only recently been added, this change makes balance mode match the approach taken by mask mode.

pyrmont commented 6 months ago

@jart Not sure if this is a wontfix (no hard feelings if it is) but I've rebased against current master in case that was an issue.