()
| 828 | }, |
| 829 | |
| 830 | async getCaps(): Promise<TerminalCaps> { |
| 831 | if (disposed) throw new Error("NodeBackend(inline): disposed"); |
| 832 | if (fatal !== null) throw fatal; |
| 833 | if (cachedCaps !== null) return cachedCaps; |
| 834 | if (!started || engineId === null || native === null) return DEFAULT_TERMINAL_CAPS; |
| 835 | const caps = native.engineGetCaps(engineId); |
| 836 | const nextCaps: TerminalCaps = Object.freeze({ |
| 837 | colorMode: caps.colorMode as TerminalCaps["colorMode"], |
| 838 | supportsMouse: caps.supportsMouse, |
| 839 | supportsBracketedPaste: caps.supportsBracketedPaste, |
| 840 | supportsFocusEvents: caps.supportsFocusEvents, |
| 841 | supportsOsc52: caps.supportsOsc52, |
| 842 | supportsSyncUpdate: caps.supportsSyncUpdate, |
| 843 | supportsScrollRegion: caps.supportsScrollRegion, |
| 844 | supportsCursorShape: caps.supportsCursorShape, |
| 845 | supportsOutputWaitWritable: caps.supportsOutputWaitWritable, |
| 846 | supportsUnderlineStyles: caps.supportsUnderlineStyles ?? false, |
| 847 | supportsColoredUnderlines: caps.supportsColoredUnderlines ?? false, |
| 848 | supportsHyperlinks: caps.supportsHyperlinks ?? false, |
| 849 | sgrAttrsSupported: caps.sgrAttrsSupported, |
| 850 | }); |
| 851 | cachedCaps = nextCaps; |
| 852 | return nextCaps; |
| 853 | }, |
| 854 | |
| 855 | async getTerminalProfile(): Promise<TerminalProfile> { |
| 856 | const caps = await backend.getCaps(); |
nothing calls this directly
no outgoing calls
no test coverage detected