terminal/src/cascadia/TerminalControl
Mike Griese a544f56e17
Add an ENUM setting for disabling rendering "intense" text as bold (#10759)
## Summary of the Pull Request

This adds a new setting `intenseTextStyle`. It's a per-appearance, control setting, defaulting to `"all"`.
* When set to `"all"` or `["bold", "bright"]`, then we'll render text as both **bold** and bright (1.10 behavior)
* When set to `"bold"`, `["bold"]`, we'll render text formatted with `^[[1m` as **bold**, but not bright
* When set to `"bright"`, `["bright"]`, we'll render text formatted with `^[[1m` as bright, but not bold. This is the pre 1.10 behavior
* When set to `"none"`, we won't do anything special for it at all. 

## references
* I last did this in #10648. This time it's an enum, so we can add bright in the future. It's got positive wording this time.
* ~We will want to add `"bright"` as a value in the future, to disable the auto intense->bright conversion.~ I just did that now.
* #5682 is related

## PR Checklist
* [x] Closes #10576 
* [x] I seriously don't think we have an issue for "disable intense is bright", but I'm not crazy, people wanted that, right? https://github.com/microsoft/terminal/issues/2916#issuecomment-544880423 was the closest
* [x] I work here
* [x] Tests added/passed
* [x] https://github.com/MicrosoftDocs/terminal/pull/381

## Validation Steps Performed

<!-- ![image](https://user-images.githubusercontent.com/18356694/125480327-07f6b711-6bca-4c1b-9a76-75fc978c702d.png) -->
![image](https://user-images.githubusercontent.com/18356694/128929228-504933ee-cf50-43a2-9982-55110ba39191.png)


Yea that works. Printed some bold text, toggled it on, the text was no longer bold. hooray.


### EDIT, 10 Aug

```json
"intenseTextStyle": "none",
"intenseTextStyle": "bold",
"intenseTextStyle": "bright",
"intenseTextStyle": "all",
"intenseTextStyle": ["bold", "bright"],
```

all work now. Repro script:
```sh
printf "\e[1m[bold]\e[m[normal]\e[34m[blue]\e[1m[bold blue]\e[m\n"
```
2021-08-16 13:45:56 +00:00
..
dll Implement PGO in pipelines for AMD64 architecture; supply training test scenarios (#10071) 2021-05-13 21:12:30 +00:00
Resources/en-US Introduce read-only panes (#8867) 2021-02-08 18:03:55 +00:00
ControlCore.cpp Add an ENUM setting for disabling rendering "intense" text as bold (#10759) 2021-08-16 13:45:56 +00:00
ControlCore.h Allow ThrottledFunc to work on different types of dispatcher (#10187) 2021-08-09 15:21:59 +00:00
ControlCore.idl Only access ControlInteractivity through the projection (#10051) 2021-07-19 11:59:30 -05:00
ControlInteractivity.cpp Fix a pair of TermControl dragging bugs (#10650) 2021-07-28 22:27:09 +00:00
ControlInteractivity.h Fix a pair of TermControl dragging bugs (#10650) 2021-07-28 22:27:09 +00:00
ControlInteractivity.idl Fix a pair of TermControl dragging bugs (#10650) 2021-07-28 22:27:09 +00:00
EventArgs.cpp Split TermControl into a Core, Interactivity, and Control layer (#9820) 2021-04-27 15:50:45 +00:00
EventArgs.h Split TermControl into a Core, Interactivity, and Control layer (#9820) 2021-04-27 15:50:45 +00:00
EventArgs.idl Split TermControl into a Core, Interactivity, and Control layer (#9820) 2021-04-27 15:50:45 +00:00
IControlAppearance.idl Add an ENUM setting for disabling rendering "intense" text as bold (#10759) 2021-08-16 13:45:56 +00:00
IControlSettings.idl Allow users to set font features and font axes (#10525) 2021-07-22 23:15:44 +00:00
ICoreState.idl Only access ControlInteractivity through the projection (#10051) 2021-07-19 11:59:30 -05:00
IDirectKeyListener.idl Move events out of TermControl.h ; Use TYPED_EVENT in more places (#9526) 2021-03-18 22:02:39 +00:00
IKeyBindings.idl Adding/fixing Alt+Space handling (#10799) 2021-08-10 19:53:07 +00:00
IMouseWheelListener.idl Rename Microsoft.Terminal.TerminalControl to .Control; Split into dll & lib (#9472) 2021-03-17 20:47:24 +00:00
init.cpp Rename Microsoft.Terminal.TerminalControl to .Control; Split into dll & lib (#9472) 2021-03-17 20:47:24 +00:00
InteractivityAutomationPeer.cpp Only access ControlInteractivity through the projection (#10051) 2021-07-19 11:59:30 -05:00
InteractivityAutomationPeer.h Only access ControlInteractivity through the projection (#10051) 2021-07-19 11:59:30 -05:00
InteractivityAutomationPeer.idl Only access ControlInteractivity through the projection (#10051) 2021-07-19 11:59:30 -05:00
KeyChord.cpp Fix layering of sc() keybindings with vk() ones (#10917) 2021-08-11 23:09:25 +00:00
KeyChord.h Introduce vk() and sc() key chord specifiers (#10666) 2021-07-20 22:34:51 +00:00
KeyChord.idl Introduce vk() and sc() key chord specifiers (#10666) 2021-07-20 22:34:51 +00:00
packages.config Update C++/WinRT to 2.0.210309.3 (#9437) 2021-03-10 16:04:59 -06:00
pch.cpp Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
pch.h Only access ControlInteractivity through the projection (#10051) 2021-07-19 11:59:30 -05:00
SearchBoxControl.cpp Rename Microsoft.Terminal.TerminalControl to .Control; Split into dll & lib (#9472) 2021-03-17 20:47:24 +00:00
SearchBoxControl.h Rename Microsoft.Terminal.TerminalControl to .Control; Split into dll & lib (#9472) 2021-03-17 20:47:24 +00:00
SearchBoxControl.idl Rename Microsoft.Terminal.TerminalControl to .Control; Split into dll & lib (#9472) 2021-03-17 20:47:24 +00:00
SearchBoxControl.xaml Auto-format our XAML files and enforce in CI (#9589) 2021-03-29 17:09:38 -05:00
TermControl.cpp Initialize the padding for the Control UIA provider (#10874) 2021-08-11 15:13:38 +00:00
TermControl.h Hide profiles by default if they aren't new (#10910) 2021-08-16 13:32:05 +00:00
TermControl.idl Add a setting to flash the pane when BEL is emitted (#9270) 2021-05-24 22:51:03 +00:00
TermControl.xaml Add a setting to flash the pane when BEL is emitted (#9270) 2021-05-24 22:51:03 +00:00
TermControlAutomationPeer.cpp Initialize the padding for the Control UIA provider (#10874) 2021-08-11 15:13:38 +00:00
TermControlAutomationPeer.h Initialize the padding for the Control UIA provider (#10874) 2021-08-11 15:13:38 +00:00
TermControlAutomationPeer.idl Only access ControlInteractivity through the projection (#10051) 2021-07-19 11:59:30 -05:00
TerminalControlLib.vcxproj Only access ControlInteractivity through the projection (#10051) 2021-07-19 11:59:30 -05:00
TSFInputControl.cpp (1.9 port) Fix a number of shutdown crashes in TermControl (#10117) 2021-05-18 17:36:40 -05:00
TSFInputControl.h Rename Microsoft.Terminal.TerminalControl to .Control; Split into dll & lib (#9472) 2021-03-17 20:47:24 +00:00
TSFInputControl.idl Rename Microsoft.Terminal.TerminalControl to .Control; Split into dll & lib (#9472) 2021-03-17 20:47:24 +00:00
TSFInputControl.xaml Auto-format our XAML files and enforce in CI (#9589) 2021-03-29 17:09:38 -05:00
XamlLights.cpp Add a setting to flash the pane when BEL is emitted (#9270) 2021-05-24 22:51:03 +00:00
XamlLights.h Add a setting to flash the pane when BEL is emitted (#9270) 2021-05-24 22:51:03 +00:00
XamlLights.idl Add a setting to flash the pane when BEL is emitted (#9270) 2021-05-24 22:51:03 +00:00
XamlUiaTextRange.cpp Expose Text Attributes to UI Automation (#10336) 2021-07-09 23:21:35 +00:00
XamlUiaTextRange.h Rename Microsoft.Terminal.TerminalControl to .Control; Split into dll & lib (#9472) 2021-03-17 20:47:24 +00:00