Refactor Search module to have different implementations for Terminal and ConHost #3542
Labels
Area-CodeHealth
Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc.
Issue-Task
It's a feature request, but it doesn't really need a major design.
Needs-Tag-Fix
Doesn't match tag requirements
Product-Conhost
For issues in the Console codebase
Product-Terminal
The new Windows Terminal.
Milestone
Description of the new feature/enhancement
This is a follow up of #3279. Search module is migrated as a shared component for Terminal and ConHost. However, Color method is used in ConHost but not in Terminal. For now, in Terminal directory we only call Terminal::ColorSelection, which does nothing but just throws exception. We need to consider refactor the codes to provide ConHost and Terminal different implementation.
A possible fix is to make Search an abstract class and provide different implementation in Terminal and ConHost.
Proposed technical implementation details (optional)
Search class can be an abstract class, and we implement it in Terminal and ConHost directory. In this way we can have more specific realization of the Color method.
Search module is well-designed and implemented and can fit Terminal and ConHost's needs.
The text was updated successfully, but these errors were encountered: